aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4328-drm-amdgpu-Add-VEGAM-support-to-the-legacy-DCE-11-mo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4328-drm-amdgpu-Add-VEGAM-support-to-the-legacy-DCE-11-mo.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4328-drm-amdgpu-Add-VEGAM-support-to-the-legacy-DCE-11-mo.patch82
1 files changed, 82 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4328-drm-amdgpu-Add-VEGAM-support-to-the-legacy-DCE-11-mo.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4328-drm-amdgpu-Add-VEGAM-support-to-the-legacy-DCE-11-mo.patch
new file mode 100644
index 00000000..d6a685bf
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4328-drm-amdgpu-Add-VEGAM-support-to-the-legacy-DCE-11-mo.patch
@@ -0,0 +1,82 @@
+From b05aa2ebe0482b6f231e951045ab8c84eec14094 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 19 Apr 2018 16:38:46 -0500
+Subject: [PATCH 4328/5725] drm/amdgpu: Add VEGAM support to the legacy DCE 11
+ module
+
+DC is preferred.
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 13 ++++++++++---
+ 1 file changed, 10 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+index f354281..cfb2ddb 100644
+--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+@@ -173,6 +173,7 @@ static void dce_v11_0_init_golden_registers(struct amdgpu_device *adev)
+ ARRAY_SIZE(polaris11_golden_settings_a11));
+ break;
+ case CHIP_POLARIS10:
++ case CHIP_VEGAM:
+ amdgpu_device_program_register_sequence(adev,
+ polaris10_golden_settings_a11,
+ ARRAY_SIZE(polaris10_golden_settings_a11));
+@@ -473,6 +474,7 @@ static int dce_v11_0_get_num_crtc (struct amdgpu_device *adev)
+ num_crtc = 2;
+ break;
+ case CHIP_POLARIS10:
++ case CHIP_VEGAM:
+ num_crtc = 6;
+ break;
+ case CHIP_POLARIS11:
+@@ -1445,6 +1447,7 @@ static int dce_v11_0_audio_init(struct amdgpu_device *adev)
+ adev->mode_info.audio.num_pins = 7;
+ break;
+ case CHIP_POLARIS10:
++ case CHIP_VEGAM:
+ adev->mode_info.audio.num_pins = 8;
+ break;
+ case CHIP_POLARIS11:
+@@ -2253,7 +2256,8 @@ static u32 dce_v11_0_pick_pll(struct drm_crtc *crtc)
+
+ if ((adev->asic_type == CHIP_POLARIS10) ||
+ (adev->asic_type == CHIP_POLARIS11) ||
+- (adev->asic_type == CHIP_POLARIS12)) {
++ (adev->asic_type == CHIP_POLARIS12) ||
++ (adev->asic_type == CHIP_VEGAM)) {
+ struct amdgpu_encoder *amdgpu_encoder =
+ to_amdgpu_encoder(amdgpu_crtc->encoder);
+ struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv;
+@@ -2673,7 +2677,8 @@ static int dce_v11_0_crtc_mode_set(struct drm_crtc *crtc,
+
+ if ((adev->asic_type == CHIP_POLARIS10) ||
+ (adev->asic_type == CHIP_POLARIS11) ||
+- (adev->asic_type == CHIP_POLARIS12)) {
++ (adev->asic_type == CHIP_POLARIS12) ||
++ (adev->asic_type == CHIP_VEGAM)) {
+ struct amdgpu_encoder *amdgpu_encoder =
+ to_amdgpu_encoder(amdgpu_crtc->encoder);
+ int encoder_mode =
+@@ -2831,6 +2836,7 @@ static int dce_v11_0_early_init(void *handle)
+ adev->mode_info.num_dig = 9;
+ break;
+ case CHIP_POLARIS10:
++ case CHIP_VEGAM:
+ adev->mode_info.num_hpd = 6;
+ adev->mode_info.num_dig = 6;
+ break;
+@@ -2950,7 +2956,8 @@ static int dce_v11_0_hw_init(void *handle)
+ amdgpu_atombios_encoder_init_dig(adev);
+ if ((adev->asic_type == CHIP_POLARIS10) ||
+ (adev->asic_type == CHIP_POLARIS11) ||
+- (adev->asic_type == CHIP_POLARIS12)) {
++ (adev->asic_type == CHIP_POLARIS12) ||
++ (adev->asic_type == CHIP_VEGAM)) {
+ amdgpu_atombios_crtc_set_dce_clock(adev, adev->clock.default_dispclk,
+ DCE_CLOCK_TYPE_DISPCLK, ATOM_GCK_DFS);
+ amdgpu_atombios_crtc_set_dce_clock(adev, 0,
+--
+2.7.4
+