> -----Original Message-----
> From: amd-gfx [mailto:[email protected]] On Behalf
> Of Xiangliang Yu
> Sent: Tuesday, April 18, 2017 3:38 AM
> To: [email protected]
> Cc: Yu, Xiangliang
> Subject: [PATCH 2/2] drm/amdgpu/gfx9: bypass clockgating setting
> 
> For SRIOV doesn't need clockgating, bypass it.
> 
> Signed-off-by: Xiangliang Yu <[email protected]>

Reviewed-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> index f6b2329..ca77e33 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> @@ -2740,6 +2740,9 @@ static int gfx_v9_0_set_clockgating_state(void
> *handle,
>  {
>       struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> 
> +     if (amdgpu_sriov_vf(adev))
> +             return 0;
> +
>       switch (adev->asic_type) {
>       case CHIP_VEGA10:
>               gfx_v9_0_update_gfx_clock_gating(adev,
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to