iommu/arm-smmu-qcom: Fix TTBR0 read
Subsystems (4)
PATCH 1/1 iommu/arm-smmu-qcom: Fix TTBR0 read
From: Rob Clark <[email protected]>
It is a 64b register, lets not lose the upper bits.
Fixes ab5df7b953d8 ("iommu/arm-smmu-qcom: Add an adreno-smmu-priv callback to get pagefault info")
Signed-off-by Rob Clark <[email protected]>
--- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +1 -1
@@ -51,7 +51,7 @@ static void qcom_adreno_smmu_get_fault_info(const void *cookie, info->fsynr1 =arm_smmu_cb_read (smmu, cfg->cbndx,ARM_SMMU_CB_FSYNR1 ); info->far =arm_smmu_cb_readq (smmu, cfg->cbndx,ARM_SMMU_CB_FAR ); info->cbfrsynra =arm_smmu_gr1_read (smmu,ARM_SMMU_GR1_CBFRSYNRA (cfg->cbndx)); - info->ttbr0 =arm_smmu_cb_read (smmu, cfg->cbndx,ARM_SMMU_CB_TTBR0 ); + info->ttbr0 =arm_smmu_cb_readq (smmu, cfg->cbndx,ARM_SMMU_CB_TTBR0 ); info->contextidr =arm_smmu_cb_read (smmu, cfg->cbndx,ARM_SMMU_CB_CONTEXTIDR ); }
Signature · 1 line
2.31.1
Quoted 6 lines · Rob Clark
From: Rob Clark <[email protected]>
It is a 64b register, lets not lose the upper bits.
Fixes ab5df7b953d8 ("iommu/arm-smmu-qcom: Add an adreno-smmu-priv callback to get pagefault info")Signed-off-by Rob Clark <[email protected]>
Reviewed-by Bjorn Andersson <[email protected]>
Regards,
Bjorn
Quoted 20 lines
--- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +1
-1@@ -51,7 +51,7 @@ static void qcom_adreno_smmu_get_fault_info(const void *cookie, info->fsynr1 =arm_smmu_cb_read (smmu, cfg->cbndx,ARM_SMMU_CB_FSYNR1 ); info->far =arm_smmu_cb_readq (smmu, cfg->cbndx,ARM_SMMU_CB_FAR ); info->cbfrsynra =arm_smmu_gr1_read (smmu,ARM_SMMU_GR1_CBFRSYNRA (cfg->cbndx)); - info->ttbr0 =arm_smmu_cb_read (smmu, cfg->cbndx,ARM_SMMU_CB_TTBR0 ); + info->ttbr0 =arm_smmu_cb_readq (smmu, cfg->cbndx,ARM_SMMU_CB_TTBR0 ); info->contextidr =arm_smmu_cb_read (smmu, cfg->cbndx,ARM_SMMU_CB_CONTEXTIDR ); }Signature · 1 line
2.31.1
Quoted 5 lines · Rob Clark
From: Rob Clark <[email protected]>
It is a 64b register, lets not lose the upper bits.
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/1] iommu/arm-smmu-qcom: Fix TTBR0 read
https://git.kernel.org/will/c/c31112fbd407
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev