mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 19:56:40 +07:00
drm/msm/adreno: print details in case of a protect fault interrupt
Signed-off-by: Craig Stout <cstout@chromium.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
7d0c5ee9f0
commit
1e2c8e7a2f
@ -348,6 +348,13 @@ static irqreturn_t a4xx_irq(struct msm_gpu *gpu)
|
||||
status = gpu_read(gpu, REG_A4XX_RBBM_INT_0_STATUS);
|
||||
DBG("%s: Int status %08x", gpu->name, status);
|
||||
|
||||
if (status & A4XX_INT0_CP_REG_PROTECT_FAULT) {
|
||||
uint32_t reg = gpu_read(gpu, REG_A4XX_CP_PROTECT_STATUS);
|
||||
printk("CP | Protected mode error| %s | addr=%x\n",
|
||||
reg & (1 << 24) ? "WRITE" : "READ",
|
||||
(reg & 0xFFFFF) >> 2);
|
||||
}
|
||||
|
||||
gpu_write(gpu, REG_A4XX_RBBM_INT_CLEAR_CMD, status);
|
||||
|
||||
msm_gpu_retire(gpu);
|
||||
|
Loading…
Reference in New Issue
Block a user