]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2012 23:56:52 +0000 (08:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2012 23:56:52 +0000 (08:56 +0900)
added patches:
drm-destroy-the-planes-prior-to-destroying-the-associated-crtc.patch
drm-radeon-add-msi-quirk-for-gateway-rs690.patch
drm-radeon-force-msis-on-rs690-asics.patch
drm-radeon-only-adjust-default-clocks-on-ni-gpus.patch

queue-3.4/drm-destroy-the-planes-prior-to-destroying-the-associated-crtc.patch [new file with mode: 0644]
queue-3.4/drm-radeon-add-msi-quirk-for-gateway-rs690.patch [new file with mode: 0644]
queue-3.4/drm-radeon-force-msis-on-rs690-asics.patch [new file with mode: 0644]
queue-3.4/drm-radeon-only-adjust-default-clocks-on-ni-gpus.patch [new file with mode: 0644]
queue-3.4/series

diff --git a/queue-3.4/drm-destroy-the-planes-prior-to-destroying-the-associated-crtc.patch b/queue-3.4/drm-destroy-the-planes-prior-to-destroying-the-associated-crtc.patch
new file mode 100644 (file)
index 0000000..4d5568e
--- /dev/null
@@ -0,0 +1,47 @@
+From 3184009c36da413724f283e3c7ac9cc60c623bc4 Mon Sep 17 00:00:00 2001
+From: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon, 17 Sep 2012 09:38:03 +0000
+Subject: drm: Destroy the planes prior to destroying the associated CRTC
+
+From: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3184009c36da413724f283e3c7ac9cc60c623bc4 upstream.
+
+As during the plane cleanup, we wish to disable the hardware and
+so may modify state on the associated CRTC, that CRTC must continue to
+exist until we are finished.
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54101
+Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
+Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+Tested-by: lu hua <huax.lu@intel.com>
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/drm_crtc.c |    8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+--- a/drivers/gpu/drm/drm_crtc.c
++++ b/drivers/gpu/drm/drm_crtc.c
+@@ -1028,15 +1028,15 @@ void drm_mode_config_cleanup(struct drm_
+               fb->funcs->destroy(fb);
+       }
+-      list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
+-              crtc->funcs->destroy(crtc);
+-      }
+-
+       list_for_each_entry_safe(plane, plt, &dev->mode_config.plane_list,
+                                head) {
+               plane->funcs->destroy(plane);
+       }
++      list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
++              crtc->funcs->destroy(crtc);
++      }
++
+       idr_remove_all(&dev->mode_config.crtc_idr);
+       idr_destroy(&dev->mode_config.crtc_idr);
+ }
diff --git a/queue-3.4/drm-radeon-add-msi-quirk-for-gateway-rs690.patch b/queue-3.4/drm-radeon-add-msi-quirk-for-gateway-rs690.patch
new file mode 100644 (file)
index 0000000..6c2643f
--- /dev/null
@@ -0,0 +1,34 @@
+From 3a6d59df80897cc87812b6826d70085905bed013 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 26 Sep 2012 12:31:45 -0400
+Subject: drm/radeon: Add MSI quirk for gateway RS690
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit 3a6d59df80897cc87812b6826d70085905bed013 upstream.
+
+Fixes another system on:
+https://bugs.freedesktop.org/show_bug.cgi?id=37679
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/radeon_irq_kms.c |    6 ++++++
+ 1 file changed, 6 insertions(+)
+
+--- a/drivers/gpu/drm/radeon/radeon_irq_kms.c
++++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c
+@@ -147,6 +147,12 @@ static bool radeon_msi_ok(struct radeon_
+           (rdev->pdev->subsystem_device == 0x01fd))
+               return true;
++      /* Gateway RS690 only seems to work with MSIs. */
++      if ((rdev->pdev->device == 0x791f) &&
++          (rdev->pdev->subsystem_vendor == 0x107b) &&
++          (rdev->pdev->subsystem_device == 0x0185))
++              return true;
++
+       /* RV515 seems to have MSI issues where it loses
+        * MSI rearms occasionally. This leads to lockups and freezes.
+        * disable it by default.
diff --git a/queue-3.4/drm-radeon-force-msis-on-rs690-asics.patch b/queue-3.4/drm-radeon-force-msis-on-rs690-asics.patch
new file mode 100644 (file)
index 0000000..e462b4c
--- /dev/null
@@ -0,0 +1,33 @@
+From fb6ca6d154cdcd53e7f27f8dbba513830372699b Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 26 Sep 2012 12:40:45 -0400
+Subject: drm/radeon: force MSIs on RS690 asics
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit fb6ca6d154cdcd53e7f27f8dbba513830372699b upstream.
+
+There are so many quirks, lets just try and force
+this for all RS690s.  See:
+https://bugs.freedesktop.org/show_bug.cgi?id=37679
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/radeon_irq_kms.c |    4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/drivers/gpu/drm/radeon/radeon_irq_kms.c
++++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c
+@@ -153,6 +153,10 @@ static bool radeon_msi_ok(struct radeon_
+           (rdev->pdev->subsystem_device == 0x0185))
+               return true;
++      /* try and enable MSIs by default on all RS690s */
++      if (rdev->family == CHIP_RS690)
++              return true;
++
+       /* RV515 seems to have MSI issues where it loses
+        * MSI rearms occasionally. This leads to lockups and freezes.
+        * disable it by default.
diff --git a/queue-3.4/drm-radeon-only-adjust-default-clocks-on-ni-gpus.patch b/queue-3.4/drm-radeon-only-adjust-default-clocks-on-ni-gpus.patch
new file mode 100644 (file)
index 0000000..09d7737
--- /dev/null
@@ -0,0 +1,43 @@
+From 2e3b3b105ab3bb5b6a37198da4f193cd13781d13 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 14 Sep 2012 10:59:26 -0400
+Subject: drm/radeon: only adjust default clocks on NI GPUs
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit 2e3b3b105ab3bb5b6a37198da4f193cd13781d13 upstream.
+
+SI asics store voltage information differently so we
+don't have a way to deal with it properly yet.
+
+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 |    8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+--- a/drivers/gpu/drm/radeon/radeon_pm.c
++++ b/drivers/gpu/drm/radeon/radeon_pm.c
+@@ -567,7 +567,9 @@ void radeon_pm_suspend(struct radeon_dev
+ void radeon_pm_resume(struct radeon_device *rdev)
+ {
+       /* set up the default clocks if the MC ucode is loaded */
+-      if (ASIC_IS_DCE5(rdev) && rdev->mc_fw) {
++      if ((rdev->family >= CHIP_BARTS) &&
++          (rdev->family <= CHIP_CAYMAN) &&
++          rdev->mc_fw) {
+               if (rdev->pm.default_vddc)
+                       radeon_atom_set_voltage(rdev, rdev->pm.default_vddc,
+                                               SET_VOLTAGE_TYPE_ASIC_VDDC);
+@@ -622,7 +624,9 @@ int radeon_pm_init(struct radeon_device
+               radeon_pm_print_states(rdev);
+               radeon_pm_init_profile(rdev);
+               /* set up the default clocks if the MC ucode is loaded */
+-              if (ASIC_IS_DCE5(rdev) && rdev->mc_fw) {
++              if ((rdev->family >= CHIP_BARTS) &&
++                  (rdev->family <= CHIP_CAYMAN) &&
++                  rdev->mc_fw) {
+                       if (rdev->pm.default_vddc)
+                               radeon_atom_set_voltage(rdev, rdev->pm.default_vddc,
+                                                       SET_VOLTAGE_TYPE_ASIC_VDDC);
index 4242c15a73f4cb3e5409d87f205645ed1b5007fe..a4dbda94a2e79033b09e5810e51fa91b7d2ad7ff 100644 (file)
@@ -80,3 +80,7 @@ alsa-hda-realtek-fix-detection-of-alc271x-codec.patch
 alsa-hda-limit-internal-mic-boost-for-asus-x202e.patch
 alsa-usb-disable-broken-hw-volume-for-tenx-tp6911.patch
 alsa-usb-support-for-original-xbox-communicator.patch
+drm-destroy-the-planes-prior-to-destroying-the-associated-crtc.patch
+drm-radeon-only-adjust-default-clocks-on-ni-gpus.patch
+drm-radeon-add-msi-quirk-for-gateway-rs690.patch
+drm-radeon-force-msis-on-rs690-asics.patch