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)
commit2c087a336676961513f61a0012a88e399e69e943
treedf166723c4a824ec256be817c8f13e9e892e4d50
parent8e54eea503caec53d39e67407ffa785690f38ba4
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