soc/intel/xeon_sp: Skip not pre-routed devices in _PRT reporting

PCI devices not pre-routed will have their interrupt line left as
0. Skip these devices in _PRT reporting.

TESTED=Build and boot on intel/avenuecity CRB

Change-Id: I3d51b75eb0fd1c4ca877f6ac884de2742e7f9630
Signed-off-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85152
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Reviewed-by: <yuchi.chen@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Shuo Liu 2024-11-15 19:52:55 +08:00 committed by Lean Sheng Tan
commit 1399dd8086

View file

@ -225,6 +225,8 @@ void acpigen_write_PRT_pre_routed(const struct device *br)
uint8_t int_pin = pci_read_config8(dev, PCI_INTERRUPT_PIN);
if ((int_pin > PCI_INT_MAX) || (int_pin < PCI_INT_A))
continue;
if (!int_line)
continue;
acpigen_write_PRT_GSI_entry(dev_num, int_pin - PCI_INT_A, int_line);