drm/i915: Skip logging impossible slices
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 21 Mar 2018 10:32:28 +0000 (10:32 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 23 Mar 2018 11:56:28 +0000 (11:56 +0000)
commit0ef904bb3a6d9dc2d81301e84116eaff880412f2
treeb7cef4b06a105ac1ce952bd6a513ba4ac6db437b
parent66c1f77ae2b773f349c1ea1312d69a6ab775cc26
drm/i915: Skip logging impossible slices

Log up to sseu->max_slices instead basing on ARRAY_SIZE since to avoid
printing impossible and empty slices for a platform.

Also compact slice total and slice mask into one log line.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180321103228.32205-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_device_info.c