]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Feb 2014 04:47:26 +0000 (20:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Feb 2014 04:47:26 +0000 (20:47 -0800)
added patches:
radeon-pm-guard-access-to-rdev-pm.power_state-array.patch

queue-3.10/radeon-pm-guard-access-to-rdev-pm.power_state-array.patch [new file with mode: 0644]
queue-3.10/series

diff --git a/queue-3.10/radeon-pm-guard-access-to-rdev-pm.power_state-array.patch b/queue-3.10/radeon-pm-guard-access-to-rdev-pm.power_state-array.patch
new file mode 100644 (file)
index 0000000..524aa4d
--- /dev/null
@@ -0,0 +1,40 @@
+From 370169516e736edad3b3c5aa49858058f8b55195 Mon Sep 17 00:00:00 2001
+From: Michel Dänzer <michel.daenzer@amd.com>
+Date: Wed, 8 Jan 2014 11:40:20 +0900
+Subject: radeon/pm: Guard access to rdev->pm.power_state array
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Michel Dänzer <michel.daenzer@amd.com>
+
+commit 370169516e736edad3b3c5aa49858058f8b55195 upstream.
+
+It's never allocated on systems without an ATOMBIOS or COMBIOS ROM.
+
+Should fix an oops I encountered while resetting the GPU after a lockup
+on my PowerBook with an RV350.
+
+Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/radeon_pm.c |    6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+--- a/drivers/gpu/drm/radeon/radeon_pm.c
++++ b/drivers/gpu/drm/radeon/radeon_pm.c
+@@ -561,8 +561,10 @@ void radeon_pm_resume(struct radeon_devi
+       rdev->pm.current_clock_mode_index = 0;
+       rdev->pm.current_sclk = rdev->pm.default_sclk;
+       rdev->pm.current_mclk = rdev->pm.default_mclk;
+-      rdev->pm.current_vddc = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].voltage.voltage;
+-      rdev->pm.current_vddci = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].voltage.vddci;
++      if (rdev->pm.power_state) {
++              rdev->pm.current_vddc = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].voltage.voltage;
++              rdev->pm.current_vddci = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].voltage.vddci;
++      }
+       if (rdev->pm.pm_method == PM_METHOD_DYNPM
+           && rdev->pm.dynpm_state == DYNPM_STATE_SUSPENDED) {
+               rdev->pm.dynpm_state = DYNPM_STATE_ACTIVE;
index 3dd40136c345d47f6a1d7b8029c6853e2679112d..fe8e3efe10045ef7147e71d41a74f6505e9120c4 100644 (file)
@@ -40,3 +40,4 @@ 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
+radeon-pm-guard-access-to-rdev-pm.power_state-array.patch