From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv
Date: Thu, 18 Sep 2014 11:08:23 +0300 [thread overview]
Message-ID: <20140918080823.GO12416@intel.com> (raw)
In-Reply-To: <1410955382-14263-1-git-send-email-rodrigo.vivi@intel.com>
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
next prev parent reply other threads:[~2014-09-18 8:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-17 12:03 [PATCH] drm/i915/chv: Implement Wa4x4STCOptimizationDisable:chv Rodrigo Vivi
2014-09-18 8:08 ` Ville Syrjälä [this message]
2014-09-18 8:14 ` Chris Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140918080823.GO12416@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.