public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: pk <peterk2@coolmail.se>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT?] MTRR and PAT
Date: Tue, 13 May 2008 23:27:14 +0200	[thread overview]
Message-ID: <482A07B2.5060604@coolmail.se> (raw)
In-Reply-To: <350fc7cf0805121153t74980c43vf6e551d4470d50b8@mail.gmail.com>

Andrey Falko wrote:

> Ahh I see. I don't know much about MTRR...all I know is that you can
> adjust them via grub:
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10

Hmm... I missed that one. Thanks.

My grub kernel command line (which I haven't given much thought to since 
it's inception many years ago):
root=/dev/sda2 vga=804 video=vesafb:1280x1024-32@85,mtrr:3,ywrap

This should tell vesafb to set MTRR to use write-combining (for which 
memory region, I don't know), but it doesn't work for me, for some 
reason. All of my mem (under X) is set to write-back with the exception 
of 1Mb set to uncacheable. My other computer has even stranger settings 
and the kernel log complains about MTRR settings not correctly setup (it 
states that the BIOS probably doesn't init's both cores).

> . You probably read this already:
> http://en.wikipedia.org/wiki/Memory_Type_Range_Registers

Yep. Here's a few more if you (or anyone else) find this interesting:
http://en.wikipedia.org/wiki/Write-combining
http://en.wikipedia.org/wiki/Cache

Basically the MTRR (and PAT) determines how the processor (and it's 
cache(s)) accesses the memory regions (in the MTRR). Xorg supposedly 
should set up the MTRR when it starts.

> Yeh, I have Nvidia cards, so I guess ATI is different.

Perhaps.

Thanks again! It's always good to weather one's thoughts on a subject...

This just got me thinking. I'll investigate what the MTRR settings look 
like before the display manager starts...

Best regards

Peter K
-- 
gentoo-user@lists.gentoo.org mailing list



      reply	other threads:[~2008-05-13 21:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-11  7:49 [gentoo-user] [OT?] MTRR and PAT pk
2008-05-11  7:57 ` Andrey Falko
2008-05-11  8:15   ` pk
2008-05-11 20:03     ` Andrey Falko
2008-05-12 18:30       ` pk
2008-05-12 18:53         ` Andrey Falko
2008-05-13 21:27           ` pk [this message]

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=482A07B2.5060604@coolmail.se \
    --to=peterk2@coolmail.se \
    --cc=gentoo-user@lists.gentoo.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