summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/pi
diff options
context:
space:
mode:
authorzbao <fishbaozi@gmail.com>2015-11-05 19:33:53 +0800
committerZheng Bao <zheng.bao@amd.com>2015-11-06 07:51:46 +0100
commiteb90aaf29e5c09612f964f0946a4ced53d88a913 (patch)
tree106d1686e5b7392def5865a4d2ec9909988818c0 /src/northbridge/amd/pi
parentd5d94ea90a9402b480cde91febe1dc7d85f626b5 (diff)
AMD bettong: Fix the interrupt routing.
The plugged devices on PCIe should use IOAPIC2 instead of standard IOAPIC1. The entries in IOAPIC2 count from the end of IOAPIC1. The unchanged code worked because the OS uses MSI instead APIC. To test that, boot linux with parameter pci=nomsi and see if the devices like NIC work well as they do without the booting parameter. Change-Id: I893e73f2aab3227381e44406fa285613e4ba2904 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/11374 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/northbridge/amd/pi')
-rw-r--r--src/northbridge/amd/pi/00660F01/acpi/northbridge.asl35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl b/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
index 4e6d13e74e..cde5182123 100644
--- a/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
+++ b/src/northbridge/amd/pi/00660F01/acpi/northbridge.asl
@@ -94,3 +94,38 @@ Device(PBR8) {
Return (PS8) /* PIC Mode */
} /* end _PRT */
} /* end PBR8 */
+
+/* GFX 1 */
+Device(PBR9) {
+ Name(_ADR, 0x00030002)
+} /* end PBR8 */
+
+/* GFX 2 */
+Device(PBRA) {
+ Name(_ADR, 0x00030003)
+ Name(_PRW, Package() {0x18, 4})
+ Method(_PRT,0) {
+ If(PMOD){ Return(APSA) } /* APIC mode */
+ Return (PSA) /* PIC Mode */
+ } /* end _PRT */
+} /* end PBR8 */
+
+/* GFX 3 */
+Device(PBRB) {
+ Name(_ADR, 0x00030004)
+ Name(_PRW, Package() {0x18, 4})
+ Method(_PRT,0) {
+ If(PMOD){ Return(APSB) } /* APIC mode */
+ Return (PSB) /* PIC Mode */
+ } /* end _PRT */
+} /* end PBR8 */
+
+/* GFX 4 */
+Device(PBRC) {
+ Name(_ADR, 0x00030005)
+ Name(_PRW, Package() {0x18, 4})
+ Method(_PRT,0) {
+ If(PMOD){ Return(APSC) } /* APIC mode */
+ Return (PSC) /* PIC Mode */
+ } /* end _PRT */
+} /* end PBR8 */