aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2016-10-13 14:39:46 +0500
committerAwais Belal <awais_belal@mentor.com>2016-10-14 15:22:00 +0500
commit912c1466ad973230fcdd08b07f766d291a6c13a4 (patch)
tree3e7a0bdfdf033d61c2212f66c19bf192d41e49b2 /common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch
parentb701f13977df4dd34e618e7d074220782b27dd34 (diff)
downloadmeta-amd-912c1466ad973230fcdd08b07f766d291a6c13a4.tar.gz
meta-amd-912c1466ad973230fcdd08b07f766d291a6c13a4.tar.bz2
meta-amd-912c1466ad973230fcdd08b07f766d291a6c13a4.zip
SE/BE: move to 4.4 kernel
This commit does a few things which cannot be separated easily so it cannot be split in to separate commits. * Drops all 4.1 kernel bits. * Moves all common patches from meta-amdfalconx86 to common. * Moves SE/BE builds to 4.4 kernel. Signed-off-by: Awais Belal <awais_belal@mentor.com>
Diffstat (limited to 'common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch')
-rw-r--r--common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch b/common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch
new file mode 100644
index 00000000..cff9b6c2
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0916-drm-amdgpu-add-ELM-BAF-support-to-dce_v11_0_pick_pll.patch
@@ -0,0 +1,44 @@
+From 9355b7d47bafc14da1944d323db96cb5b32af968 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 15 Oct 2015 15:21:09 -0400
+Subject: [PATCH 0916/1110] drm/amdgpu: add ELM/BAF support to
+ dce_v11_0_pick_pll
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+New PLL scheme on ELM/BAF.
+
+Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+index 53e338b..92a242a 100644
+--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+@@ -2384,6 +2384,18 @@ static u32 dce_v11_0_pick_pll(struct drm_crtc *crtc)
+ u32 pll_in_use;
+ int pll;
+
++ if ((adev->asic_type == CHIP_ELLESMERE) ||
++ (adev->asic_type == CHIP_BAFFIN)) {
++ if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder)))
++ return ATOM_DP_DTO;
++ /* use the same PPLL for all monitors with the same clock */
++ pll = amdgpu_pll_get_shared_nondp_ppll(crtc);
++ if (pll != ATOM_PPLL_INVALID)
++ return pll;
++
++ return ATOM_COMBOPHY_PLL0 + amdgpu_crtc->crtc_id;
++ }
++
+ if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) {
+ if (adev->clock.dp_extclk)
+ /* skip PPLL programming if using ext clock */
+--
+2.7.4
+