]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/i915: fix broadwell EU computation
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 12 Nov 2018 12:39:31 +0000 (12:39 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 12 Nov 2018 17:40:16 +0000 (17:40 +0000)
subslice_mask is an array indexed by slice, not subslice.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 8cc7669355136f ("drm/i915: store all subslice masks")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108712
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181112123931.2815-1-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/intel_device_info.c

index 89ed3a84a4fa992ec0e7ac1e215e131685a983f8..ceecb5bd5226ac1fd0357f9e5b96a79d574d6233 100644 (file)
@@ -474,7 +474,7 @@ static void broadwell_sseu_info_init(struct drm_i915_private *dev_priv)
                        u8 eu_disabled_mask;
                        u32 n_disabled;
 
-                       if (!(sseu->subslice_mask[ss] & BIT(ss)))
+                       if (!(sseu->subslice_mask[s] & BIT(ss)))
                                /* skip disabled subslice */
                                continue;