[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 9/9] hw/arm/smmuv3: Advertise SMMUv3.2 range invalidation
From: |
Eric Auger |
Subject: |
[PATCH 9/9] hw/arm/smmuv3: Advertise SMMUv3.2 range invalidation |
Date: |
Thu, 21 May 2020 11:10:59 +0200 |
Expose the RIL bit so that the guest driver uses range
invalidation.
Signed-off-by: Eric Auger <address@hidden>
---
hw/arm/smmuv3-internal.h | 1 +
hw/arm/smmuv3.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/hw/arm/smmuv3-internal.h b/hw/arm/smmuv3-internal.h
index 5babf72f7d..4e7ec252ed 100644
--- a/hw/arm/smmuv3-internal.h
+++ b/hw/arm/smmuv3-internal.h
@@ -54,6 +54,7 @@ REG32(IDR1, 0x4)
REG32(IDR2, 0x8)
REG32(IDR3, 0xc)
+ FIELD(IDR3, RIL, 10, 1);
REG32(IDR4, 0x10)
REG32(IDR5, 0x14)
FIELD(IDR5, OAS, 0, 3);
diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c
index 4dff438809..78920f5158 100644
--- a/hw/arm/smmuv3.c
+++ b/hw/arm/smmuv3.c
@@ -254,6 +254,8 @@ static void smmuv3_init_regs(SMMUv3State *s)
s->idr[1] = FIELD_DP32(s->idr[1], IDR1, EVENTQS, SMMU_EVENTQS);
s->idr[1] = FIELD_DP32(s->idr[1], IDR1, CMDQS, SMMU_CMDQS);
+ s->idr[3] = FIELD_DP32(s->idr[3], IDR3, RIL, 1);
+
/* 4K and 64K granule support */
s->idr[5] = FIELD_DP32(s->idr[5], IDR5, GRAN4K, 1);
s->idr[5] = FIELD_DP32(s->idr[5], IDR5, GRAN64K, 1);
--
2.20.1
- [PATCH 0/9] SMMUv3.2 Range-based TLB Invalidation Support, Eric Auger, 2020/05/21
- [PATCH 1/9] hw/arm/smmu-common: Factorize some code in smmu_ptw_64(), Eric Auger, 2020/05/21
- [PATCH 2/9] hw/arm/smmu-common: Add IOTLB helpers, Eric Auger, 2020/05/21
- [PATCH 3/9] hw/arm/smmu: Simplify the IOTLB key format, Eric Auger, 2020/05/21
- [PATCH 4/9] hw/arm/smmu: Introduce SMMUTLBEntry for PTW and IOTLB value, Eric Auger, 2020/05/21
- [PATCH 5/9] hw/arm/smmuv3: Store the starting level in SMMUTransTableInfo, Eric Auger, 2020/05/21
- [PATCH 6/9] hw/arm/smmu-common: Manage IOTLB block entries, Eric Auger, 2020/05/21
- [PATCH 7/9] hw/arm/smmuv3: Introduce smmuv3_s1_range_inval() helper, Eric Auger, 2020/05/21
- [PATCH 8/9] hw/arm/smmuv3: Get prepared for range invalidation, Eric Auger, 2020/05/21
- [PATCH 9/9] hw/arm/smmuv3: Advertise SMMUv3.2 range invalidation,
Eric Auger <=