1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/nouveau/include
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
..
nvfw treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
nvhw drm/nouveau/kms/nvd9-nv138: Fix CRC calculation for the cursor channel 2021-11-12 23:46:03 +01:00
nvif drm/nouveau: Remove the unused header file nvif/list.h 2022-02-24 16:06:11 -05:00
nvkm drm/nouveau/subdev/bus: Ratelimit logging for fault errors 2022-05-04 14:55:49 -04:00