* [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv
@ 2014-09-17 12:03 Rodrigo Vivi
2014-09-18 8:08 ` Ville Syrjälä
0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Vivi @ 2014-09-17 12:03 UTC (permalink / raw)
To: intel-gfx; +Cc: Rodrigo Vivi
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 4e8b2ea..50d9169 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -784,6 +784,10 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
intel_ring_emit_wa(ring, GEN8_ROW_CHICKEN,
_MASKED_BIT_ENABLE(STALL_DOP_GATING_DISABLE));
+ /* Wa4x4STCOptimizationDisable:chv */
+ intel_ring_emit_wa(ring, CACHE_MODE_1,
+ _MASKED_BIT_ENABLE(GEN8_4x4_STC_OPTIMIZATION_DISABLE));
+
/* WaDisableDopClockGating:chv (pre-production hw) */
intel_ring_emit_wa(ring, GEN7_ROW_CHICKEN2,
_MASKED_BIT_ENABLE(DOP_CLOCK_GATING_DISABLE));
--
1.9.3
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv
2014-09-17 12:03 [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv Rodrigo Vivi
@ 2014-09-18 8:08 ` Ville Syrjälä
2014-09-18 8:14 ` Chris Wilson
0 siblings, 1 reply; 3+ messages in thread
From: Ville Syrjälä @ 2014-09-18 8:08 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-gfx
On Wed, Sep 17, 2014 at 05:03:02AM -0700, Rodrigo Vivi wrote:
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
> index 4e8b2ea..50d9169 100644
> --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> @@ -784,6 +784,10 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
> intel_ring_emit_wa(ring, GEN8_ROW_CHICKEN,
> _MASKED_BIT_ENABLE(STALL_DOP_GATING_DISABLE));
>
> + /* Wa4x4STCOptimizationDisable:chv */
> + intel_ring_emit_wa(ring, CACHE_MODE_1,
> + _MASKED_BIT_ENABLE(GEN8_4x4_STC_OPTIMIZATION_DISABLE));
> +
Let's try to keep these in some order shall we. So please put this as
the last w/a.
Also you need to reserve more ring space, and because the ring tail must
be QW aligned you need to toss in a MI_NOOP when the number of wa emits
is odd. Maybe we should try to avoid future churn here and do something
like:
int num_wa = 5;
intel_ring_begin(ALIGN(num_wa * 3, 2));
intel_ring_emit_wa(...);
...
if ((num_wa * 3) & 1)
ring_emit(MI_NOOP);
intel_ring_advance();
> /* WaDisableDopClockGating:chv (pre-production hw) */
> intel_ring_emit_wa(ring, GEN7_ROW_CHICKEN2,
> _MASKED_BIT_ENABLE(DOP_CLOCK_GATING_DISABLE));
> --
> 1.9.3
--
Ville Syrjälä
Intel OTC
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv
2014-09-18 8:08 ` Ville Syrjälä
@ 2014-09-18 8:14 ` Chris Wilson
0 siblings, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2014-09-18 8:14 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: intel-gfx, Rodrigo Vivi
On Thu, Sep 18, 2014 at 11:08:23AM +0300, Ville Syrjälä wrote:
> On Wed, Sep 17, 2014 at 05:03:02AM -0700, Rodrigo Vivi wrote:
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
> > index 4e8b2ea..50d9169 100644
> > --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> > @@ -784,6 +784,10 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
> > intel_ring_emit_wa(ring, GEN8_ROW_CHICKEN,
> > _MASKED_BIT_ENABLE(STALL_DOP_GATING_DISABLE));
> >
> > + /* Wa4x4STCOptimizationDisable:chv */
> > + intel_ring_emit_wa(ring, CACHE_MODE_1,
> > + _MASKED_BIT_ENABLE(GEN8_4x4_STC_OPTIMIZATION_DISABLE));
> > +
>
> Let's try to keep these in some order shall we. So please put this as
> the last w/a.
>
> Also you need to reserve more ring space, and because the ring tail must
> be QW aligned you need to toss in a MI_NOOP when the number of wa emits
> is odd. Maybe we should try to avoid future churn here and do something
> like:
>
> int num_wa = 5;
>
> intel_ring_begin(ALIGN(num_wa * 3, 2));
>
> intel_ring_emit_wa(...);
> ...
>
> if ((num_wa * 3) & 1)
> ring_emit(MI_NOOP);
>
> intel_ring_advance();
Or since we batch up the tail writes, we can do the final padding then,
so long as we always check for qword space in intel_ring_begin.
Patch on ml.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-18 8:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17 12:03 [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv Rodrigo Vivi
2014-09-18 8:08 ` Ville Syrjälä
2014-09-18 8:14 ` Chris Wilson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.