Skip to contentSkip to conversation

drm/amdgpu/gfx6: set compute ring->ready = false on disable

PATCH In review Alex Deucher 2 participants 2 messages May 23, 2016 – May 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/gfx6: set compute ring->ready = false on disable

Need to properly update the sw ring status when we disable the gfx MEs on SI.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +2 -0
index b9093a6..561d67a 100644
@@ -1464,6 +1464,8 @@ static void gfx_v6_0_cp_gfx_enable(struct amdgpu_device *adev, bool enable)
 		WREG32(SCRATCH_UMSK, 0);
 		for (i = 0; i < adev->gfx.num_gfx_rings; i++)
 			adev->gfx.gfx_ring[i].ready = false;
+		for (i = 0; i < adev->gfx.num_compute_rings; i++)
+			adev->gfx.compute_ring[i].ready = false;
 	}
 	udelay(50);
 }
Signature · 6 lines
2.5.5

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Alex Deucher

Need to properly update the sw ring status when we disable the gfx MEs on SI.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +0 -0
index b9093a6..561d67a 100644

drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c static void gfx_v6_0_cp_gfx_enable(struct amdgpu_device *adev, bool enable) · line 1471

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +2 -0
@@ -1464,6 +1464,8 @@ static void gfx_v6_0_cp_gfx_enable(struct amdgpu_device *adev, bool enable)
 		WREG32(SCRATCH_UMSK, 0);
 		for (i = 0; i < adev->gfx.num_gfx_rings; i++)
 			adev->gfx.gfx_ring[i].ready = false;
+		for (i = 0; i < adev->gfx.num_compute_rings; i++)
+			adev->gfx.compute_ring[i].ready = false;
 	}
 	udelay(50);
 }
Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel