aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0526-drm-amdgpu-vcn-Set-VCPU-busy-after-gate-power-during.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0526-drm-amdgpu-vcn-Set-VCPU-busy-after-gate-power-during.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0526-drm-amdgpu-vcn-Set-VCPU-busy-after-gate-power-during.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0526-drm-amdgpu-vcn-Set-VCPU-busy-after-gate-power-during.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0526-drm-amdgpu-vcn-Set-VCPU-busy-after-gate-power-during.patch
new file mode 100644
index 00000000..c81da28f
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0526-drm-amdgpu-vcn-Set-VCPU-busy-after-gate-power-during.patch
@@ -0,0 +1,33 @@
+From 15b1c94579fa92fc8dfbec0dd57c88611d4b21b6 Mon Sep 17 00:00:00 2001
+From: James Zhu <James.Zhu@amd.com>
+Date: Tue, 9 Oct 2018 16:59:57 -0400
+Subject: [PATCH 0526/2940] drm/amdgpu/vcn:Set VCPU busy after gate power
+ during vcn SPG start
+
+Set VCPU busy after gate power during vcn Static Power Gate start
+
+Signed-off-by: James Zhu <James.Zhu@amd.com>
+Acked-by: Leo Liu <leo.liu@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
+index 153f23acf8dd..d8fe14d43db0 100644
+--- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
+@@ -777,6 +777,10 @@ static int vcn_v1_0_start_spg_mode(struct amdgpu_device *adev)
+ lmi_swap_cntl = 0;
+
+ vcn_1_0_disable_static_power_gating(adev);
++
++ tmp = RREG32_SOC15(UVD, 0, mmUVD_STATUS) | UVD_STATUS__UVD_BUSY;
++ WREG32_SOC15(UVD, 0, mmUVD_STATUS, tmp);
++
+ /* disable clock gating */
+ vcn_v1_0_disable_clock_gating(adev);
+
+--
+2.17.1
+