coreboot-kgpe-d16/src
Aaron Durbin c5bb02f2ec soc/amd/common: fix SPI bar resource usage
The ACPI code was not masking off the correct bits for publishing
the SPI bar to the OS.

It resulted in a dmesg messagelike:
	system 00:00: [mem 0xfec10002-0xfec11001] has been reserved
And /proc/iomem entry
	fec10002-fec11001 : pnp 00:00

These addresses are wrong because they are including bits of a
register that are not a part of the address.

Moreover, the code does not publish the eSPI register area either.
The eSPI registers live at 0x10000 added to the SPI bar. Lastly,
both regions are less than a page so only report a page of usage
for each.

Stoney Ridge's SPI bar register defines the address as 31:6 while
Picasso's SPI bar register defines the address as 31:8. Use Picasso's
valid mask for both cases because no one is assigning addresses
that are aligned to less than 256 bytes.

With the fixes, dmesg reports:
	system 00:00: [mem 0xfec10000-0xfec10fff] has been reserved
	system 00:00: [mem 0xfec20000-0xfec20fff] has been reserved
And /proc/iomem indicates:
	fec10000-fec10fff : pnp 00:00
	fec20000-fec20fff : pnp 00:00

BUG=b:160290629

Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Change-Id: I130b5ad26d9e13b44c25fbb35a05389f9e8841ab
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42959
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-07-02 15:55:46 +00:00
..
acpi acpi: Avoid freeing a device twice 2020-07-01 04:52:47 +00:00
arch src/arch/x86: Ensure $(objgenerated) exists before it's used 2020-06-30 22:27:21 +00:00
commonlib cbmem: Remove IDs for TSEG and BERT 2020-06-22 22:57:13 +00:00
console console: Update for vboot before bootblock 2020-06-15 22:07:12 +00:00
cpu ACPI GNVS: Replace uses of smm_get_gnvs() 2020-07-01 05:14:24 +00:00
device Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
drivers src/drivers/intel: Avoid NULL pointer dereference 2020-06-30 05:58:37 +00:00
ec ec/google/wilco: Suppress UCSI events in S0ix 2020-06-17 19:46:36 +00:00
include ACPI GNVS: Replace uses of smm_get_gnvs() 2020-07-01 05:14:24 +00:00
lib lib/hardwaremain: Drop HAVE_ACPI_RESUME guards 2020-06-18 13:01:08 +00:00
mainboard mb/google/faffy: update DPTF parameters 2020-07-02 00:33:08 +00:00
northbridge nb/intel/ironlake/northbridge.c: Drop thunk functions 2020-07-01 21:39:54 +00:00
security lockdown: Add hint for how to check for lockdown support in boot log 2020-06-22 12:27:18 +00:00
soc soc/amd/common: fix SPI bar resource usage 2020-07-02 15:55:46 +00:00
southbridge ACPI GNVS: Replace uses of smm_get_gnvs() 2020-07-01 05:14:24 +00:00
superio superio/winbond/w83977tf: Add suspend related fields 2020-06-16 20:17:26 +00:00
vendorcode ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
Kconfig Kconfig: Fix warning 2020-07-01 05:15:59 +00:00