diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0893-drm-amd-amdgpu-Tidy-up-gfx_v9_0_enable_gfx_static_mg.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/0893-drm-amd-amdgpu-Tidy-up-gfx_v9_0_enable_gfx_static_mg.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0893-drm-amd-amdgpu-Tidy-up-gfx_v9_0_enable_gfx_static_mg.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0893-drm-amd-amdgpu-Tidy-up-gfx_v9_0_enable_gfx_static_mg.patch new file mode 100644 index 00000000..fd625e97 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0893-drm-amd-amdgpu-Tidy-up-gfx_v9_0_enable_gfx_static_mg.patch @@ -0,0 +1,33 @@ +From bdec4305c4236460891a56761358c637e2334591 Mon Sep 17 00:00:00 2001 +From: Tom St Denis <tom.stdenis@amd.com> +Date: Thu, 31 Aug 2017 09:31:01 -0400 +Subject: [PATCH 0893/4131] drm/amd/amdgpu: Tidy up + gfx_v9_0_enable_gfx_static_mg_power_gating() + +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, 3 insertions(+), 4 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index a1cf872..c195f00 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -1913,10 +1913,9 @@ static void gfx_v9_0_enable_gfx_static_mg_power_gating(struct amdgpu_device *ade + uint32_t data, default_data; + + default_data = data = RREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_PG_CNTL)); +- if (enable == true) +- data |= RLC_PG_CNTL__STATIC_PER_CU_PG_ENABLE_MASK; +- else +- data &= ~RLC_PG_CNTL__STATIC_PER_CU_PG_ENABLE_MASK; ++ data = REG_SET_FIELD(data, RLC_PG_CNTL, ++ STATIC_PER_CU_PG_ENABLE, ++ enable ? 1 : 0); + if(default_data != data) + WREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_PG_CNTL), data); + } +-- +2.7.4 + |