Skip to content

Commit 7a75c94

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 d62cf08 commit 7a75c94

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
@@ -211,6 +211,7 @@ v3d_hub_irq(int irq, void *arg)
211211
{0x7F, 0x80, "GMP"},
212212
};
213213
const char *client = "?";
214+
static int logged_error;
214215

215216
V3D_WRITE(V3D_MMU_CTL, V3D_READ(V3D_MMU_CTL));
216217

@@ -238,6 +239,7 @@ v3d_hub_irq(int irq, void *arg)
238239
}
239240
}
240241

242+
if (!logged_error)
241243
dev_err(v3d->drm.dev, "MMU error from client %s (0x%x) at 0x%llx%s%s%s\n",
242244
client, axi_id, (long long)vio_addr,
243245
((intsts & V3D_HUB_INT_MMU_WRV) ?
@@ -246,6 +248,7 @@ v3d_hub_irq(int irq, void *arg)
246248
", pte invalid" : ""),
247249
((intsts & V3D_HUB_INT_MMU_CAP) ?
248250
", cap exceeded" : ""));
251+
logged_error = 1;
249252
status = IRQ_HANDLED;
250253
}
251254

0 commit comments

Comments
 (0)