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