diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2016-11-28 22:28:27 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-11-28 23:14:11 +0300 |
commit | c4a8d4756061f72cba52af1e3035c07769cee679 (patch) | |
tree | a48c7d5dd2bc366eb96db6ee44494105a660a9f5 /drivers/gpu/drm/msm/msm_gpu.h | |
parent | bcc188b77d3e7d77fc7efd5feab148707e095b77 (diff) | |
download | linux-c4a8d4756061f72cba52af1e3035c07769cee679.tar.xz |
drm/msm: gpu: Return error on hw_init failure
When the GPU hardware init function fails (like say, ME_INIT timed
out) return error instead of blindly continuing on. This gives us
a small chance of saving the system before it goes boom.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 6a7e78b317f2..10954135130d 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -50,7 +50,7 @@ struct msm_gpu_funcs { void (*submit)(struct msm_gpu *gpu, struct msm_gem_submit *submit, struct msm_file_private *ctx); void (*flush)(struct msm_gpu *gpu); - void (*idle)(struct msm_gpu *gpu); + bool (*idle)(struct msm_gpu *gpu); irqreturn_t (*irq)(struct msm_gpu *irq); uint32_t (*last_fence)(struct msm_gpu *gpu); void (*recover)(struct msm_gpu *gpu); |