summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/data_fabric/domain.c2
-rw-r--r--src/soc/amd/common/block/data_fabric/pci_segment_multi.c2
-rw-r--r--src/soc/amd/common/block/data_fabric/pci_segment_single.c2
-rw-r--r--src/soc/amd/common/block/root_complex/root_complex.c2
-rw-r--r--src/soc/amd/genoa_poc/domain.c7
5 files changed, 8 insertions, 7 deletions
diff --git a/src/soc/amd/common/block/data_fabric/domain.c b/src/soc/amd/common/block/data_fabric/domain.c
index c419fe02ce..12a7bba0e5 100644
--- a/src/soc/amd/common/block/data_fabric/domain.c
+++ b/src/soc/amd/common/block/data_fabric/domain.c
@@ -22,7 +22,7 @@ void amd_pci_domain_scan_bus(struct device *domain)
if (segment_group >= PCI_SEGMENT_GROUP_COUNT) {
printk(BIOS_ERR, "Skipping domain %u due to too large segment group %u.\n",
- domain->path.domain.domain, segment_group);
+ dev_get_domain_id(domain), segment_group);
return;
}
diff --git a/src/soc/amd/common/block/data_fabric/pci_segment_multi.c b/src/soc/amd/common/block/data_fabric/pci_segment_multi.c
index bc680f9fff..433b0044d4 100644
--- a/src/soc/amd/common/block/data_fabric/pci_segment_multi.c
+++ b/src/soc/amd/common/block/data_fabric/pci_segment_multi.c
@@ -29,6 +29,6 @@ enum cb_err data_fabric_get_pci_bus_numbers(struct device *domain, uint8_t *segm
}
printk(BIOS_ERR, "No valid DF PCI CFG register pair found for domain %x.\n",
- domain->path.domain.domain);
+ dev_get_domain_id(domain));
return CB_ERR;
}
diff --git a/src/soc/amd/common/block/data_fabric/pci_segment_single.c b/src/soc/amd/common/block/data_fabric/pci_segment_single.c
index 3e02d96148..49e6b9a56d 100644
--- a/src/soc/amd/common/block/data_fabric/pci_segment_single.c
+++ b/src/soc/amd/common/block/data_fabric/pci_segment_single.c
@@ -27,6 +27,6 @@ enum cb_err data_fabric_get_pci_bus_numbers(struct device *domain, uint8_t *segm
}
printk(BIOS_ERR, "No valid DF PCI CFG register found for domain %x.\n",
- domain->path.domain.domain);
+ dev_get_domain_id(domain));
return CB_ERR;
}
diff --git a/src/soc/amd/common/block/root_complex/root_complex.c b/src/soc/amd/common/block/root_complex/root_complex.c
index 2bcdc1d432..72eba8a358 100644
--- a/src/soc/amd/common/block/root_complex/root_complex.c
+++ b/src/soc/amd/common/block/root_complex/root_complex.c
@@ -7,7 +7,7 @@
static const struct domain_iohc_info *get_domain_iohc_info(struct device *domain)
{
- const unsigned int domain_id = domain->path.domain.domain;
+ const unsigned int domain_id = dev_get_domain_id(domain);
const struct domain_iohc_info *iohc;
size_t iohc_count;
diff --git a/src/soc/amd/genoa_poc/domain.c b/src/soc/amd/genoa_poc/domain.c
index 88f386c2c1..b6369a47d0 100644
--- a/src/soc/amd/genoa_poc/domain.c
+++ b/src/soc/amd/genoa_poc/domain.c
@@ -26,7 +26,7 @@ static void genoa_domain_set_resources(struct device *domain)
{
if (domain->downstream->bridge_ctrl & PCI_BRIDGE_CTL_VGA) {
printk(BIOS_DEBUG, "Setting VGA decoding for domain 0x%x\n",
- domain->path.domain.domain);
+ dev_get_domain_id(domain));
const union df_vga_en vga_en = {
.ve = 1,
.dst_fabric_id = get_iohc_fabric_id(domain),
@@ -48,6 +48,7 @@ static void genoa_domain_set_resources(struct device *domain)
static const char *genoa_domain_acpi_name(const struct device *domain)
{
+ const unsigned int domain_id = dev_get_domain_id(domain);
const char *domain_acpi_names[4] = {
"S0B0",
"S0B1",
@@ -55,8 +56,8 @@ static const char *genoa_domain_acpi_name(const struct device *domain)
"S0B3",
};
- if (domain->path.domain.domain < ARRAY_SIZE(domain_acpi_names))
- return domain_acpi_names[domain->path.domain.domain];
+ if (domain_id < ARRAY_SIZE(domain_acpi_names))
+ return domain_acpi_names[domain_id];
return NULL;
}