diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1851-drm-amdgpu-sriov-init-csb-for-gfxv9.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1851-drm-amdgpu-sriov-init-csb-for-gfxv9.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1851-drm-amdgpu-sriov-init-csb-for-gfxv9.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1851-drm-amdgpu-sriov-init-csb-for-gfxv9.patch new file mode 100644 index 00000000..0ba0348b --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1851-drm-amdgpu-sriov-init-csb-for-gfxv9.patch @@ -0,0 +1,38 @@ +From ecf0107a19702a3a5cb605e65821e7dc33b9f98b Mon Sep 17 00:00:00 2001 +From: Monk Liu <Monk.Liu@amd.com> +Date: Fri, 15 Sep 2017 16:58:08 +0800 +Subject: [PATCH 1851/4131] drm/amdgpu/sriov:init csb for gfxv9 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 + +Change-Id: I3afd82875564c233060b740724bd8031095780f6 +Signed-off-by: Monk Liu <Monk.Liu@amd.com> +Acked-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index 0f116b1a..d1dbec1 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -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); + +-- +2.7.4 + |