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/adreno/adreno_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/adreno/adreno_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h index cccc1a508295..d0f9e1e3acd6 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h @@ -182,7 +182,7 @@ void adreno_recover(struct msm_gpu *gpu); void adreno_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit, struct msm_file_private *ctx); void adreno_flush(struct msm_gpu *gpu); -void adreno_idle(struct msm_gpu *gpu); +bool adreno_idle(struct msm_gpu *gpu); #ifdef CONFIG_DEBUG_FS void adreno_show(struct msm_gpu *gpu, struct seq_file *m); #endif |