]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: devfreq: Disable devfreq when num_supplies > 1
authorNicolas Boichat <drinkcat@chromium.org>
Wed, 21 Apr 2021 05:28:54 +0000 (13:28 +0800)
committerSteven Price <steven.price@arm.com>
Fri, 14 May 2021 15:29:14 +0000 (16:29 +0100)
commit43cdd1b9800b395c433c6acf0a1586009b46711d
treece486b540184724e1baca6eaf2694be7561b42f0
parent4926c924a943b7f3922a5ad5e914d2c2f09b7728
drm/panfrost: devfreq: Disable devfreq when num_supplies > 1

GPUs with more than a single regulator (e.g. G72 on MT8183) will
require platform-specific handling for devfreq, for 2 reasons:
 1. The opp core (drivers/opp/core.c:_generic_set_opp_regulator)
    does not support multiple regulators, so we'll need custom
    handlers.
 2. Generally, platforms with 2 regulators have platform-specific
    constraints on how the voltages should be set (e.g.
    minimum/maximum voltage difference between them), so we
    should not just create generic handlers that simply
    change the voltages without taking care of those constraints.

Disable devfreq for now on those GPUs.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.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/20210421132841.v13.3.I3af068abe30c9c85cabc4486385c52e56527a509@changeid
drivers/gpu/drm/panfrost/panfrost_devfreq.c