From: Daniel Vetter <daniel@ffwll.ch>
To: Ben Widawsky <ben@bwidawsk.net>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: Dumb down the semaphore logic
Date: Thu, 8 Sep 2011 09:52:36 +0200 [thread overview]
Message-ID: <20110908075236.GA2884@phenom.ffwll.local> (raw)
In-Reply-To: <1315437162-14312-1-git-send-email-ben@bwidawsk.net>
On Wed, Sep 07, 2011 at 04:12:41PM -0700, Ben Widawsky wrote:
> While I think the previous code is correct, it was hard to follow and
> hard to debug. Since we already have a ring abstraction, might as well
> use it to handle the semaphore updates and compares.
>
> I don't expect this code to make semaphores better or worse, but you
> never know...
I kinda start to like this ;-)
While you stare at this, two things I'm pondering:
- Would it make sense to also move the !semaphores ring_sync_to case into
the ringbuffer abstraction?
- Can we have a basic testcase for the magic values (and semaphores in
general), please? I'm thinking of submitting a batchbuffer with a dummy
r/w render relocation (hide it e.g. in the val field of
MI_FLUSH_DW/PIPE_CONTROL without setting the write post-sync-op), and
then randomly moving around the buffer to another ring. That should
decently exercise the semaphores code in the kernel and sync hw in the
gpu without (hopefully) anything else interfering.
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2011-09-08 7:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 23:12 [PATCH 1/2] drm/i915: Dumb down the semaphore logic Ben Widawsky
2011-09-07 23:12 ` [PATCH 2/2] drm/i915: tracepoints for semaphores Ben Widawsky
2011-09-08 0:30 ` [PATCH 1/2] drm/i915: Dumb down the semaphore logic Andrew Lutomirski
2011-09-08 1:19 ` Ben Widawsky
2011-09-08 1:22 ` Andrew Lutomirski
2011-09-08 4:31 ` Keith Packard
2011-09-08 7:52 ` Daniel Vetter [this message]
2011-09-08 12:04 ` [PATCH] tests: basic ring<->cpu and ring<->ring tests Daniel Vetter
2011-09-11 3:44 ` [PATCH 1/2] drm/i915: Dumb down the semaphore logic Ben Widawsky
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=20110908075236.GA2884@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=ben@bwidawsk.net \
--cc=daniel.vetter@ffwll.ch \
--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 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.