Re: [PATCH] drm/amdgpu/sriov : Don't resume RLCG for SRIOV guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 17, 2020 at 12:55 PM shaoyunl <shaoyun.liu@xxxxxxx> wrote:
>
> RLCG is enabled by host driver, no need to enable it in guest for none-PSP load path
>
> Change-Id: I2f313743bf3d492f06aaef07224da6eda3878a28
> Signed-off-by: shaoyunl <shaoyun.liu@xxxxxxx>

Acked-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> index d1cdcb4..e134bb2 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> @@ -1940,6 +1940,11 @@ static int gfx_v10_0_rlc_resume(struct amdgpu_device *adev)
>                 if (!amdgpu_sriov_vf(adev)) /* enable RLC SRM */
>                         gfx_v10_0_rlc_enable_srm(adev);
>         } else {
> +               if (amdgpu_sriov_vf(adev)) {
> +                       gfx_v10_0_init_csb(adev);
> +                       return 0;
> +               }
> +
>                 adev->gfx.rlc.funcs->stop(adev);
>
>                 /* disable CG */
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux