diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0340-drm-amdgpu-ci-remove-redundant-pcie-setup.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0340-drm-amdgpu-ci-remove-redundant-pcie-setup.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0340-drm-amdgpu-ci-remove-redundant-pcie-setup.patch b/common/recipes-kernel/linux/files/0340-drm-amdgpu-ci-remove-redundant-pcie-setup.patch new file mode 100644 index 00000000..b12db004 --- /dev/null +++ b/common/recipes-kernel/linux/files/0340-drm-amdgpu-ci-remove-redundant-pcie-setup.patch @@ -0,0 +1,51 @@ +From 964dba44d2eed69d8273f46ff814ecc941ffb7d1 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Thu, 3 Mar 2016 12:28:37 -0500 +Subject: [PATCH 0340/1110] drm/amdgpu/ci: remove redundant pcie setup +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Looks like this got leftover by accident. + +Reviewed-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 20 -------------------- + 1 file changed, 20 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +index f66db20..2a51bc7 100644 +--- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c ++++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +@@ -4381,26 +4381,6 @@ static int ci_dpm_force_performance_level(struct amdgpu_device *adev, + } + } + } +- if ((!pi->pcie_dpm_key_disabled) && +- pi->dpm_level_enable_mask.pcie_dpm_enable_mask) { +- levels = 0; +- tmp = pi->dpm_level_enable_mask.pcie_dpm_enable_mask; +- while (tmp >>= 1) +- levels++; +- if (levels) { +- ret = ci_dpm_force_state_pcie(adev, level); +- if (ret) +- return ret; +- for (i = 0; i < adev->usec_timeout; i++) { +- tmp = (RREG32_SMC(ixTARGET_AND_CURRENT_PROFILE_INDEX_1) & +- TARGET_AND_CURRENT_PROFILE_INDEX_1__CURR_PCIE_INDEX_MASK) >> +- TARGET_AND_CURRENT_PROFILE_INDEX_1__CURR_PCIE_INDEX__SHIFT; +- if (tmp == levels) +- break; +- udelay(1); +- } +- } +- } + } else if (level == AMDGPU_DPM_FORCED_LEVEL_LOW) { + if ((!pi->sclk_dpm_key_disabled) && + pi->dpm_level_enable_mask.sclk_dpm_enable_mask) { +-- +2.7.4 + |