public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: "admin@wodkahexe.de" <admin@wodkahexe.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: MTRR problem, maybe FB related
Date: Fri, 6 Aug 2004 21:34:36 +0100	[thread overview]
Message-ID: <20040806203436.GA22421@redhat.com> (raw)
In-Reply-To: <20040806194722.6298b00f.admin@wodkahexe.de>

On Fri, Aug 06, 2004 at 07:47:22PM +0200, admin@wodkahexe.de wrote:

 > vesafb: framebuffer at 0xb0000000, mapped to 0xdf80d000, size 6144k
 > vesafb: mode is 1024x768x32, linelength=4096, pages=4

vesafb's mtrr usage is borken. Instead of creating an MTRR the size
of video RAM, it creates one the size of the display.

 > mtrr: 0xb0000000,0x8000000 overlaps existing 0xb0000000,0x400000
 > [drm] Initialized i830 1.3.2 20021108 on minor 0: Intel Corp. 82852/855GM Integrated Graphics Device
 > mtrr: 0xb0000000,0x8000000 overlaps existing 0xb0000000,0x400000
 > [drm] Initialized i830 1.3.2 20021108 on minor 1: Intel Corp. 82852/855GM Integrated Graphics Device (#2)

Then X comes along, sizes the video ram, and tries to create an MTRR
of the correct size, but the framebuffer got there first and bodged it.

I used to see this happening also on my Matrox g550, but it seems
to have 'gone away' in recent times. I haven't checked out why,
but I'm suspecting X now detects this case, and deletes the crap
entry, and puts the proper values in its place.

 > when starting X i'm getting the following in dmesg:
 > 
 > mtrr: base(0xb0020000) is not aligned on a size(0x180000) boundary

This one I can't explain however.

 > mtrr: 0xb0000000,0x8000000 overlaps existing 0xb0000000,0x400000
 > 
 > is there any way to get both working together? (fb + mtrr)

Disable MTRR for vesafb. iirc, there's a boot command line option to do it.

		Dave


  reply	other threads:[~2004-08-06 20:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-06 17:47 MTRR problem, maybe FB related admin
2004-08-06 20:34 ` Dave Jones [this message]
2004-08-07 13:29   ` Sebastian

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=20040806203436.GA22421@redhat.com \
    --to=davej@redhat.com \
    --cc=admin@wodkahexe.de \
    --cc=linux-kernel@vger.kernel.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