aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0897-drm-amd-amdgpu-Simplify-gfx_v9_0_wait_for_idle.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0897-drm-amd-amdgpu-Simplify-gfx_v9_0_wait_for_idle.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0897-drm-amd-amdgpu-Simplify-gfx_v9_0_wait_for_idle.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0897-drm-amd-amdgpu-Simplify-gfx_v9_0_wait_for_idle.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0897-drm-amd-amdgpu-Simplify-gfx_v9_0_wait_for_idle.patch
new file mode 100644
index 00000000..e3b3a492
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0897-drm-amd-amdgpu-Simplify-gfx_v9_0_wait_for_idle.patch
@@ -0,0 +1,35 @@
+From 9da96ea5c41dda13e316e62ee4d5a5f2666870c6 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Thu, 31 Aug 2017 09:48:11 -0400
+Subject: [PATCH 0897/4131] drm/amd/amdgpu: Simplify gfx_v9_0_wait_for_idle()
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+index bbb5032..ec28da9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+@@ -2943,15 +2943,10 @@ static bool gfx_v9_0_is_idle(void *handle)
+ static int gfx_v9_0_wait_for_idle(void *handle)
+ {
+ unsigned i;
+- u32 tmp;
+ struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+
+ for (i = 0; i < adev->usec_timeout; i++) {
+- /* read MC_STATUS */
+- tmp = RREG32_SOC15(GC, 0, mmGRBM_STATUS) &
+- GRBM_STATUS__GUI_ACTIVE_MASK;
+-
+- if (!REG_GET_FIELD(tmp, GRBM_STATUS, GUI_ACTIVE))
++ if (gfx_v9_0_is_idle(handle))
+ return 0;
+ udelay(1);
+ }
+--
+2.7.4
+