summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-01-24 18:33:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:52:41 -0400
commitf3972b531d36a09bdc01dcf00b9a369e076cb563 (patch)
tree32015c5bef9aaab657b822cd2cbdfdfd700ec149 /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
parentce137c04ff4bb7862a952e32d5200c301e620601 (diff)
downloadblackbird-obmc-linux-f3972b531d36a09bdc01dcf00b9a369e076cb563.tar.gz
blackbird-obmc-linux-f3972b531d36a09bdc01dcf00b9a369e076cb563.zip
drm/damdgpu:add new mqd member in ring
introduce a new mqd member in ring is for later usage. we need keep a clean version of MQD for the purpose of recovering compute rings from hang. Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index e0a96ca583a4..505db77dc87d 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -4596,6 +4596,8 @@ static void gfx_v8_0_cp_compute_fini(struct amdgpu_device *adev)
amdgpu_bo_unref(&ring->mqd_obj);
ring->mqd_obj = NULL;
+ ring->mqd_ptr = NULL;
+ ring->mqd_gpu_addr = 0;
}
}
}
OpenPOWER on IntegriCloud