]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 06:34:33 +0000 (08:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 06:34:33 +0000 (08:34 +0200)
added patches:
drm-i915-fix-compiler-warning-in-drivers-gpu-drm-i915-intel_uncore.c.patch

queue-4.4/drm-i915-fix-compiler-warning-in-drivers-gpu-drm-i915-intel_uncore.c.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/drm-i915-fix-compiler-warning-in-drivers-gpu-drm-i915-intel_uncore.c.patch b/queue-4.4/drm-i915-fix-compiler-warning-in-drivers-gpu-drm-i915-intel_uncore.c.patch
new file mode 100644 (file)
index 0000000..d383b90
--- /dev/null
@@ -0,0 +1,44 @@
+From foo@baz Thu Aug 31 08:30:43 CEST 2017
+Date: Thu, 31 Aug 2017 08:30:43 +0200
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: drm/i915: fix compiler warning in drivers/gpu/drm/i915/intel_uncore.c
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+When building with gcc-7, the following warning happens:
+
+drivers/gpu/drm/i915/intel_uncore.c: In function ‘hsw_unclaimed_reg_detect’:
+drivers/gpu/drm/i915/intel_uncore.c:638:36: warning: decrement of a boolean expression [-Wbool-operation]
+   i915.mmio_debug = mmio_debug_once--;
+                                    ^~
+
+As it's really not wise to -- on a boolean value.
+
+Commit 7571494004d8 ("drm/i915: Do one shot unclaimed mmio detection
+less frequently") which showed up in 4.6-rc1 does solve this issue, by
+rewriting the mmio detection logic, but that isn't really good to
+backport to 4.4-stable, so just fix up the obvious logic here to do the
+right thing.
+
+Cc: Chris Wilson <chris@chris-wilson.co.uk>
+Cc: Paulo Zanoni <przanoni@gmail.com>
+Cc: Mika Kuoppala <mika.kuoppala@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/i915/intel_uncore.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/i915/intel_uncore.c
++++ b/drivers/gpu/drm/i915/intel_uncore.c
+@@ -635,7 +635,8 @@ hsw_unclaimed_reg_detect(struct drm_i915
+                         "enabling oneshot unclaimed register reporting. "
+                         "Please use i915.mmio_debug=N for more information.\n");
+               __raw_i915_write32(dev_priv, FPGA_DBG, FPGA_DBG_RM_NOCLAIM);
+-              i915.mmio_debug = mmio_debug_once--;
++              i915.mmio_debug = mmio_debug_once;
++              mmio_debug_once = false;
+       }
+ }
index 37fd9d2e60f8c8633180824c6b2b1fa7aebff627..9090af91e63095ae8601bb9322b968f0dda3eda8 100644 (file)
@@ -12,3 +12,4 @@ x86-io-add-memory-clobber-to-insb-insw-insl-outsb-outsw-outsl.patch
 arm64-fpsimd-prevent-registers-leaking-across-exec.patch
 scsi-sg-protect-accesses-to-reserved-page-array.patch
 scsi-sg-reset-res_in_use-after-unlinking-reserved-array.patch
+drm-i915-fix-compiler-warning-in-drivers-gpu-drm-i915-intel_uncore.c.patch