diff options
author | Imre Deak | 2016-08-31 18:13:07 +0200 |
---|---|---|
committer | Imre Deak | 2016-09-02 17:17:55 +0200 |
commit | 795b38b3928d0ad5a6b2a530b30916cc76f4b667 (patch) | |
tree | 32ec91ac9ca6895307cb8e86dbcca30e567ab848 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | drm/i915: sseu: Add debug printf for slice/subslice masks (diff) | |
download | kernel-qcow2-linux-795b38b3928d0ad5a6b2a530b30916cc76f4b667.tar.gz kernel-qcow2-linux-795b38b3928d0ad5a6b2a530b30916cc76f4b667.tar.xz kernel-qcow2-linux-795b38b3928d0ad5a6b2a530b30916cc76f4b667.zip |
drm/i915/bdw: sseu: Fix sseu status parsing
Currently when checking for fused off EUs we may ignore the EU count in
an enabled slice if there is any disabled slice preceding the enabled
one (with a lower slice ID). Perhaps this can't happen in reality, but
there is no reason to have this assumption built-in, the code is clearer
without it.
Reviewed-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
Tested-by: Ben Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1472659987-10417-8-git-send-email-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 413989a62f75..7be8321a32b3 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -5095,7 +5095,7 @@ static void broadwell_sseu_device_status(struct drm_i915_private *dev_priv, sseu_subslice_total(sseu); /* subtract fused off EU(s) from enabled slice(s) */ - for (s = 0; s < hweight8(sseu->slice_mask); s++) { + for (s = 0; s < fls(sseu->slice_mask); s++) { u8 subslice_7eu = INTEL_INFO(dev_priv)->sseu.subslice_7eu[s]; |