From 01bf34cb28d97bf11b2f6397556fa18d32a50a8a Mon Sep 17 00:00:00 2001 From: Shuo Liu Date: Fri, 15 Nov 2024 19:47:47 +0800 Subject: [PATCH] soc/intel/xeon_sp: Support _PRT reporting for domain acpigen_write_PRT_pre_routed should support _PRT reporting for both domains and PCI root ports. TESTED=Build and boot on intel/avenuecity CRB _PRT will be correctly reported and IRQ routing missing error in dmesg will disappear [ 40.406496] pcieport 0000:14:08.0: can't derive routing for PCI INT A [ 40.413799] pci 0000:17:00.0: PCI INT A: no GSI [ 40.418965] pcieport 0000:14:08.0: can't derive routing for PCI INT A [ 40.426272] ast 0000:18:00.0: PCI INT A: no GSI Change-Id: I07b9ce7b698a0bad30f0a20998a6543101d12542 Signed-off-by: Shuo Liu Reviewed-on: https://review.coreboot.org/c/coreboot/+/85151 Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: --- src/soc/intel/xeon_sp/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/xeon_sp/acpi.c b/src/soc/intel/xeon_sp/acpi.c index 0a4587c21f..9a3c462575 100644 --- a/src/soc/intel/xeon_sp/acpi.c +++ b/src/soc/intel/xeon_sp/acpi.c @@ -202,7 +202,7 @@ void acpigen_write_PRT_pre_routed(const struct device *br) uint32_t routed_dev_bitmap = 0; char *entry_count; - if (!is_pci_bridge(br)) + if (!dev_is_active_bridge(br)) return; const char *acpi_scope = acpi_device_path(br);