projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
353b325
)
iommu/qcom: Mask TLBI addresses correctly
author
Robin Murphy
<robin.murphy@arm.com>
Thu, 15 Aug 2019 18:37:22 +0000
(19:37 +0100)
committer
Will Deacon
<will@kernel.org>
Mon, 19 Aug 2019 15:52:47 +0000
(16:52 +0100)
As with arm-smmu from whence this code was borrowed, the IOVAs passed in
here happen to be at least page-aligned anyway, but still; oh dear.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/qcom_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/qcom_iommu.c
b/drivers/iommu/qcom_iommu.c
index 34d0b9783b3ed6f57c3fcbe9ec46d16db1e92116..bed948c3058a9486f854f6b343323b73f8e37e8c 100644
(file)
--- a/
drivers/iommu/qcom_iommu.c
+++ b/
drivers/iommu/qcom_iommu.c
@@
-155,7
+155,7
@@
static void qcom_iommu_tlb_inv_range_nosync(unsigned long iova, size_t size,
struct qcom_iommu_ctx *ctx = to_ctx(fwspec, fwspec->ids[i]);
size_t s = size;
- iova
&= ~12UL
;
+ iova
= (iova >> 12) << 12
;
iova |= ctx->asid;
do {
iommu_writel(ctx, reg, iova);