1
0
Fork 0
alistair23-linux/drivers/gpu/drm/panfrost
Boris Brezillon d61edc0600 drm/panfrost: Fix a deadlock between the shrinker and madvise path
commit 7d2d6d0129 upstream.

panfrost_ioctl_madvise() and panfrost_gem_purge() acquire the mappings
and shmem locks in different orders, thus leading to a potential
the mappings lock first.

Fixes: bdefca2d8d ("drm/panfrost: Add the panfrost_gem_mapping concept")
Cc: <stable@vger.kernel.org>
Cc: Christian Hewitt <christianshewitt@gmail.com>
Reported-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201101174016.839110-1-boris.brezillon@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 12:37:33 +01:00
..
Kconfig drm/panfrost: Require the simple_ondemand governor 2019-06-10 09:30:34 -06:00
Makefile drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
TODO drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00
panfrost_devfreq.c drm/panfrost: Add missing check for pfdev->regulator 2020-01-26 10:01:03 +01:00
panfrost_devfreq.h drm/panfrost: Remove opp table when unloading 2019-08-19 11:38:51 -05:00
panfrost_device.c drm/panfrost: Fix regulator_get_optional() misuse 2019-09-19 11:45:44 -05:00
panfrost_device.h drm/panfrost: Remove unnecessary hwaccess_lock spin_lock 2019-08-30 09:53:52 -05:00
panfrost_drv.c drm/panfrost: Make sure the shrinker does not reclaim referenced BOs 2020-02-19 19:53:04 +01:00
panfrost_features.h
panfrost_gem.c drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-10 12:37:33 +01:00
panfrost_gem.h drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-10 12:37:33 +01:00
panfrost_gem_shrinker.c drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-10 12:37:33 +01:00
panfrost_gpu.c drm/panfrost: add amlogic reset quirk callback 2020-10-29 09:58:05 +01:00
panfrost_gpu.h drm/panfrost: add amlogic reset quirk callback 2020-10-29 09:58:05 +01:00
panfrost_issues.h
panfrost_job.c drm/panfrost: Make sure the shrinker does not reclaim referenced BOs 2020-02-19 19:53:04 +01:00
panfrost_job.h drm/panfrost: Add the panfrost_gem_mapping concept 2020-01-29 16:45:25 +01:00
panfrost_mmu.c drm/panfrost: Use kvfree() to free bo->sgts 2020-08-21 13:05:39 +02:00
panfrost_mmu.h drm/panfrost: Add the panfrost_gem_mapping concept 2020-01-29 16:45:25 +01:00
panfrost_perfcnt.c drm/panfrost: perfcnt: Reserve/use the AS attached to the perfcnt MMU context 2020-02-28 17:22:17 +01:00
panfrost_perfcnt.h drm/panfrost: Open/close the perfcnt BO 2019-12-17 19:56:24 +01:00
panfrost_regs.h drm/panfrost: add amlogic reset quirk callback 2020-10-29 09:58:05 +01:00