coreboot-kgpe-d16/src/soc/amd/picasso
Raul E Rangel 2f5fd11474 soc/amd/picasso: Fix ACPI PCI routing table
The original routing table did not handle all 8 INTx interrupts.
Additionally it also didn't take the swizzling into account.

Now that we know how AGESA programs the routing table we can correctly
generate it.

We still route the PCI interrupts through the FCH IOAPIC. A follow up
will have the GNB IOAPIC handle the PCI interrupts.

There is still work to be done to fix the legacy PCI_IRQ register for
each PCI device. We can then remove the mainboard_pirq_data from each
mainboard.

BUG=b:170595019
TEST=Used ezkinil
Boot kernel with `pci=nomsi amd_iommu=off noapic` and
`pci=nomsi amd_iommu=off` then verified system
was usable and verified /proc/interrupts looked correct.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I2b2cce9913081d5cd456043ba619a79c1dfd4a8e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48632
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2021-01-06 17:26:30 +00:00
..
acpi soc/amd/picasso: Fix ACPI PCI routing table 2021-01-06 17:26:30 +00:00
include/soc soc/amd/picasso: Fix the typo in GPIO define 2020-12-16 17:17:57 +00:00
psp_verstage soc/amd: factor out legacy I/O and cf9 decode enable functions 2020-12-09 02:10:58 +00:00
acp.c soc/amd/picasso: move sb_clk_output_48Mhz from acp to fch 2020-12-19 16:29:44 +00:00
acpi.c soc/amd/picasso: Separate CPUID defs into new header 2021-01-02 22:52:12 +00:00
agesa_acpi.c soc/amd/picasso: Generate ACPI pstate and cstate objects in cb 2020-09-25 22:49:56 +00:00
aoac.c soc/amd/picasso: rename PICASSO_CONSOLE_UART to AMD_SOC_CONSOLE_UART 2020-12-11 00:42:32 +00:00
bootblock.c soc/amd/picasso: factor out write_resume_eip to common code 2020-12-11 00:44:31 +00:00
chip.c soc/amd/picasso/chip.h: remove unneeded extern pci_domain_ops 2020-12-06 19:03:40 +00:00
chip.h soc/amd/picasso: Add acp_i2s_use_external_48mhz_osc flag 2020-12-18 19:55:12 +00:00
config.c soc/amd/picasso/config: add comment about cfg never being NULL 2020-12-06 19:04:51 +00:00
cpu.c soc/amd/picasso/cpu: add Raven1 CPUID to CPU table 2020-11-06 19:59:41 +00:00
data_fabric.c soc/amd/picasso: Add data fabric read helper function 2020-12-11 17:47:57 +00:00
dmi.c soc/amd/picasso: Convert DDR4 MHz to MT/s correctly 2020-09-16 03:25:28 +00:00
early_fch.c soc/amd/picasso: rename PICASSO_CONSOLE_UART to AMD_SOC_CONSOLE_UART 2020-12-11 00:42:32 +00:00
fch.c soc/amd/picasso: move sb_clk_output_48Mhz from acp to fch 2020-12-19 16:29:44 +00:00
finalize.c src: Remove unused '#include <timer.h>' 2020-06-02 07:39:05 +00:00
fsp_params.c soc/amd/picasso: Rename SD_EMMC_EMMC_DDR_52 to SD_EMMC_EMMC_DDR_104 2020-12-09 14:25:19 +00:00
fw.cfg soc/amd: Change FIRMWARE_LOCATE to FIRMWARE_LOCATION 2020-11-04 09:42:18 +00:00
gpio.c soc/amd: factor out common SMI/SCI enums and function prototypes 2020-12-02 21:33:14 +00:00
graphics.c soc/amd/picasso/graphics: implement map_oprom_vendev_rev 2020-06-14 19:08:08 +00:00
i2c.c soc/amd/common: Refactor ACPIMMIO posted writes 2020-12-12 19:48:49 +00:00
Kconfig soc/amd/picasso: move UART Kconfig options to common folder 2020-12-11 00:43:16 +00:00
Makefile.inc amdfwtool: Register APCB and APCB_BK respectively 2020-12-11 20:04:02 +00:00
mca.c src: Remove unused 'include <cbmem.h>' 2020-07-26 20:59:44 +00:00
memmap.c soc/amd/picasso: Convert BERT reserved region from cbmem 2020-06-22 22:56:34 +00:00
mrc_cache.c soc/amd/picasso: Enable APOB/MRC training data cache 2020-06-10 18:45:56 +00:00
pcie_gpp.c soc/amd/picasso: Fix ACPI PCI routing table 2021-01-06 17:26:30 +00:00
psp.c soc/amd: factor out common SMI/SCI enums and function prototypes 2020-12-02 21:33:14 +00:00
reset.c soc/amd/picasso: move chipset_handle_reset to common 2020-12-11 17:44:19 +00:00
romstage.c soc/amd/picasso: remove config_t typedef 2020-12-06 19:04:33 +00:00
root_complex.c soc/amd/picasso/root_complex: add missing set_resources 2021-01-06 17:21:13 +00:00
sata.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smi.c soc/amd/picasso: Skip SmmInfo to PSP on S3 resume 2020-10-19 15:37:12 +00:00
smihandler.c soc/amd: factor out common SMI/SCI enums and function prototypes 2020-12-02 21:33:14 +00:00
smu.c soc/amd/common: factor out SMU code from Picasso 2020-11-15 16:48:38 +00:00
soc_util.c soc/amd/picasso/soc_util: add comment on the silicon and soc types 2020-06-29 16:03:24 +00:00
uart.c soc/amd/picasso: rename PICASSO_CONSOLE_UART to AMD_SOC_CONSOLE_UART 2020-12-11 00:42:32 +00:00
update_microcode.c cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
xhci.c soc/amd: factor out common SMI/SCI enums and function prototypes 2020-12-02 21:33:14 +00:00