LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-29-2008, 04:30 PM   #1
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
mtrr and ywrap


I have a question which for the life of me I have never been able to find an answer for despite my scouring of the internet for long periods on several different occasions.

How can I find out if a system I'm on supports MTRR and/or YWRAP? I know you can access MTRR via /proc/mtrr, but I just read about how that information may be skewed by kernel/bios options. I know as well that MTRR will be listed in the flags section of /proc/cpuinfo, but that doesn't tell you what type of MTRR is used, which is what I'm looking for. That info is in /proc/mtrr but if it's skewed, that's no good. Also, I don't really know what /proc/mtrr is saying. For example, I have 2048MB of write-back starting at 1 address, 1MB uncachable after that, and 8MB write-back after that. Why is there 1MB uncachable in the middle and does that change anything?

For ywrap, I have NO idea where to find that info. I know if I set it on my machine in grub, my display usually doesn't display properly (though maybe 2% of the time it displays fine). I assume it doesn't support ywrap, but someone told me all modern PC's do.

I realize I could post my own hardware info here and someone might be able to tell me what my specific hardware can do, but I'm looking for more generic info that might be of use if/when I upgrade or am helping a friend install linux. There has to be somewhere to get the info, even if it means going to the manufacturers site and reading the detailed technical specifications, and if that's the answer, I'll give that another shot but I didn't find anything there last time.

Also, I assume ywrap is a video card setting, is it not? Or is it a generic memory setting? MTRR is processor/motherboard specific, correct? Or does it involve something else as well?

Thank you for your time.
 
Old 03-01-2008, 09:25 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I think good start would be reading /usr/src/linux/Documentation/fb/vesafb.txt.
 
Old 03-01-2008, 01:26 PM   #3
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks. Checked that out. Also checked out uvesafb.txt since that's the framebuffer I'm using. Nothing says how to tell what my hardware can support.

I found out if you use the nomtrr grub option that you eliminate any inconsistencies in /proc/mtrr, so I did that I can see what my PC supports in terms of MTRR. I still have no idea to know if my system supports ywrap or ypan or any of that. Is it just trial and error to see what works?

Also, not that I learned I can see my actual MTRR capability if I use the nomtrr switch, I'm not quite sure mine is working. I have noticed that in mtrr if I use nomtrr I have:
Code:
reg00: base=0x00000000 (   0MB), size=2048MB: write-back, count=1
reg01: base=0x7ff00000 (2047MB), size=   1MB: uncachable, count=1
But if I set mtrr:2 (for write-back), I get:
Code:
reg00: base=0x00000000 (   0MB), size=2048MB: write-back, count=1
reg01: base=0x7ff00000 (2047MB), size=   1MB: uncachable, count=1
reg02: base=0xf9000000 (3984MB), size=   8MB: write-back, count=1
So I'm not sure what that means. Write-back enabled for the 2GB starting at address 0x00000000 or is it only enabled for the 8MB starting at 0xf9000000? And what's the 1937MB gap between the uncachable region and the final writeback all about? Perhaps this is why my ywrap always causes me problems?

/usr/src/linux/Documentation/mtrr.txt didn't really tell me anything useful either.

Last edited by dtjohnst; 03-01-2008 at 02:02 PM.
 
Old 03-01-2008, 01:51 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You probably know more than I do, I never thought generic framebuffer has much to do with hardware, except it is using RAM of course.
 
Old 03-01-2008, 05:04 PM   #5
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Original Poster
Rep: Reputation: 15
Oh. If you're right, that might change things. I was under the impression you could have accelerated framebuffer though, which would imply to me that it must be related to hardware.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mtrr not aligned CrashedAgain Linux - Software 1 10-26-2006 10:51 PM
DMA, MTRR problems Alien_Hominid Linux - Hardware 1 04-13-2006 09:17 PM
mtrr errors DarkNecromancer Slackware 1 02-24-2006 04:06 PM
/proc/mtrr gomez Linux - General 4 12-21-2004 07:38 PM
mtrr support abs Slackware 1 03-03-2004 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration