]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/adreno: Defer enabling runpm until hw_init()
authorRob Clark <robdclark@chromium.org>
Mon, 13 Jun 2022 18:20:30 +0000 (11:20 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 7 Jul 2022 01:54:41 +0000 (18:54 -0700)
commit4f797781e2c9bb39cc915ab032e8de571c1c7fb3
treefbaa786efb15de552a49bb1210657f48ec983357
parent3ce6fbb1d2cc8887d51611cacf7718bfa2e5d241
drm/msm/adreno: Defer enabling runpm until hw_init()

To avoid preventing the display from coming up before the rootfs is
mounted, without resorting to packing fw in the initrd, the GPU has
this limbo state where the device is probed, but we aren't ready to
start sending commands to it.  This is particularly problematic for
a6xx, since the GMU (which requires fw to be loaded) is the one that
is controlling the power/clk/icc votes.

So defer enabling runpm until we are ready to call gpu->hw_init(),
as that is a point where we know we have all the needed fw and are
ready to start sending commands to the coproc's.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/489337/
Link: https://lore.kernel.org/r/20220613182036.2567963-1-robdclark@gmail.com
drivers/gpu/drm/msm/adreno/adreno_device.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c