OSDN Git Service

drm/amdgpu/sriov:init csb for gfxv9
authorMonk Liu <Monk.Liu@amd.com>
Fri, 15 Sep 2017 08:58:08 +0000 (16:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:12 +0000 (15:14 -0400)
RLC need CSB registers initiated under SRIOV during world switch
otherwise the clear state buffer behav will not be recovered to
current VF scheme after switch back

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index f1d7c5d..e2ae00d 100644 (file)
@@ -2045,8 +2045,10 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
 {
        int r;
 
-       if (amdgpu_sriov_vf(adev))
+       if (amdgpu_sriov_vf(adev)) {
+               gfx_v9_0_init_csb(adev);
                return 0;
+       }
 
        gfx_v9_0_rlc_stop(adev);