drm/nouveau: add lockdep annotations
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 4 Feb 2013 20:52:54 +0000 (21:52 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Feb 2013 00:12:21 +0000 (10:12 +1000)
commit5f97ab913cf0fbc378ea8ffc3ee66f4890d11c55
tree1f3341522f74292c1890a93b368fc9c94d5a726d
parent526810adb93554e17bdb83023a01cfa8758960b2
drm/nouveau: add lockdep annotations

1) Lockdep thinks all nouveau subdevs belong to the same class and can be
locked in arbitrary order, which is not true (at least in general case).
Tell it to distinguish subdevs by (o)class type.
2) DRM client can be locked under user client lock - tell lockdep to put
DRM client lock in a separate class.

Reported-by: Arend van Spriel <arend@broadcom.com>
Reported-by: Peter Hurley <peter@hurleysoftware.com>
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reported-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: stable@vger.kernel.org [3.7, but needs s/const ofuncs/ofuncs/ to build]
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/subdev.c
drivers/gpu/drm/nouveau/core/include/core/object.h
drivers/gpu/drm/nouveau/nouveau_drm.c