public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Diego Calleja <diegocg@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>,
	torvalds@linux-foundation.org, dri-devel@lists.sf.net,
	linux-kernel@vger.kernel.org, Eric Anholt <eric@anholt.net>,
	Matthew Garrett <mjg59@srcf.ucam.org>,
	Nico Schottelius <nico-linux-20090213@schottelius.org>
Subject: Re: "Can not ioremap virtual address" (was Re: [git pull] drm)
Date: Fri, 13 Feb 2009 11:04:03 -0800	[thread overview]
Message-ID: <200902131104.04318.jbarnes@virtuousgeek.org> (raw)
In-Reply-To: <200902131828.22680.diegocg@gmail.com>

On Friday, February 13, 2009 9:28 am Diego Calleja wrote:
> On Lunes 09 Febrero 2009 09:30:57 Dave Airlie escribió:
> > Hi Linus,
> >
> > Please pull the 'drm-fixes' branch from
> > ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
> > drm-fixes
>
> A commit from this merge is causing an error in my machine:
>
> commit ab657db12d7020629f26f30d287558a8d0e32b41
> Author: Eric Anholt <eric@anholt.net>
> Date:   Fri Jan 23 12:57:47 2009 -0800
>
>     drm/i915: Set up an MTRR covering the GTT at driver load.
>
>
> (found using bisection)
>
> The error:
> [   20.270956] [drm] Initialized i915 1.6.0 20080730 on minor 0
> [   20.289492] [drm:i915_initialize] *ERROR* can not ioremap virtual
> address for ring buffer
>
> And in Xorg.0.log: (II) intel(0): direct rendering: Failed
>
>
> But...excluding that printk, everything works OK, including "direct
> rendering: Yes"...
>
> There's a related thread here: http://lkml.org/lkml/2009/2/13/139

Does this prevent the message?  We map it WC in GEM but not in 
i915_initialize...

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 81f1cff..2d797ff 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -202,7 +202,7 @@ static int i915_initialize(struct drm_device * dev, 
drm_i915
                dev_priv->ring.map.flags = 0;
                dev_priv->ring.map.mtrr = 0;

-               drm_core_ioremap(&dev_priv->ring.map, dev);
+               drm_core_ioremap_wc(&dev_priv->ring.map, dev);

                if (dev_priv->ring.map.handle == NULL) {
                        i915_dma_cleanup(dev);


-- 
Jesse Barnes, Intel Open Source Technology Center

  reply	other threads:[~2009-02-13 19:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09  8:30 [git pull] drm Dave Airlie
2009-02-13 17:28 ` "Can not ioremap virtual address" (was Re: [git pull] drm) Diego Calleja
2009-02-13 19:04   ` Jesse Barnes [this message]
2009-02-13 19:38     ` Diego Calleja

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=200902131104.04318.jbarnes@virtuousgeek.org \
    --to=jbarnes@virtuousgeek.org \
    --cc=airlied@linux.ie \
    --cc=diegocg@gmail.com \
    --cc=dri-devel@lists.sf.net \
    --cc=eric@anholt.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=nico-linux-20090213@schottelius.org \
    --cc=torvalds@linux-foundation.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