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 <phil@raspberrypi.org>
"GMP",
};
const char *client = "?";
+ static int logged_error;
V3D_WRITE(V3D_MMU_CTL, V3D_READ(V3D_MMU_CTL));
client = v3d41_axi_ids[axi_id];
}
+ if (!logged_error)
dev_err(v3d->drm.dev, "MMU error from client %s (%d) at 0x%llx%s%s%s\n",
client, axi_id, (long long)vio_addr,
((intsts & V3D_HUB_INT_MMU_WRV) ?
", pte invalid" : ""),
((intsts & V3D_HUB_INT_MMU_CAP) ?
", cap exceeded" : ""));
+ logged_error = 1;
status = IRQ_HANDLED;
}