[PATCH 2/2] drm/amdgpu: disable to restore hw ring content

Chunming Zhou David1.Zhou at amd.com
Tue Jun 28 07:04:19 UTC 2016


Before we figure out a solution for retoring hw ring content, we should disable it.
The main factor is how to restore page table for every command in hw ring, otherwise,
VM fault is coming.

Change-Id: I6037efe9d69db8baaacc3c01bd4073401da0ed59
Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 32e0d38..a755011 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1996,7 +1996,7 @@ retry:
 	}
 	/* restore scratch */
 	amdgpu_atombios_scratch_regs_restore(adev);
-	if (!r) {
+	if (0) {
 		for (i = 0; i < AMDGPU_MAX_RINGS; ++i) {
 			struct amdgpu_ring *ring = adev->rings[i];
 			if (!ring)
-- 
1.9.1



More information about the amd-gfx mailing list