drm/i915: Move calculation of subslices per slice to new function
authorStuart Summers <stuart.summers@intel.com>
Fri, 24 May 2019 15:40:20 +0000 (08:40 -0700)
committerManasi Navare <manasi.d.navare@intel.com>
Tue, 28 May 2019 18:19:54 +0000 (11:19 -0700)
commitb5ab1abe8df2cf38c94ffee46f0c8a377e01edb2
tree6bf0cb21de2d60273e5d3abc3e471dd4c2c304db
parent135a63b68250b8ab2ed854f0c907d5ff2a56f09e
drm/i915: Move calculation of subslices per slice to new function

Add a new function to return the number of subslices per slice to
consolidate code usage.

v2: rebase on changes to move sseu struct to intel_sseu.h
v3: add intel_* prefix to sseu_subslices_per_slice

Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190524154022.13575-4-stuart.summers@intel.com
drivers/gpu/drm/i915/gt/intel_sseu.h
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_device_info.c