From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ben Widawsky <ben@bwidawsk.net>, intel-gfx@lists.freedesktop.org
Subject: Re: force wake reference counting (another try)
Date: Tue, 12 Apr 2011 09:02:21 +0100 [thread overview]
Message-ID: <1bdc18$k6h5tu@fmsmga002.fm.intel.com> (raw)
In-Reply-To: <1302570079-17032-1-git-send-email-ben@bwidawsk.net>
On Mon, 11 Apr 2011 18:01:15 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> So once again, I expect this patch to potentially generate a lot of
> warnings, but I consider all of those warnings to be serious bugs for
> SNB.
>
> If anyone has clever ideas on how to handle this outside of what I've
> already mentioned, please let me know.
>
> I expect ongoing patches to fix these issues as they come up.
Continuing the general discussion from IRC, we really do need to clarify
which locks we expect to be holding when reading different sets of
registers. Along with similar documentation over which parts of our
structures are covered by struct_mutex, mode_config.lock and the ensemble
of spinlocks. This task is not limited to just our driver, but we need to
review the core as well as looking at how to improve the locking overall.
(The clear example that something sucks is that probing outputs causes a
rendering stall (fortunately less noticeable on recent hardware where
hotplug is prevalent and the polling itself is much quicker, but still
present.)
The only concern I have with the extra warnings are if we leave false
positives in the code we submit upstream. Those warnings will quickly
become regression reports and angry users. Alas, no clever ideas.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
next prev parent reply other threads:[~2011-04-12 8:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 1:01 force wake reference counting (another try) Ben Widawsky
2011-04-12 1:01 ` [PATCH 1/4] drm/i915: proper use of forcewake Ben Widawsky
2011-04-12 1:01 ` [PATCH 2/4] drm/i915: refcounts for forcewake Ben Widawsky
2011-04-12 1:01 ` [PATCH 3/4] drm/i915: userspace interface to the forcewake refcount Ben Widawsky
2011-04-12 1:01 ` [PATCH 4/4] drm/i915: fewer warning patch (temporary) Ben Widawsky
2011-04-12 8:02 ` Chris Wilson [this message]
2011-04-12 16:30 ` force wake reference counting (another try) Ben Widawsky
2011-04-12 16:56 ` Keith Packard
2011-04-12 17:21 ` Chris Wilson
2011-04-12 17:41 ` Keith Packard
2011-04-13 1:31 ` Ben Widawsky
2011-04-13 5:31 ` Keith Packard
2011-04-13 5:52 ` Chris Wilson
2011-04-13 6:35 ` 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='1bdc18$k6h5tu@fmsmga002.fm.intel.com' \
--to=chris@chris-wilson.co.uk \
--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.