public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.2.16 SMP: mtrr errors
@ 2000-12-11 20:00  Paul C. Nendick 
       [not found] ` <Pine.LNX.4.10.10012121511190.28197-100000@coffee.psychology.mcmaster.ca>
  2000-12-12 20:19 ` John Cavan
  0 siblings, 2 replies; 12+ messages in thread
From:  Paul C. Nendick  @ 2000-12-11 20:00 UTC (permalink / raw)
  To: linux-kernel

Please cc: any responses to my email address <pauly@enteract.com>

My setup
-A standard install of RedHat 7.0 with the 2.2.16smp w/ hand compiled X
 4.0.1 to support xinerama
-Tyan tiger 133 s1834 motherboard (VIA Apollo Pro133A Chipset)
-256mb PC133 RAM
-Two 800 Mhz PIII eb Slot-1 CPU's
-Matrox g450 32MB RAM dual-heal AGP video card w/ hand compiled X driver
 from matrox

My problem
from /var/log/message at startup:

mtrr: v1.35a (19990819) Richard Gooch (rgooch@atnf.csiro.au)
<snip>
CPU0: Intel Pentium III (Coppermine) stepping 03
<snip>
CPU1: Intel Pentium III (Coppermine) stepping 03
Total of 2 processors activated (3194.88 BogoMIPS).
<snip>
checking TSC synchronization across CPUs: passed.
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: probably your BIOS does not setup all CPUs

and immediately after starting X:

kernel: mtrr: base(0xd4000000) is not aligned on a size(0x1800000) boundary
last message repeated 2 times

and finally:

%cat /proc/mtrr 
reg00: base=0x00000000 (   0MB), size= 256MB: write-back, count=1
reg01: base=0xd0000000 (3328MB), size=  64MB: write-combining, count=1
reg02: base=0xd5800000 (3416MB), size=   8MB: write-combining, count=1

I would like to know what, if anything, is wrong and what I can do about it.

Cheers!

/paul

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: 2.2.16 SMP: mtrr errors
@ 2000-12-12 21:43 Petr Vandrovec
  2000-12-12 21:07 ` John Cavan
  0 siblings, 1 reply; 12+ messages in thread
From: Petr Vandrovec @ 2000-12-12 21:43 UTC (permalink / raw)
  To:  Paul C. Nendick ; +Cc: linux-kernel

On 11 Dec 00 at 14:00,  Paul C. Nendick wrote:

> -Matrox g450 32MB RAM dual-heal AGP video card w/ hand compiled X driver
>  from matrox

Make sure you do not use either matroxfb or XFree's driver... Same chip
ID, but different ramdac :-(
 
> and immediately after starting X:
> 
> kernel: mtrr: base(0xd4000000) is not aligned on a size(0x1800000) boundary
> last message repeated 2 times

For some strange reason X thinks that you have 24MB of memory on the G450.
You can either create 32MB write-combining region at 0xd4000000, or
teach X that your device occupies 32MB and not 24 (you should do it anyway,
region size can be only power of two)...

> and finally:
> 
> %cat /proc/mtrr 
> reg00: base=0x00000000 (   0MB), size= 256MB: write-back, count=1
> reg01: base=0xd0000000 (3328MB), size=  64MB: write-combining, count=1
> reg02: base=0xd5800000 (3416MB), size=   8MB: write-combining, count=1
+ reg03: base=0xd4000000 (????MB), size=  32MB: write-combining, count=1

                                            Petr Vandrovec
                                            vandrove@vc.cvut.cz
                                            
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: 2.2.16 SMP: mtrr errors
@ 2000-12-12 22:13 Petr Vandrovec
  2000-12-13  7:33 ` Boszormenyi Zoltan
  0 siblings, 1 reply; 12+ messages in thread
From: Petr Vandrovec @ 2000-12-12 22:13 UTC (permalink / raw)
  To: John Cavan; +Cc:  Paul C. Nendick, linux-kernel

On 12 Dec 00 at 16:07, John Cavan wrote:
> Petr Vandrovec wrote:
> > > kernel: mtrr: base(0xd4000000) is not aligned on a size(0x1800000) boundary
> > > last message repeated 2 times
> > 
> > For some strange reason X thinks that you have 24MB of memory on the G450.
> > You can either create 32MB write-combining region at 0xd4000000, or
> > teach X that your device occupies 32MB and not 24 (you should do it anyway,
> > region size can be only power of two)...
> 
> Petr, the Matrox card splits the memory between the two video screens
> when running in a multi-head configuration and "pretends" that it is two
> distinct cards. Thus, a 32 mb card will register an mtrr for 24mb and
> for 8mb seperately when in this mode.

That's wrong. They must first register MTRR and then split it to
24+8, as they cannot register 24MB range. They can split it
16+16, or (16+8)+8, but at cost of 1 (or 2) additional MTRR entries -
and there is very limited number of possible MTRRs.

Matroxfb also splits Matrox memory in 24:8, but it registers only one
region in mtrr. Of course, in X, as mtrr registration is done by map
videomemory, you must tell this function to not register mtrr...

                                            Best regards,
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2000-12-13 11:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-11 20:00 2.2.16 SMP: mtrr errors  Paul C. Nendick 
     [not found] ` <Pine.LNX.4.10.10012121511190.28197-100000@coffee.psychology.mcmaster.ca>
2000-12-11 20:23   `  Paul C. Nendick 
2000-12-12 20:19 ` John Cavan
  -- strict thread matches above, loose matches on Subject: below --
2000-12-12 21:43 Petr Vandrovec
2000-12-12 21:07 ` John Cavan
2000-12-12 21:23   ` Alan Cox
2000-12-11 21:58     `  Paul C. Nendick 
2000-12-13  2:07       ` David Wragg
2000-12-12 21:36     ` John Cavan
2000-12-13 10:55     ` Jamie Lokier
2000-12-12 22:13 Petr Vandrovec
2000-12-13  7:33 ` Boszormenyi Zoltan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox