OSDN Git Service

drm/nouveau/nvkm: give each nvkm_event its own lockdep class
authorBen Skeggs <bskeggs@redhat.com>
Wed, 1 Jun 2022 10:46:51 +0000 (20:46 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 9 Nov 2022 00:44:35 +0000 (10:44 +1000)
commitab4f75eb1cc261263ac51814fed14fde08b6716f
tree84385f50a58509a96c276fc622a4292280cd1e58
parent4a16dd9d18a04742292cc7bfdbb79aedfe24e2c8
drm/nouveau/nvkm: give each nvkm_event its own lockdep class

The vblank and nonstall events have some annoying interactions with DRM
locking, and aren't able to do certain things as a result.

However, other uses of event notifications don't have such requirements,
and upcoming patches take advantage of this for various improvements.

Having separate classes for each nvkm_event's spinlocks allows lockdep
to distinguish between them and avoid false-positives.

v2: __always_inline + comment

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/event.h
drivers/gpu/drm/nouveau/nvkm/core/event.c