Mtrr Error Linux
Contents |
Member Registered: 2008-10-18 Posts: 142 "error setting MTRR", can't get X to start I have a Sony Vaio VGN-C140G that I can't get X to start on. Have been using the Wiki for xorg.conf setup. No problems to speak of in Xorg.0.log. After "startx" the screen flashes like memory type range register it always does going into X, then at the last second it drops back to the error setting mtrr invalid argument 22 console prompt with the message "waiting for X server to shut down error setting MTRR (base = 0xb0000000, size=0x007b0000, type = 1) Invalid argument mtrr linux (22)".Dmesg shows several "conflicting memory types b0000000-c0000000 write-combining<->uncached-minus" messagesIf I pre-load /dev/mtrr I do not get the "error setting MTRR (base = 0xb0000000, size=0x007b0000, type = 1) Invalid argument (22)" message but still get X shutting down and still error setting mtrr startx get the stuff in dmesg.I googled around and it appears there is some bad interaction between this 2.6.28 (and .27) kernel, X (and drm), and the way mtrr is handled. I even tried just the simple vesa and still got the error. I guess there is no fix.The weird thing is, earlier in the day I was able to launch X. I kept rebooting it while working on xorg.conf, and from some point it failed, never to work again.This machine
Error Setting Mtrr Ubuntu
also works with Puppy Linux 4.1.2 using xorg. The kernel is 2.6.25 however, which according to my searches is before this problem turned up.The chipset is an Intel 945GM. The last messages in the xorg log are[drm] removed 1 reserved context for kernel [drm] unmapping 8192 bytes of SAREA 0xf8039000 at 0xb7ab8000 [drm] Closed DRM master.This is more a heads-up than anything. I'm guessing there's not a fix until a better kernel comes out. Back to Puppy for now... Offline #2 2009-03-22 04:47:28 Ranguvar Member From: Our collective subconscious Registered: 2008-08-12 Posts: 2,515 Website Re: "error setting MTRR", can't get X to start Post your xorg.conf and full X log, please Can you use the vesa driver fine?Did you Google your error? I'm turning up a lot of HAL stuff. Did you have hal in your DAEMONS list in rc.conf? Offline #3 2009-03-22 15:36:09 PaulBx1 Member Registered: 2008-10-18 Posts: 142 Re: "error setting MTRR", can't get X to start OK, if you want... This is just the latest iteration of xorg.conf files I have tried, of which none work since yesterday morning. The references to Puppy are because I started with the Puppy xorg.conf and then modified it. Oh, I also tried those xorg.conf generators but wasn't getting anywhere so I went the Puppy route. See next post for a later version.# ********************************************************************** # Module section -- this section is used to specify # which dynamically load
problems: mtrr_cleanup: can not find optimal value please specify mtrr_gran_size/mtrr_chunk_size MTRR allocation failed. Graphics performance may suffer. Keep on reading for some background info
Error Setting Mtrr (base = 0xf0000000, Size = 0x00100000, Type = 1) Invalid Argument (22)
and a few steps to solve that problem. What is a MTRR? kernel: mtrr: no more mtrrs available Memory Type Range Registersare basically a table which tells the system how to cache which ranges of installed memory. mtrr default type uncachable It is set up by bios initially, but can be altered anytime by the OS if needed. Whenever you change the amount of memory installed or flash a new bios, a https://bbs.archlinux.org/viewtopic.php?id=68093 new mtrr table is computed. Here is a sane mtrr table from my Lenovo T400 notebook with 6 GiB of ram: fk ~ $ cat /proc/mtrr reg00: base=0x000000000 ( 0MB), size= 2048MB, count=1: write-back reg01: base=0x080000000 ( 2048MB), size= 1024MB, count=1: write-back reg02: base=0x0bc000000 ( 3008MB), size= 64MB, count=1: uncachable reg03: base=0x100000000 ( 4096MB), size= 2048MB, count=1: write-back reg04: base=0x180000000 ( http://my-fuzzy-logic.de/blog/index.php?/archives/41-Solving-linux-MTRR-problems.html 6144MB), size= 1024MB, count=1: write-back reg05: base=0x1bc000000 ( 7104MB), size= 64MB, count=1: uncachable reg06: base=0x0d0000000 ( 3328MB), size= 256MB, count=1: write-combining As you see, my Laptop has 7 registers available, there are some small uncachable areas defined (I don't know why, some bios stuff I suppose..), but the big chunks are set to write back. The last is a special one: It is the Intel onboard graphic cards memory, which supports write-combining for best performance. So, what can go wrong? Propably a lot. In my case, I found the following deeply disturbing lines inside the kernel buffer: mtrr: no more MTRRs available [drm] MTRR allocation failed. Graphics performance may suffer. What happened? The drm module tried to grab a free mtrr to set up a write-combined cache area for the graphic cards memory, but all 7 register were occupied by some other cache-declarations already, so that failed. However, the machine works fine without, 3D and compositing work, as do games and everything, just not as fast as they could. What can we do about it? Luckily, the kernel has some options to control mtrr setup:
Tags Search LQ Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware can't starx: error setting MTRR http://www.linuxquestions.org/questions/slackware-14/can't-starx-error-setting-mtrr-764633/ User Name Remember Me? Password Slackware This Forum is for the discussion of Slackware Linux. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely error setting free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem error setting mtrr logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 10-26-2009, 04:20 PM #1 frabato LQ Newbie Registered: Sep 2009 Posts: 20 Rep: can't starx: error setting MTRR Hi All, I just did a minimal install of slack 13. X starts and I can see xterm (I think it's xterm) and the cursor flickers for about 2 seconds but then exits back to a virtual terminal and the only err