]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Don't corrupt the queue mutex on open/close
authorSteven Price <steven.price@arm.com>
Thu, 29 Oct 2020 17:00:47 +0000 (17:00 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 30 Oct 2020 09:10:08 +0000 (10:10 +0100)
commit7d043265a02ca6815e3b94a8f3c287c2f6432d9e
tree089c42f11df45bd15303375638d2c15fb80c5680
parent0516b26a28fac5d971cd6f9f8356198defafb1ae
drm/panfrost: Don't corrupt the queue mutex on open/close

The mutex within the panfrost_queue_state should have the lifetime of
the queue, however it was erroneously initialised/destroyed during
panfrost_job_{open,close} which is called every time a client
opens/closes the drm node.

Move the initialisation/destruction to panfrost_job_{init,fini} where it
belongs.

Fixes: 3d92685c394d ("drm/panfrost: Fix job timeout handling")
Signed-off-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201029170047.30564-1-steven.price@arm.com
drivers/gpu/drm/panfrost/panfrost_job.c