sb,soc/amd: Move _PIC method to global scope
commit6962b6ecd395093e63824bb337bbb45492d2ce48
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Sat, 13 Feb 2021 14:12:47 +0000 (13 16:12 +0200)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Sun, 14 Feb 2021 19:21:03 +0000 (14 19:21 +0000)
treec97afe898d55407458f0dc1fd3b81bbc9b225710
parentaed4aca3fcc7209224229b813b353cc78ae0e0ed
sb,soc/amd: Move _PIC method to global scope

Fix regression with commit aa969e887a ACPI: Move PICM declaration.

While mentioned in the commit message there already, the default
value for AMD boards changed from IOAPIC mode to PIC mode.

ACPI 6.3 spec has this text regarding _PIC method:

  If the platform CPU architecture supports PIC mode and the method
  is never called, the platform runtime firmware must assume PIC mode.

If MADT has IOAPIC entries, OS will want to change to APIC model. But
the method _PIC was not in the global scope so it could not be called
and therefore _PRT continued to report PIC model interrupt routing.

Already fixed for soc/amd/picasso in commit 839f668.

Change-Id: I7f3bb0d45946cec315694de1d540fea4d828348e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50635
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/soc/amd/stoneyridge/acpi/pci_int.asl
src/southbridge/amd/agesa/hudson/acpi/pci_int.asl
src/southbridge/amd/cimx/sb800/acpi/pcie.asl
src/southbridge/amd/pi/hudson/acpi/pci_int.asl