]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.12-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Feb 2014 00:26:45 +0000 (16:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Feb 2014 00:26:45 +0000 (16:26 -0800)
added patches:
drm-radeon-dpm-disable-mclk-switching-on-desktop-rv770.patch
drm-radeon-warn-users-when-hw_i2c-is-enabled-v2.patch

queue-3.12/drm-radeon-dpm-disable-mclk-switching-on-desktop-rv770.patch [new file with mode: 0644]
queue-3.12/drm-radeon-warn-users-when-hw_i2c-is-enabled-v2.patch [new file with mode: 0644]
queue-3.12/series

diff --git a/queue-3.12/drm-radeon-dpm-disable-mclk-switching-on-desktop-rv770.patch b/queue-3.12/drm-radeon-dpm-disable-mclk-switching-on-desktop-rv770.patch
new file mode 100644 (file)
index 0000000..508302d
--- /dev/null
@@ -0,0 +1,39 @@
+From 8097d94116d0c17e774ba4c8256e774018dc2a46 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Tue, 7 Jan 2014 13:51:51 -0500
+Subject: drm/radeon/dpm: disable mclk switching on desktop RV770
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit 8097d94116d0c17e774ba4c8256e774018dc2a46 upstream.
+
+Mclk switching doesn't seem to work reliably on these
+cards.  Most RV770 boards specify the same mclk for all
+performance levels anyway so in most cases, this has
+no affect.
+
+Bug:
+https://bugs.freedesktop.org/show_bug.cgi?id=73067
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/rv770_dpm.c |    6 ++++++
+ 1 file changed, 6 insertions(+)
+
+--- a/drivers/gpu/drm/radeon/rv770_dpm.c
++++ b/drivers/gpu/drm/radeon/rv770_dpm.c
+@@ -2531,6 +2531,12 @@ bool rv770_dpm_vblank_too_short(struct r
+           (rdev->pdev->subsystem_device == 0x1c42))
+               switch_limit = 200;
++      /* RV770 */
++      /* mclk switching doesn't seem to work reliably on desktop RV770s */
++      if ((rdev->family == CHIP_RV770) &&
++          !(rdev->flags & RADEON_IS_MOBILITY))
++              switch_limit = 0xffffffff; /* disable mclk switching */
++
+       if (vblank_time < switch_limit)
+               return true;
+       else
diff --git a/queue-3.12/drm-radeon-warn-users-when-hw_i2c-is-enabled-v2.patch b/queue-3.12/drm-radeon-warn-users-when-hw_i2c-is-enabled-v2.patch
new file mode 100644 (file)
index 0000000..34a5086
--- /dev/null
@@ -0,0 +1,39 @@
+From d195178297de9a91246519dbfa98952b70f9a9b6 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Tue, 7 Jan 2014 10:05:02 -0500
+Subject: drm/radeon: warn users when hw_i2c is enabled (v2)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit d195178297de9a91246519dbfa98952b70f9a9b6 upstream.
+
+The hw i2c engines are disabled by default as the
+current implementation is still experimental.  Print
+a warning when users enable it so that it's obvious
+when the option is enabled.
+
+v2: check for non-0 rather than 1
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/radeon_i2c.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/drivers/gpu/drm/radeon/radeon_i2c.c
++++ b/drivers/gpu/drm/radeon/radeon_i2c.c
+@@ -1020,6 +1020,9 @@ void radeon_i2c_destroy(struct radeon_i2
+ /* Add the default buses */
+ void radeon_i2c_init(struct radeon_device *rdev)
+ {
++      if (radeon_hw_i2c)
++              DRM_INFO("hw_i2c forced on, you may experience display detection problems!\n");
++
+       if (rdev->is_atom_bios)
+               radeon_atombios_i2c_init(rdev);
+       else
index 893a8dc18f29184f1d5b76df3dbda1b958b1c99b..06f91f1412dde1a27ab273563d538d252c22d185 100644 (file)
@@ -54,3 +54,5 @@ dm-wait-until-embedded-kobject-is-released-before-destroying-a-device.patch
 dm-space-map-common-make-sure-new-space-is-used-during-extend.patch
 dm-space-map-metadata-fix-extending-the-space-map.patch
 dm-space-map-metadata-fix-bug-in-resizing-of-thin-metadata.patch
+drm-radeon-warn-users-when-hw_i2c-is-enabled-v2.patch
+drm-radeon-dpm-disable-mclk-switching-on-desktop-rv770.patch