Re: [BISECTED && PACTH AVAILABLE] [drm:i915_initialize] *ERROR* cannot ioremap virtual address for ring buffer

From: Paolo Ornati
Date: Sat Feb 21 2009 - 09:57:32 EST


On Sat, 21 Feb 2009 13:12:09 +0000
Sitsofe Wheeler <sitsofe@xxxxxxxxx> wrote:

> > Doh. Scratch that idea...
>
> Hmm does the patch mentioned on
> http://marc.info/?l=linux-kernel&m=123455194230641&w=2 help the DRM
> error message (and if so does the mtrr weirdness still happen)?

With that patch the error is gone :)

---------- patch here for reference ---------------

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_init_t * init)
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);
--------------------------------------------------

$ cat /proc/mtrr
reg00: base=0x000000000 ( 0MB), size= 2048MB, count=1: write-back
reg01: base=0x07f000000 ( 2032MB), size= 16MB, count=1: uncachable
reg02: base=0x07e800000 ( 2024MB), size= 8MB, count=1: uncachable
reg03: base=0x07e700000 ( 2023MB), size= 1MB, count=1: uncachable
reg04: base=0x080000000 ( 2048MB), size= 256MB, count=2: write-combining
^^^


Another "problem": every time I switch from X to a text console I get
this:

[ 156.729311] [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 1


It seems harmless but I report it anyway.


--
Paolo Ornati
Linux 2.6.29-rc5-00276-g2ec77fc-dirty on x86_64
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/