iommu/tegra: smmu: Fix incorrect mask for regbase
Subsystems (3)
PATCH 1/1 iommu/tegra: smmu: Fix incorrect mask for regbase
This fixes kernel crash because of BUG() in register address validation.
Signed-off-by Hiroshi Doyu <[email protected]>
---
Verified with Tegra 114 based Dalmore board
--- drivers/iommu/tegra-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/tegra-smmu.c +1 -1
@@ -1192,7 +1192,7 @@ static int tegra_smmu_probe(struct platform_device *pdev) smmu->rege[i] = smmu->regs[i] +resource_size (res) -1 ; }/* Same as "mc" 1st regiter block start address */ - smmu->regbase = (void __iomem *)((u32 )smmu->regs[0 ] & ~PAGE_MASK ); + smmu->regbase = (void __iomem *)((u32 )smmu->regs[0 ] &PAGE_MASK ); err =of_get_dma_window (dev->of_node,NULL ,0 ,NULL , &base, &size);if (err)
Signature · 1 line
1.7.9.5
A message that is not in the archive (sent off-list or not yet received): 1360172295-21500-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
Stephen Warren
Tested-byQuoted 4 lines · Hiroshi Doyu
This fixes kernel crash because of
BUG()in register address validation.Signed-off-by Hiroshi Doyu <[email protected]>
Tested-by Stephen Warren <[email protected]>
(on Tegra30 Cardhu, with this patch applied on top of next-20130206 plus some other build and bug-fixes).
Joerg Roedel
AppliedQuoted 4 lines · Hiroshi Doyu
This fixes kernel crash because of
BUG()in register address validation.Signed-off-by Hiroshi Doyu <[email protected]>
Applied to arm/tegra, thanks.