[PATCH] drm/amdgpu: disable HDP flushes on APUs

Deucher, Alexander Alexander.Deucher at amd.com
Fri Mar 3 16:59:20 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Christian König
> Sent: Friday, March 03, 2017 11:47 AM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH] drm/amdgpu: disable HDP flushes on APUs
> 
> From: Christian König <christian.koenig at amd.com>
> 
> We completely bypass the HDP now.
> 
> Signed-off-by: Christian König <christian.koenig at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> index 976722f..fd7633d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
> @@ -172,7 +172,11 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring,
> unsigned num_ibs,
>  		}
>  	}
> 
> -	if (ring->funcs->emit_hdp_flush)
> +	if (ring->funcs->emit_hdp_flush
> +#ifdef CONFIG_X86_64
> +	    && !(adev->flags & AMD_IS_APU)
> +#endif
> +	   )
>  		amdgpu_ring_emit_hdp_flush(ring);
> 
>  	skip_preamble = ring->current_ctx == fence_ctx;
> @@ -202,7 +206,11 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring,
> unsigned num_ibs,
>  		need_ctx_switch = false;
>  	}
> 
> -	if (ring->funcs->emit_hdp_invalidate)
> +	if (ring->funcs->emit_hdp_invalidate
> +#ifdef CONFIG_X86_64
> +	    && !(adev->flags & AMD_IS_APU)
> +#endif
> +	   )
>  		amdgpu_ring_emit_hdp_invalidate(ring);
> 
>  	r = amdgpu_fence_emit(ring, f);
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list