diff mbox

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

Message ID 1464037493-19098-1-git-send-email-alexander.deucher@amd.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alex Deucher May 23, 2016, 9:04 p.m. UTC
Need to properly update the sw ring status when we disable
the gfx MEs on SI.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michel Dänzer May 24, 2016, 8 a.m. UTC | #1
On 24.05.2016 06:04, Alex Deucher wrote:
> Need to properly update the sw ring status when we disable
> the gfx MEs on SI.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
> index b9093a6..561d67a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
> @@ -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);
>  }
> 

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
diff mbox

Patch

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
index b9093a6..561d67a 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
@@ -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);
 }