Skip to content

Commit f23e93b

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 0fc39c8 commit f23e93b

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
@@ -177,6 +177,7 @@ v3d_hub_irq(int irq, void *arg)
177177
"GMP",
178178
};
179179
const char *client = "?";
180+
static int logged_error;
180181

181182
V3D_WRITE(V3D_MMU_CTL, V3D_READ(V3D_MMU_CTL));
182183

@@ -186,6 +187,7 @@ v3d_hub_irq(int irq, void *arg)
186187
client = v3d41_axi_ids[axi_id];
187188
}
188189

190+
if (!logged_error)
189191
dev_err(v3d->dev, "MMU error from client %s (%d) at 0x%llx%s%s%s\n",
190192
client, axi_id, (long long)vio_addr,
191193
((intsts & V3D_HUB_INT_MMU_WRV) ?
@@ -194,6 +196,7 @@ v3d_hub_irq(int irq, void *arg)
194196
", pte invalid" : ""),
195197
((intsts & V3D_HUB_INT_MMU_CAP) ?
196198
", cap exceeded" : ""));
199+
logged_error = 1;
197200
status = IRQ_HANDLED;
198201
}
199202

0 commit comments

Comments
 (0)