aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-02-05 05:43:47 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-04 09:39:35 -0500
commitc5c98a58990c1b2cf4d94b6759bed239976e5305 (patch)
treefbe2b610fafe1415863875458a5aac4a5849526e /drivers/gpu/drm/i915/intel_pm.c
parent36075a4cad5adab51a97f32abf41db00975cabd9 (diff)
drm/i915: Add a comment about WIZ hashing vs. thread counts
Add a comment next to our WIZ hashing setup to remind people about the link between WIZ hashing disable bit and PS/WM thread counts. Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 151afe53cc7c..3e754fec58b5 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4664,6 +4664,10 @@ static void gen6_init_clock_gating(struct drm_device *dev)
4664 /* 4664 /*
4665 * BSpec recoomends 8x4 when MSAA is used, 4665 * BSpec recoomends 8x4 when MSAA is used,
4666 * however in practice 16x4 seems fastest. 4666 * however in practice 16x4 seems fastest.
4667 *
4668 * Note that PS/WM thread counts depend on the WIZ hashing
4669 * disable bit, which we don't touch here, but it's good
4670 * to keep in mind (see 3DSTATE_PS and 3DSTATE_WM).
4667 */ 4671 */
4668 I915_WRITE(GEN6_GT_MODE, 4672 I915_WRITE(GEN6_GT_MODE,
4669 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4); 4673 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4);
@@ -4847,6 +4851,10 @@ static void gen8_init_clock_gating(struct drm_device *dev)
4847 /* 4851 /*
4848 * BSpec recommends 8x4 when MSAA is used, 4852 * BSpec recommends 8x4 when MSAA is used,
4849 * however in practice 16x4 seems fastest. 4853 * however in practice 16x4 seems fastest.
4854 *
4855 * Note that PS/WM thread counts depend on the WIZ hashing
4856 * disable bit, which we don't touch here, but it's good
4857 * to keep in mind (see 3DSTATE_PS and 3DSTATE_WM).
4850 */ 4858 */
4851 I915_WRITE(GEN7_GT_MODE, 4859 I915_WRITE(GEN7_GT_MODE,
4852 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4); 4860 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4);
@@ -4883,6 +4891,10 @@ static void haswell_init_clock_gating(struct drm_device *dev)
4883 /* 4891 /*
4884 * BSpec recommends 8x4 when MSAA is used, 4892 * BSpec recommends 8x4 when MSAA is used,
4885 * however in practice 16x4 seems fastest. 4893 * however in practice 16x4 seems fastest.
4894 *
4895 * Note that PS/WM thread counts depend on the WIZ hashing
4896 * disable bit, which we don't touch here, but it's good
4897 * to keep in mind (see 3DSTATE_PS and 3DSTATE_WM).
4886 */ 4898 */
4887 I915_WRITE(GEN7_GT_MODE, 4899 I915_WRITE(GEN7_GT_MODE,
4888 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4); 4900 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4);
@@ -4971,6 +4983,10 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
4971 /* 4983 /*
4972 * BSpec recommends 8x4 when MSAA is used, 4984 * BSpec recommends 8x4 when MSAA is used,
4973 * however in practice 16x4 seems fastest. 4985 * however in practice 16x4 seems fastest.
4986 *
4987 * Note that PS/WM thread counts depend on the WIZ hashing
4988 * disable bit, which we don't touch here, but it's good
4989 * to keep in mind (see 3DSTATE_PS and 3DSTATE_WM).
4974 */ 4990 */
4975 I915_WRITE(GEN7_GT_MODE, 4991 I915_WRITE(GEN7_GT_MODE,
4976 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4); 4992 GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4);