Skip to content

Commit e802c82

Browse files
Phil Elwellpopcornmix
authored andcommitted
drm/v3d: Suppress all but the first MMU error
The v3d driver currently encounters a lot of MMU PTE exceptions, so only log the first to avoid swamping the kernel log. Signed-off-by: Phil Elwell <[email protected]>
1 parent 775b95d commit e802c82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/v3d/v3d_irq.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ v3d_hub_irq(int irq, void *arg)
197197
"GMP",
198198
};
199199
const char *client = "?";
200+
static int logged_error;
200201

201202
V3D_WRITE(V3D_MMU_CTL, V3D_READ(V3D_MMU_CTL));
202203

@@ -206,6 +207,7 @@ v3d_hub_irq(int irq, void *arg)
206207
client = v3d41_axi_ids[axi_id];
207208
}
208209

210+
if (!logged_error)
209211
dev_err(v3d->drm.dev, "MMU error from client %s (%d) at 0x%llx%s%s%s\n",
210212
client, axi_id, (long long)vio_addr,
211213
((intsts & V3D_HUB_INT_MMU_WRV) ?
@@ -214,6 +216,7 @@ v3d_hub_irq(int irq, void *arg)
214216
", pte invalid" : ""),
215217
((intsts & V3D_HUB_INT_MMU_CAP) ?
216218
", cap exceeded" : ""));
219+
logged_error = 1;
217220
status = IRQ_HANDLED;
218221
}
219222

0 commit comments

Comments
 (0)