All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu/gfx6: set compute ring->ready = false on disable
@ 2016-05-23 21:04 Alex Deucher
  2016-05-24  8:00 ` Michel Dänzer
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2016-05-23 21:04 UTC (permalink / raw)
  To: dri-devel; +Cc: Alex Deucher

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);
 }
-- 
2.5.5

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu/gfx6: set compute ring->ready = false on disable
  2016-05-23 21:04 [PATCH] drm/amdgpu/gfx6: set compute ring->ready = false on disable Alex Deucher
@ 2016-05-24  8:00 ` Michel Dänzer
  0 siblings, 0 replies; 2+ messages in thread
From: Michel Dänzer @ 2016-05-24  8:00 UTC (permalink / raw)
  To: Alex Deucher; +Cc: Alex Deucher, dri-devel

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>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-24  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23 21:04 [PATCH] drm/amdgpu/gfx6: set compute ring->ready = false on disable Alex Deucher
2016-05-24  8:00 ` Michel Dänzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.