From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/3] [v3] intel_error_decode: Fix ACTHD/HEAD mess with libdrm
Date: Tue, 23 Apr 2013 08:41:10 -0700 [thread overview]
Message-ID: <20130423154109.GA25170@bwidawsk.net> (raw)
In-Reply-To: <20130423083033.GH3889@cantiga.alporthouse.com>
On Tue, Apr 23, 2013 at 09:30:33AM +0100, Chris Wilson wrote:
> On Mon, Apr 22, 2013 at 06:11:12PM -0700, Ben Widawsky wrote:
> > This patch is an enormous mess, and I'd be fine if people didn't want
> > it. However I have made the code do what we want at least on the two
> > error dumps I've tried.
> >
> > The way that it works is it attempts to identify which ACTHD belongs to
> > the ring, or batch, and add the appropriate offset as necessary so the
> > libdrm decoder can do the right thing.
> >
> > What I do is put each ACTHD in a fixed part of the array, and assume the
> > error dump will dump each ring in gtt ascending order (ie. RCS offset <
> > VCS offset < BCS offset). I know, its hacky.
> >
> > Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
> > ---
>
> > +static void emit_acthd(struct drm_intel_decode *decode_ctx,
> > + uint64_t gtt_offset, uint64_t size, int is_batch)
> > +{
> > + /* XXX: This depends on always being in ascending gtt space order */
> > + static int which_acthd = 0;
>
> You have ring_name available to sort on.
> I would prefer the use of RING_HEAD when decoding the ringbuffers, so
> that the current HEAD is always printed there - acting like a frame
> pointer in a stacktrace. Making that distinction between rings and
> batches should make this code simplier.
> -Chris
>
> --
> Chris Wilson, Intel Open Source Technology Centre
Any issue with me pushing the first 2, and stalling on this one?
--
Ben Widawsky, Intel Open Source Technology Center
next prev parent reply other threads:[~2013-04-23 15:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 19:00 [PATCH 1/4] intel_error_decode: Whitespacing fix Ben Widawsky
2013-04-22 19:00 ` [PATCH 2/4] intel_error_decode: HEAD stuff Ben Widawsky
2013-04-22 19:12 ` Chris Wilson
2013-04-22 19:00 ` [PATCH 3/4] intel_error_decode: Fix ACTHD/HEAD mess with libdrm Ben Widawsky
2013-04-22 19:14 ` Chris Wilson
2013-04-22 20:00 ` Ben Widawsky
2013-04-22 19:00 ` [PATCH 4/4] intel_error_decode: Future proof ring count Ben Widawsky
2013-04-22 19:11 ` Chris Wilson
2013-04-23 1:11 ` [PATCH 1/3] [REPOST] intel_error_decode: Whitespacing fix Ben Widawsky
2013-04-23 1:11 ` [PATCH 2/3] [v2] intel_error_decode: HEAD stuff Ben Widawsky
2013-04-23 1:11 ` [PATCH 3/3] [v3] intel_error_decode: Fix ACTHD/HEAD mess with libdrm Ben Widawsky
2013-04-23 8:30 ` Chris Wilson
2013-04-23 15:41 ` Ben Widawsky [this message]
2013-04-23 16:10 ` 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=20130423154109.GA25170@bwidawsk.net \
--to=ben@bwidawsk.net \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox