From a76640b9ab5e8e052651b708f999493bff034cc7 Mon Sep 17 00:00:00 2001 From: Yuchi Chen Date: Wed, 28 Aug 2024 15:41:26 +0800 Subject: soc/intel/common/systemagent: read sa resources only from domain 0 Change-Id: Ida4461de6275bdd314f5cba441d3ff631d570305 Signed-off-by: Yuchi Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/84109 Tested-by: build bot (Jenkins) Reviewed-by: Shuo Liu --- src/soc/intel/common/block/systemagent/systemagent.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/soc') diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c index bca442bcc3..e8d7432c16 100644 --- a/src/soc/intel/common/block/systemagent/systemagent.c +++ b/src/soc/intel/common/block/systemagent/systemagent.c @@ -273,6 +273,12 @@ static void systemagent_read_resources(struct device *dev) { int index = 0; + /** + * If SoC has multiple PCIe domains, only reading resources from the first one. + */ + if (!is_dev_on_domain0(dev)) + return; + /* Read standard PCI resources. */ pci_dev_read_resources(dev); -- cgit v1.2.3