Add support for SMMUv3 driver to perform stage 2 translation
This patch adds support for SMMUv3 driver at (S)EL-2 in Hafnium to
perform stage 2 translation, protection and isolation of upstream
peripheral device's DMA transactions.
Change-Id: Ib16389981d0b30053ecd6f20e752d73c38d12f3d
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/src/manifest.c b/src/manifest.c
index a48ac70..45574ee 100644
--- a/src/manifest.c
+++ b/src/manifest.c
@@ -484,7 +484,7 @@
}
TRY(read_optional_uint32(dev_node, "smmu-id",
- (uint32_t)MANIFEST_INVALID_ADDRESS,
+ MANIFEST_INVALID_ID,
&dev_regions[i].smmu_id));
dlog_verbose(" smmu-id: %u\n", dev_regions[i].smmu_id);
@@ -503,6 +503,7 @@
if (j == 0) {
dlog_verbose(" None\n");
}
+ dev_regions[i].stream_count = j;
TRY(read_bool(dev_node, "exclusive-access",
&dev_regions[i].exclusive_access));