linux-brain/drivers/gpu/drm/panfrost
Alyssa Rosenzweig b9cc70e3dc drm/panfrost: Clamp lock region to Bifrost minimum
commit bd7ffbc3ca12629aeb66fb9e28cf42b7f37e3e3b upstream.

When locking a region, we currently clamp to a PAGE_SIZE as the minimum
lock region. While this is valid for Midgard, it is invalid for Bifrost,
where the minimum locking size is 8x larger than the 4k page size. Add a
hardware definition for the minimum lock region size (corresponding to
KBASE_LOCK_REGION_MIN_SIZE_LOG2 in kbase) and respect it.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210824173028.7528-4-alyssa.rosenzweig@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-22 12:26:38 +02: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 missing clk_disable_unprepare() on error in panfrost_clk_init() 2021-09-15 09:47:30 +02: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: Clamp lock region to Bifrost minimum 2021-09-22 12:26:38 +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: Clamp lock region to Bifrost minimum 2021-09-22 12:26:38 +02:00