mirror_ubuntu-kernels/drivers/gpu/drm/panfrost
Clément Péron d76034a427 drm/panfrost: devfreq: set opp to the recommended one to configure regulator
Enabling panfrost GPU OPP with dynamic regulator will make OPP
responsible to enable and configure it.

Unfortunately OPP configure and enable the regulator when an OPP
is asked to be set, which is not the case during
panfrost_devfreq_init().

This leave the regulator unconfigured and if no GPU load is
triggered, no OPP is asked to be set which make the regulator framework
switching it off during regulator_late_cleanup() without
noticing and therefore make the board hang as any access to GPU
memory space make bus locks up.

Call dev_pm_opp_set_opp() with the recommend OPP in
panfrost_devfreq_init() to enable the regulator, this will properly
configure and enable the regulator and will avoid any switch off
by regulator_late_cleanup().

Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220906153034.153321-5-peron.clem@gmail.com
2022-09-08 11:03:52 +01:00
..
Kconfig
Makefile
panfrost_devfreq.c drm/panfrost: devfreq: set opp to the recommended one to configure regulator 2022-09-08 11:03:52 +01:00
panfrost_devfreq.h drm for 5.13-rc1 2021-04-28 10:01:40 -07:00
panfrost_device.c drm/panfrost: Handle HW_ISSUE_TTRX_3076 2022-05-26 09:53:01 -04:00
panfrost_device.h drm/panfrost: Queue jobs on the hardware 2021-07-01 08:53:37 +02:00
panfrost_drv.c More power management updates for 5.20-rc1 2022-08-08 14:29:00 -07:00
panfrost_features.h drm/panfrost: Add Mali-G57 "Natt" support 2022-05-26 09:53:38 -04:00
panfrost_gem_shrinker.c mm: shrinkers: provide shrinkers with names 2022-07-03 18:08:40 -07:00
panfrost_gem.c drm/gem-shmem: Set vm_ops in static initializer 2022-02-14 09:42:01 +01:00
panfrost_gem.h drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-03 09:21:52 +01:00
panfrost_gpu.c drm/panfrost: Add Mali-G57 "Natt" support 2022-05-26 09:53:38 -04:00
panfrost_gpu.h drm/panfrost: add amlogic reset quirk callback 2020-09-21 10:13:50 +01:00
panfrost_issues.h drm/panfrost: Add Mali-G57 "Natt" support 2022-05-26 09:53:38 -04:00
panfrost_job.c A use-after-free fix for panfrost, and a DT invalid configuration fix for 2022-06-10 13:12:36 +10:00
panfrost_job.h drm/panfrost: Job should reference MMU not file_priv 2022-05-25 09:14:22 +01:00
panfrost_mmu.c drm/panfrost: Put mapping instead of shmem obj on panfrost_mmu_map_fault_addr() error 2022-07-04 16:38:00 +01:00
panfrost_mmu.h drm/panfrost: Make sure MMU context lifetime is not bound to panfrost_priv 2021-06-24 09:25:56 +02:00
panfrost_perfcnt.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
panfrost_perfcnt.h drm/panfrost: Open/close the perfcnt BO 2019-12-06 11:06:20 -06:00
panfrost_regs.h drm/panfrost: Handle HW_ISSUE_TTRX_2968_TTRX_3162 2022-05-26 09:53:01 -04:00
TODO