]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/adreno: Load the firmware before bringing up the hardware
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 6 Aug 2018 17:33:22 +0000 (11:33 -0600)
committerRob Clark <robdclark@gmail.com>
Fri, 10 Aug 2018 22:49:18 +0000 (18:49 -0400)
commite7c1a247ee33d6979e3d5696590fef57da146e92
treedf166723c4a824ec256be817c8f13e9e892e4d50
parent821910b1b39c19129398a5ca89cd4c78b0fc6170
drm/msm/adreno: Load the firmware before bringing up the hardware

Failure to load firmware is the primary reason to fail adreno_load_gpu().
Try to load it first before going into the hardware initialization code and
unwinding it. This is important for a6xx because the GMU gets loaded from
the runtime power code and it is more costly to fail in that path because
of missing firmware.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/adreno_device.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h