From: Daniel Vetter <daniel@ffwll.ch>
To: Ben Widawsky <ben@bwidawsk.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: Semaphore cleanups
Date: Fri, 16 Sep 2011 09:39:06 +0200 [thread overview]
Message-ID: <20110916073906.GA2873@phenom.ffwll.local> (raw)
In-Reply-To: <1316138941-6537-1-git-send-email-ben@bwidawsk.net>
On Thu, Sep 15, 2011 at 07:08:56PM -0700, Ben Widawsky wrote:
> FWIW, I thought my original patch was the easiest to read, but this certainly
> removes the most magic. These had a ton of input from Daniel Vetter, and Chris
> Wilson. The goal is only to make the code more readable, and easier to veryify/debug.
With the bloat gone:
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> for patches 2-4
But in then end I think it boils down to having a bunch of magic values in
a table or having a bunch or magic calculations in a few tiny functions.
So after the ring->id cleanup (which imo is independant cleanup, albeit just a
tiny improvement) I don't care with what approach we'll be going. And imo
engineering for future products isn't a good idea either - we just don't
know what they'll look like exactly. In the end it's likely just yet
another function pointer with completely different code, and having less
chipset specific magic constant in struct intel_ring_buffer might even
help.
Now for the trace patch, I definitely want that. But that has a tiny
review comment ;-)
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
prev parent reply other threads:[~2011-09-16 7:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 2:08 Semaphore cleanups Ben Widawsky
2011-09-16 2:08 ` [PATCH 1/5] drm/i915: clean up ring id/semaphore sync index magic Ben Widawsky
2011-09-16 2:11 ` Ben Widawsky
2011-09-16 2:08 ` [PATCH 2/5] drm/i915: semaphore wait cleanup Ben Widawsky
2011-09-16 2:08 ` [PATCH 3/5] drm/i915: semaphore signal cleanup Ben Widawsky
2011-09-16 2:09 ` [PATCH 4/5] drm/i915: more semaphore cleanup Ben Widawsky
2011-09-16 5:12 ` Zou, Nanhai
2011-09-16 2:09 ` [PATCH 5/5] drm/i915: tracepoints for semaphores Ben Widawsky
2011-09-16 7:58 ` Daniel Vetter
2011-09-16 8:37 ` Chris Wilson
2011-09-16 9:07 ` Daniel Vetter
2011-09-16 9:45 ` Chris Wilson
2011-09-16 7:39 ` Daniel Vetter [this message]
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=20110916073906.GA2873@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=ben@bwidawsk.net \
--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.