All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Alexey Fisher <bug-track@fisher-privat.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: fix per-pipe reads after "cleanup"
Date: Thu, 17 Feb 2011 13:36:41 -0800	[thread overview]
Message-ID: <20110217133641.5ca05aa8@jbarnes-desktop> (raw)
In-Reply-To: <1297978418.900.4.camel@zwerg>

On Thu, 17 Feb 2011 22:33:38 +0100
Alexey Fisher <bug-track@fisher-privat.net> wrote:

> Am Donnerstag, den 17.02.2011, 21:08 +0000 schrieb Chris Wilson:
> > On Thu, 17 Feb 2011 10:40:53 -0800, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> > > In a few places I replaced reads of per-pipe registers with the actual
> > > register offsets themselves (converting I915_READ(reg) to _PIPE(reg)).
> > > Alexey caught this on his 9xx machine because the cursor control write
> > > was affected.  A quick audit showed a few more places where I'd borked
> > > a read, so here's a patch to fix things up.
> > 
> > Shoot the reviewer. Thanks for finding those needles in the haystack,
> > -Chris
> > 
> 
> I get compile error:
> 
> /home/src/linux-2.6/drivers/gpu/drm/i915/intel_display.c: In function
> ‘intel_crtc_mode_get’:
> /home/src/linux-2.6/drivers/gpu/drm/i915/intel_display.c:5718: error:
> ‘dev_priv’ undeclared (first use in this function)
> /home/src/linux-2.6/drivers/gpu/drm/i915/intel_display.c:5718: error:
> (Each undeclared identifier is reported only once
> /home/src/linux-2.6/drivers/gpu/drm/i915/intel_display.c:5718: error:
> for each function it appears in.)
> 
> The patch is on the top of 9035a97a32836d0e456ddafaaf249a844e6e4b5e
> (current drm-next)

Huh, I compiled it but I must have mixed in some other changes.  You'll
need this piece too.

-- 
Jesse Barnes, Intel Open Source Technology Center

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_d
index eadb4b8..2eb251a 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5746,6 +5746,7 @@ static int intel_crtc_clock_get(struct drm_device *dev, st
 struct drm_display_mode *intel_crtc_mode_get(struct drm_device *dev,
                                             struct drm_crtc *crtc)
 {
+       drm_i915_private_t *dev_priv = dev->dev_private;
        struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
        int pipe = intel_crtc->pipe;
        struct drm_display_mode *mode;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2011-02-17 21:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 18:40 [PATCH] drm/i915: fix per-pipe reads after "cleanup" Jesse Barnes
2011-02-17 21:08 ` Chris Wilson
2011-02-17 21:33   ` Alexey Fisher
2011-02-17 21:36     ` Jesse Barnes [this message]
2011-02-17 22:02       ` Alexey Fisher
2011-02-17 22:03 ` Alexey Fisher

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=20110217133641.5ca05aa8@jbarnes-desktop \
    --to=jbarnes@virtuousgeek.org \
    --cc=bug-track@fisher-privat.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.