diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-02-14 13:30:29 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-23 18:07:05 -0500 |
commit | b76687910693b1f6c32a3251a8291d67363bba34 (patch) | |
tree | 6452da876111dc6dbd93be1913ec0df3186e3f5b /drivers/gpu/drm/i915/i915_reg.h | |
parent | cb0a08c1ed7daa16d13876e3e1b8787d95b25b0e (diff) |
drm/i915/skl: Tune IZ hashing when subslices are unbalanced
When one EU is disabled in a particular subslice, we can tune how the
work is spread between subslices to improve EU utilization.
v2: - Use a bitfield to record which subslice(s) has(have) 7 EUs. That
will also make the machinery work if several sublices have 7 EUs.
(Jeff Mcgee)
- Only apply the different hashing algorithm if the slice is
effectively unbalanced by checking there's a single subslice with
7 EUs. (Jeff Mcgee)
v3: Fix typo in comment (Jeff Mcgee)
Issue: VIZ-3845
Cc: Jeff Mcgee <jeff.mcgee@intel.com>
Reviewed-by: Jeff Mcgee <jeff.mcgee@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 5fab90c84c5d..c2124119692d 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -1351,6 +1351,8 @@ enum skl_disp_power_wells { | |||
1351 | #define GEN6_WIZ_HASHING_16x4 GEN6_WIZ_HASHING(1, 0) | 1351 | #define GEN6_WIZ_HASHING_16x4 GEN6_WIZ_HASHING(1, 0) |
1352 | #define GEN6_WIZ_HASHING_MASK GEN6_WIZ_HASHING(1, 1) | 1352 | #define GEN6_WIZ_HASHING_MASK GEN6_WIZ_HASHING(1, 1) |
1353 | #define GEN6_TD_FOUR_ROW_DISPATCH_DISABLE (1 << 5) | 1353 | #define GEN6_TD_FOUR_ROW_DISPATCH_DISABLE (1 << 5) |
1354 | #define GEN9_IZ_HASHING_MASK(slice) (0x3 << (slice * 2)) | ||
1355 | #define GEN9_IZ_HASHING(slice, val) ((val) << (slice * 2)) | ||
1354 | 1356 | ||
1355 | #define GFX_MODE 0x02520 | 1357 | #define GFX_MODE 0x02520 |
1356 | #define GFX_MODE_GEN7 0x0229c | 1358 | #define GFX_MODE_GEN7 0x0229c |