summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-02-04 19:27:48 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-05 18:59:49 +0000
commitddf137f82261bfcbf394daf413dd8da920786c0d (patch)
treec7c85a7ca6afe15ec50bcd757f66008202904356 /src/northbridge
parent70f32bb203857c29069881422a5ce2bce101ed05 (diff)
nb,soc/amd/*/iommu: fix comment about IOMMU MMIO resource
This comment was added with the AMD family 15h Trinity IOMMU support in commit 88ebbeb7e2a914330c869147bacb190b4270532f and looks like a copy of the comment about the subtractive decode ranges in the LPC device. The IOMMU doesn't have any subtractively decoded I/O or MMIO ranges and this is also not what the code does. This resource is the MMIO region to configure the IOMMU instead, so fix the comment in all copies of the IOMMU support code. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I2e1e3a46b839b9e58b836932c1bc9b41b1b1dc02 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61631 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/amd/agesa/family15tn/iommu.c2
-rw-r--r--src/northbridge/amd/pi/00730F01/iommu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/amd/agesa/family15tn/iommu.c b/src/northbridge/amd/agesa/family15tn/iommu.c
index 7af65389f3..587e737846 100644
--- a/src/northbridge/amd/agesa/family15tn/iommu.c
+++ b/src/northbridge/amd/agesa/family15tn/iommu.c
@@ -13,7 +13,7 @@ static void iommu_read_resources(struct device *dev)
/* Get the normal pci resources of this device */
pci_dev_read_resources(dev);
- /* Add an extra subtractive resource for both memory and I/O. */
+ /* IOMMU MMIO registers */
res = new_resource(dev, 0x44);
res->size = 512 * 1024;
res->align = log2(res->size);
diff --git a/src/northbridge/amd/pi/00730F01/iommu.c b/src/northbridge/amd/pi/00730F01/iommu.c
index ef478dda15..c79ddb56e6 100644
--- a/src/northbridge/amd/pi/00730F01/iommu.c
+++ b/src/northbridge/amd/pi/00730F01/iommu.c
@@ -12,7 +12,7 @@ static void iommu_read_resources(struct device *dev)
/* Get the normal pci resources of this device */
pci_dev_read_resources(dev);
- /* Add an extra subtractive resource for both memory and I/O. */
+ /* IOMMU MMIO registers */
res = new_resource(dev, 0x44);
res->size = 512 * 1024;
res->align = log2(res->size);