[PATCH] drm/tegra: fix locking of SET_TILING ioctl

2015-11-19 Thread Alexandre Courbot
On Tue, Nov 17, 2015 at 7:02 PM, Daniel Vetter wrote: > On Thu, Nov 12, 2015 at 04:09:56PM +0900, Alexandre Courbot wrote: >> drm_gem_object_unreference() now expects obj->dev->struct_mutex to be >> held. Use the newly-introduced drm_gem_object_unreference_unlocked() >> which handles locking for u

[PATCH] drm/tegra: fix locking of SET_TILING ioctl

2015-11-17 Thread Daniel Vetter
On Thu, Nov 12, 2015 at 04:09:56PM +0900, Alexandre Courbot wrote: > drm_gem_object_unreference() now expects obj->dev->struct_mutex to be > held. Use the newly-introduced drm_gem_object_unreference_unlocked() > which handles locking for us. This rule has been really old, I simply made the checkin

[PATCH] drm/tegra: fix locking of SET_TILING ioctl

2015-11-12 Thread Alexandre Courbot
drm_gem_object_unreference() now expects obj->dev->struct_mutex to be held. Use the newly-introduced drm_gem_object_unreference_unlocked() which handles locking for us. If we don't do this drm_gem_object_unreference() will get noisy about struct_mutex not being held every time we call the SET_TILI