]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/crc-debugfs: User irqsafe spinlock in drm_crtc_add_crc_entry
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Jun 2019 19:45:56 +0000 (21:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:50 +0000 (07:28 +0200)
commited4577fc2b8671a63bc56e525c6bed13e4a3c182
tree0b91a44234d193dfe0dea0308b18a26d130c203f
parent9a76fa7c01c7362e84de12bfb113bc12916cc158
drm/crc-debugfs: User irqsafe spinlock in drm_crtc_add_crc_entry

[ Upstream commit 1882018a70e06376234133e69ede9dd743b4dbd9 ]

We can be called from any context, we need to be prepared.

Noticed this while hacking on vkms, which calls this function from a
normal worker. Which really upsets lockdep.

Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190605194556.16744-1-daniel.vetter@ffwll.ch
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_debugfs_crc.c