]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Expand subslice mask
authorStuart Summers <stuart.summers@intel.com>
Fri, 23 Aug 2019 16:03:07 +0000 (09:03 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Aug 2019 18:14:27 +0000 (19:14 +0100)
commit100f5f7fbc3e23f58511a11a3751dfacf1ccb5a7
tree3616d2c903faab6ee96da9fdcc98187d683bbf8b
parent668df17f594d6f57e822ceee680ace3233e97f02
drm/i915: Expand subslice mask

Currently, the subslice_mask runtime parameter is stored as an
array of subslices per slice. Expand the subslice mask array to
better match what is presented to userspace through the
I915_QUERY_TOPOLOGY_INFO ioctl. The index into this array is
then calculated:
  slice * subslice stride + subslice index / 8

v2: Fix 32-bit build
v3: Use new helper function in SSEU workaround warning message
v4: Use GEM_BUG_ON to force developers to use valid SSEU configurations
    per platform (Chris)

Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823160307.180813-12-stuart.summers@intel.com
drivers/gpu/drm/i915/gt/intel_sseu.c
drivers/gpu/drm/i915/gt/intel_sseu.h
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_device_info.c