1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus
Lyude Paul 9887bda0c8 drm/nouveau/subdev/bus: Ratelimit logging for fault errors
There's plenty of ways to fudge the GPU when developing on nouveau by
mistake, some of which can result in nouveau seriously spamming dmesg with
fault errors. This can be somewhat annoying, as it can quickly overrun the
message buffer (or your terminal emulator's buffer) and get rid of actually
useful feedback from the driver. While working on my new atomic only MST
branch, I ran into this issue a couple of times.

So, let's fix this by adding nvkm_error_ratelimited(), and using it to
ratelimit errors from faults. This should be fine for developers, since
it's nearly always only the first few faults that we care about seeing.
Plus, you can turn off rate limiting in the kernel if you really need to.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220429195350.85620-1-lyude@redhat.com
2022-05-04 14:55:49 -04:00
..
base.c drm/nouveau/bus: switch to instanced constructor 2021-02-11 11:49:52 +10:00
g94.c drm/nouveau/bus: switch to instanced constructor 2021-02-11 11:49:52 +10:00
gf100.c drm/nouveau/subdev/bus: Ratelimit logging for fault errors 2022-05-04 14:55:49 -04:00
hwsq.c drm/nouveau/bus/hwsq: Implement VBLANK waiting heuristic 2015-11-03 15:02:18 +10:00
hwsq.h drm/nouveau: fix bogus GPL-2 license header 2019-07-19 16:26:50 +10:00
Kbuild drm/nouveau: fix bogus GPL-2 license header 2019-07-19 16:26:51 +10:00
nv04.c drm/nouveau/bus: switch to instanced constructor 2021-02-11 11:49:52 +10:00
nv31.c drm/nouveau/subdev/bus: Ratelimit logging for fault errors 2022-05-04 14:55:49 -04:00
nv50.c drm/nouveau/subdev/bus: Ratelimit logging for fault errors 2022-05-04 14:55:49 -04:00
priv.h drm/nouveau/bus: switch to instanced constructor 2021-02-11 11:49:52 +10:00