diff options
author | Yuchi Chen <yuchi.chen@intel.com> | 2024-08-28 15:41:26 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-09-02 09:07:22 +0000 |
commit | a76640b9ab5e8e052651b708f999493bff034cc7 (patch) | |
tree | 20b7140bf398bb4222bba71f1a3258331129ef3b | |
parent | 2b0b2ef9a25870cf5bac5897e8d72e8fb4cc87aa (diff) |
soc/intel/common/systemagent: read sa resources only from domain 0
Change-Id: Ida4461de6275bdd314f5cba441d3ff631d570305
Signed-off-by: Yuchi Chen <yuchi.chen@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84109
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
-rw-r--r-- | src/soc/intel/common/block/systemagent/systemagent.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |