]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: sseu: Convert subslice count fields to subslice mask
authorImre Deak <imre.deak@intel.com>
Wed, 31 Aug 2016 16:13:05 +0000 (19:13 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 2 Sep 2016 15:17:47 +0000 (18:17 +0300)
commit57ec171eae21ee0a2848ade1cb7f8f12a31b0731
tree45b5084e47a82c27286a3b3e9473d6b3fb463ea1
parentf08a0c9234c86cf0249a5edd58a7abf69617f29f
drm/i915: sseu: Convert subslice count fields to subslice mask

In an upcoming patch we'll need the actual mask of subslices in addition
to their count, so convert the subslice_per_slice field to a mask.
Also we can easily calculate subslice_total from the other fields, so
instead of storing a cached version of this, add a helper to calculate
it.

v2:
- Use hweight8() on u8 typed vars instead of hweight32(). (Ben)

Reviewed-by: Robert Bragg <robert@sixbynine.org> (v1)
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com> (v1)
Tested-by: Ben Widawsky <benjamin.widawsky@intel.com> (v1)
Signed-off-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/intel_lrc.c