]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2012 01:15:31 +0000 (17:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2012 01:15:31 +0000 (17:15 -0800)
added patches:
drm-i915-hdmi-hot-remove-notification-to-audio-driver.patch
udf-mark-lvid-buffer-as-uptodate-before-marking-it-dirty.patch

queue-3.0/drm-i915-hdmi-hot-remove-notification-to-audio-driver.patch [new file with mode: 0644]
queue-3.0/series
queue-3.0/udf-mark-lvid-buffer-as-uptodate-before-marking-it-dirty.patch [new file with mode: 0644]

diff --git a/queue-3.0/drm-i915-hdmi-hot-remove-notification-to-audio-driver.patch b/queue-3.0/drm-i915-hdmi-hot-remove-notification-to-audio-driver.patch
new file mode 100644 (file)
index 0000000..e1c635a
--- /dev/null
@@ -0,0 +1,51 @@
+From 2deed761188d7480eb5f7efbfe7aa77f09322ed8 Mon Sep 17 00:00:00 2001
+From: Wu Fengguang <fengguang.wu@intel.com>
+Date: Fri, 9 Dec 2011 20:42:20 +0800
+Subject: drm/i915: HDMI hot remove notification to audio driver
+
+From: Wu Fengguang <fengguang.wu@intel.com>
+
+commit 2deed761188d7480eb5f7efbfe7aa77f09322ed8 upstream.
+
+On HDMI monitor hot remove, clear SDVO_AUDIO_ENABLE accordingly, so that
+the audio driver will receive hot plug events and take action to refresh
+its device state and ELD contents.
+
+The cleared SDVO_AUDIO_ENABLE bit needs to be restored to prevent losing
+HDMI audio after DPMS on.
+
+CC: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
+Signed-off-by: Keith Packard <keithp@keithp.com>
+Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/i915/intel_hdmi.c |    8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+--- a/drivers/gpu/drm/i915/intel_hdmi.c
++++ b/drivers/gpu/drm/i915/intel_hdmi.c
+@@ -158,6 +158,10 @@ static void intel_hdmi_dpms(struct drm_e
+       struct drm_i915_private *dev_priv = dev->dev_private;
+       struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder);
+       u32 temp;
++      u32 enable_bits = SDVO_ENABLE;
++
++      if (intel_hdmi->has_audio)
++              enable_bits |= SDVO_AUDIO_ENABLE;
+       temp = I915_READ(intel_hdmi->sdvox_reg);
+@@ -170,9 +174,9 @@ static void intel_hdmi_dpms(struct drm_e
+       }
+       if (mode != DRM_MODE_DPMS_ON) {
+-              temp &= ~SDVO_ENABLE;
++              temp &= ~enable_bits;
+       } else {
+-              temp |= SDVO_ENABLE;
++              temp |= enable_bits;
+       }
+       I915_WRITE(intel_hdmi->sdvox_reg, temp);
index 616d43869284b9ceeb113325b46a998fc1e48df6..e3c53a43fa62f9a5a7c3053906b97095c71dc865 100644 (file)
@@ -22,3 +22,5 @@ drm-nouveau-gem-fix-fence_sync-race-oops.patch
 drm-radeon-kms-disable-output-polling-when-suspended.patch
 sched-rt-fix-task-stack-corruption-under-__arch_want_interrupts_on_ctxsw.patch
 asoc-ensure-we-generate-a-driver-name.patch
+udf-mark-lvid-buffer-as-uptodate-before-marking-it-dirty.patch
+drm-i915-hdmi-hot-remove-notification-to-audio-driver.patch
diff --git a/queue-3.0/udf-mark-lvid-buffer-as-uptodate-before-marking-it-dirty.patch b/queue-3.0/udf-mark-lvid-buffer-as-uptodate-before-marking-it-dirty.patch
new file mode 100644 (file)
index 0000000..2364329
--- /dev/null
@@ -0,0 +1,37 @@
+From 853a0c25baf96b028de1654bea1e0c8857eadf3d Mon Sep 17 00:00:00 2001
+From: Jan Kara <jack@suse.cz>
+Date: Fri, 23 Dec 2011 11:53:07 +0100
+Subject: udf: Mark LVID buffer as uptodate before marking it dirty
+
+From: Jan Kara <jack@suse.cz>
+
+commit 853a0c25baf96b028de1654bea1e0c8857eadf3d upstream.
+
+When we hit EIO while writing LVID, the buffer uptodate bit is cleared.
+This then results in an anoying warning from mark_buffer_dirty() when we
+write the buffer again. So just set uptodate flag unconditionally.
+
+Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
+Signed-off-by: Jan Kara <jack@suse.cz>
+Cc: Dave Jones <davej@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/udf/super.c |    6 ++++++
+ 1 file changed, 6 insertions(+)
+
+--- a/fs/udf/super.c
++++ b/fs/udf/super.c
+@@ -1830,6 +1830,12 @@ static void udf_close_lvid(struct super_
+                               le16_to_cpu(lvid->descTag.descCRCLength)));
+       lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag);
++      /*
++       * We set buffer uptodate unconditionally here to avoid spurious
++       * warnings from mark_buffer_dirty() when previous EIO has marked
++       * the buffer as !uptodate
++       */
++      set_buffer_uptodate(bh);
+       mark_buffer_dirty(bh);
+       sbi->s_lvid_dirty = 0;
+       mutex_unlock(&sbi->s_alloc_mutex);