mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
iommu/arm-smmu: Cleanup context fault logging logic
The context fault handler uses a lot of magic numbers that now have proper constants defined, so use those constants. Change-Id: Ic775bdbb4d617d4f96c935d7f18516e9d4740b9e Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
a5951a22ce
commit
1c27fd381a
1 changed files with 10 additions and 10 deletions
|
|
@ -1256,18 +1256,18 @@ static void print_ctx_regs(struct arm_smmu_device *smmu, struct arm_smmu_cfg
|
|||
dev_err(smmu->dev,
|
||||
"FSR = 0x%08x [%s%s%s%s%s%s%s%s%s%s]\n",
|
||||
fsr,
|
||||
(fsr & 0x02) ? (fsynr0 & 0x10 ?
|
||||
(fsr & FSR_TF) ? (fsynr0 & FSYNR0_WNR ?
|
||||
"TF W " : "TF R ") : "",
|
||||
(fsr & 0x04) ? "AFF " : "",
|
||||
(fsr & 0x08) ? (fsynr0 & 0x10 ?
|
||||
(fsr & FSR_AFF) ? "AFF " : "",
|
||||
(fsr & FSR_PF) ? (fsynr0 & FSYNR0_WNR ?
|
||||
"PF W " : "PF R ") : "",
|
||||
(fsr & 0x10) ? "EF " : "",
|
||||
(fsr & 0x20) ? "TLBMCF " : "",
|
||||
(fsr & 0x40) ? "TLBLKF " : "",
|
||||
(fsr & 0x80) ? "MHF " : "",
|
||||
(fsr & 0x100) ? "UUT " : "",
|
||||
(fsr & 0x40000000) ? "SS " : "",
|
||||
(fsr & 0x80000000) ? "MULTI " : "");
|
||||
(fsr & FSR_EF) ? "EF " : "",
|
||||
(fsr & FSR_TLBMCF) ? "TLBMCF " : "",
|
||||
(fsr & FSR_TLBLKF) ? "TLBLKF " : "",
|
||||
(fsr & FSR_ASF) ? "ASF " : "",
|
||||
(fsr & FSR_UUT) ? "UUT " : "",
|
||||
(fsr & FSR_SS) ? "SS " : "",
|
||||
(fsr & FSR_MULTI) ? "MULTI " : "");
|
||||
|
||||
if (cfg->fmt == ARM_SMMU_CTX_FMT_AARCH32_S) {
|
||||
dev_err(smmu->dev, "TTBR0 = 0x%pK\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue