]> 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)
commit3783209911dadf3fd2a1d4353d1c11dfc216c2c1
treedf166723c4a824ec256be817c8f13e9e892e4d50
parent7b3ee1e02ad7afc063d0b784b47226c8d6a762b2
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