diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3600-drm-amdgpu-fix-commit-4ef9d7d.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3600-drm-amdgpu-fix-commit-4ef9d7d.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3600-drm-amdgpu-fix-commit-4ef9d7d.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3600-drm-amdgpu-fix-commit-4ef9d7d.patch new file mode 100644 index 00000000..d9b5818d --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3600-drm-amdgpu-fix-commit-4ef9d7d.patch @@ -0,0 +1,46 @@ +From 1cee77d072cd911f866a043f52da987e23747b6b Mon Sep 17 00:00:00 2001 +From: Aaron Liu <aaron.liu@amd.com> +Date: Tue, 27 Aug 2019 22:59:45 +0800 +Subject: [PATCH 3600/4256] drm/amdgpu: fix commit 4ef9d7d + +For picasso(adev->pdev->device == 0x15d8)&raven2(adev->rev_id >= 0x8), +firmware is sufficient to support gfxoff. +In commit 4ef9d7dc2db166cbe83fe4621385f034c9347fd2, for picasso&raven2, +return directly and cause gfxoff disabled. + +Signed-off-by: Aaron Liu <aaron.liu@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Reviewed-by: Huang Rui <ray.huang@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index 2762ae45f3af..fd7947ef4c24 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -1027,14 +1027,14 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) + case CHIP_VEGA20: + break; + case CHIP_RAVEN: +- if (adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8) +- break; +- if ((adev->gfx.rlc_fw_version != 106 && +- adev->gfx.rlc_fw_version < 531) || +- (adev->gfx.rlc_fw_version == 53815) || +- (adev->gfx.rlc_feature_version < 1) || +- !adev->gfx.rlc.is_rlc_v2_1) ++ if (!(adev->rev_id >= 0x8 || adev->pdev->device == 0x15d8) ++ &&((adev->gfx.rlc_fw_version != 106 && ++ adev->gfx.rlc_fw_version < 531) || ++ (adev->gfx.rlc_fw_version == 53815) || ++ (adev->gfx.rlc_feature_version < 1) || ++ !adev->gfx.rlc.is_rlc_v2_1)) + adev->pm.pp_feature &= ~PP_GFXOFF_MASK; ++ + if (adev->pm.pp_feature & PP_GFXOFF_MASK) + adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | + AMD_PG_SUPPORT_CP | +-- +2.17.1 + |