diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0250-drm-amdgpu-Add-pg-support-for-gfxoff-for-PCO.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0250-drm-amdgpu-Add-pg-support-for-gfxoff-for-PCO.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0250-drm-amdgpu-Add-pg-support-for-gfxoff-for-PCO.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0250-drm-amdgpu-Add-pg-support-for-gfxoff-for-PCO.patch new file mode 100644 index 00000000..1610b7d6 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0250-drm-amdgpu-Add-pg-support-for-gfxoff-for-PCO.patch @@ -0,0 +1,33 @@ +From 28587fa22dc29815e58aef14ebe29671ea57a13b Mon Sep 17 00:00:00 2001 +From: Kenneth Feng <kenneth.feng@amd.com> +Date: Tue, 7 Aug 2018 17:05:22 +0800 +Subject: [PATCH 0250/2940] drm/amdgpu: Add pg support for gfxoff for PCO + +Add pg support for gfxoff. + +Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> +Reviewed-by: Huang Rui <ray.huang@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c +index a312d937a0d6..5ffe8f728524 100644 +--- a/drivers/gpu/drm/amd/amdgpu/soc15.c ++++ b/drivers/gpu/drm/amd/amdgpu/soc15.c +@@ -740,7 +740,10 @@ static int soc15_common_early_init(void *handle) + AMD_CG_SUPPORT_SDMA_MGCG | + AMD_CG_SUPPORT_SDMA_LS; + +- adev->pg_flags = 0; ++ if (adev->powerplay.pp_feature & PP_GFXOFF_MASK) ++ adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | ++ AMD_PG_SUPPORT_CP | ++ AMD_PG_SUPPORT_RLC_SMU_HS; + + adev->external_rev_id = adev->rev_id + 0x41; + break; +-- +2.17.1 + |