diff options
author | Rob Clark <robdclark@gmail.com> | 2013-08-24 22:20:38 +0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2013-08-24 22:57:19 +0400 |
commit | bd6f82d8289422f618b98451a43887f452b3423e (patch) | |
tree | e4416dba680a3e88236f9e8b568ff2544c6e1779 /drivers/gpu/drm/msm/adreno/a3xx_gpu.c | |
parent | 7198e6b03155f6dadecadba004eb83b81a6ffe4c (diff) | |
download | linux-bd6f82d8289422f618b98451a43887f452b3423e.tar.xz |
drm/msm: add basic hangcheck/recovery mechanism
A basic, no-frills recovery mechanism in case the gpu gets wedged. We
could try to be a bit more fancy and restart the next submit after the
one that got wedged, but for now keep it simple. This is enough to
recover things if, for example, the gpu hangs mid way through a piglit
run.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/a3xx_gpu.c')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a3xx_gpu.c b/drivers/gpu/drm/msm/adreno/a3xx_gpu.c index 13d61bbed302..035bd13dc8bd 100644 --- a/drivers/gpu/drm/msm/adreno/a3xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a3xx_gpu.c @@ -371,6 +371,7 @@ static const struct adreno_gpu_funcs funcs = { .hw_init = a3xx_hw_init, .pm_suspend = msm_gpu_pm_suspend, .pm_resume = msm_gpu_pm_resume, + .recover = adreno_recover, .last_fence = adreno_last_fence, .submit = adreno_submit, .flush = adreno_flush, |