Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-31-08, 03:22 PM   #1
Robster
Registered User
 
Join Date: May 2004
Location: Christchurch, New Zealand
Posts: 40
Default Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Just a heads-up: as the title says, there's been a change to the PATs and MTRRs in Linux 2.6.28-git2 that breaks the Nvidia driver. When I start X I get a black screen and a partially locked-up machine; I can sometimes switch to another text VT and log in but at some point the whole thing will stop responding.

Logging in through ssh, I see this in dmesg (the first line is presumably irrelevant):

IRQ 16/nvidia: IRQF_DISABLED is not guaranteed on shared IRQs
X:3455 map pfn expected mapping type write-combining for d0000000-d06f9000, got uncached-minus
X:3455 freeing invalid memtype d0000000-d06f9000

There's a thread that looks like it's relevant at http://209.85.173.132/search?q=cache...&gl=nz&strip=1 (that's the google cache; the original page seems to be unavailable as at 10pm 12/31/08 UTC). As that code is pretty volatile at the moment, I'd say there's a good chance that the problem will disappear on its own over then next few weeks.

PATs and MTRRs are all greek to me; but in the kernel that has the problem, under "Processor type and features", I set
[*] MTRR (Memory Type Range Register) support
[ ] MTRR cleanup support
[*] x86 PAT support

When I turn off "x86 PAT support", X works again.

As I said, this is just a heads-up- it would be interesting to know the consequences of disabling "x86 PAT support", but this is just my trying-out-the-bleeding-edge machine and it's not causing me any real grief.
Attached Files
File Type: gz nvidia-bug-report.log.gz (28.6 KB, 123 views)
Robster is offline   Reply With Quote
Old 12-31-08, 04:55 PM   #2
Sean_W
Registered User
 
Sean_W's Avatar
 
Join Date: Jun 2007
Posts: 2,423
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

I have 2.6.28 kernel and enable this option, the xserver just doesn't start sometimes with the nvidia driver(x86_64)

I just brought a nForce 680i off a friend and I noticed this happening, used to work on on my ASRock conroe 1333(Intel 945 chipset) I guess it's pretty random.
Sean_W is offline   Reply With Quote
Old 01-01-09, 09:43 AM   #3
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

I had no problems with kernel 2.6.28 , 2.6.29 needs the nopat option added to the kernel boot line in grub.conf to work.
Code:
title Fedora (2.6.29-0.7.rc0.git3.fc11.x86_64)
	root (hd1,0)
	kernel /boot/vmlinuz-2.6.29-0.7.rc0.git3.fc11.x86_64 ro root=UUID=f446f1c8-c9a1-4bb1-b489-039f1f7dd890 rhgb nopat quiet vga=0x318
	initrd /boot/initrd-2.6.29-0.7.rc0.git3.fc11.x86_64.img


Code:
[leigh@localhost ~]$ Xorg -version

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.5.99.3
Release Date: (unreleased)
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-92.1.18.el5 x86_64 
Current Operating System: Linux localhost.localdomain 2.6.29-0.7.rc0.git3.fc11.x86_64 #1 SMP Wed Dec 31 11:22:05 EST 2008 x86_64
Build Date: 28 December 2008  08:42:34PM
Build ID: xorg-x11-server 1.5.99.3-5.fc11 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[leigh@localhost ~]$ rpm -qa |grep nvidia
akmod-nvidia-180.18-1.fc11.x86_64
xorg-x11-drv-nvidia-180.18-1.fc11.x86_64
kmod-nvidia-2.6.29-0.5.rc0.git1.fc11.x86_64-180.16-1.fc11.1.x86_64
kmod-nvidia-2.6.28-3.fc11.x86_64-180.18-1.fc11.x86_64
xorg-x11-drv-nvidia-libs-180.18-1.fc11.i386
kmod-nvidia-2.6.29-0.7.rc0.git3.fc11.x86_64-180.18-1.fc11.x86_64
xorg-x11-drv-nvidia-libs-180.18-1.fc11.x86_64
kmod-nvidia-2.6.28-0.140.rc9.git1.fc11.x86_64-180.16-1.fc11.1.x86_64
[leigh@localhost ~]$ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control, 
    GLX_EXT_texture_from_pixmap, GLX_ARB_create_context, GLX_ARB_multisample, 
    GLX_NV_float_buffer, GLX_ARB_fbconfig_float
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync, 
    GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGI_swap_control, GLX_ARB_create_context, GLX_NV_float_buffer, 
    GLX_ARB_fbconfig_float, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_framebuffer_sRGB, 
    GLX_NV_present_video, GLX_NV_multisample_coverage
GLX version: 1.3
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control, 
    GLX_EXT_texture_from_pixmap, GLX_ARB_create_context, GLX_ARB_multisample, 
    GLX_NV_float_buffer, GLX_ARB_fbconfig_float, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 7600 GT/PCI/SSE2
OpenGL version string: 2.1.2 NVIDIA 180.18
Attached Files
File Type: log nvidia-bug-report.log (129.3 KB, 156 views)
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 01-01-09, 04:29 PM   #4
Robster
Registered User
 
Join Date: May 2004
Location: Christchurch, New Zealand
Posts: 40
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Quote:
Originally Posted by leigh123@linux View Post
I had no problems with kernel 2.6.28 , 2.6.29 needs the nopat option added to the kernel boot line in grub.conf to work.
Just in case there's any confusion, we are actually talking about the same kernel version; it's called 2.6.28-gitx on kernel.org but Fedora is calling it a 2.6.29 prerelease.

Thanks for the "nopat" option tip, I didn't know about that and it's a lot easier than recompiling the kernel!
Robster is offline   Reply With Quote
Old 01-12-09, 04:32 PM   #5
gimpel
Registered User
 
Join Date: May 2006
Posts: 17
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Thanks, nopat helped getting X to start on 2.6.29-rc1!
gimpel is offline   Reply With Quote
Old 01-14-09, 10:20 AM   #6
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Quote:
Originally Posted by gimpel View Post
Thanks, nopat helped getting X to start on 2.6.29-rc1!

Looking at the changelog for 2.6.29-rc1-git4 it seems that they may have fixed the PAT issue

http://git.kernel.org/?p=linux%2Fker....git;a=summary
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 01-15-09, 09:39 AM   #7
mlauss
Registered User
 
Join Date: Aug 2007
Posts: 43
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

I found another issue; related to the new sparse_irq feature in
2.6.29-rc1-git5.

modprobe nvidia NVReg_EnableMSI=1 ; startx = instant reboot
modprobe nvidia NVReg_EnableMSI=0 ; startx = X starts up but 2D/3D are seriuosly broken.
Apparently in this case the kernel allocates a MSI vector and assigns it
to the nvidia module although it is supposed to get a wired irq connection.
mlauss is offline   Reply With Quote
Old 01-15-09, 10:38 AM   #8
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Quote:
Originally Posted by mlauss View Post
I found another issue; related to the new sparse_irq feature in
2.6.29-rc1-git5.

modprobe nvidia NVReg_EnableMSI=1 ; startx = instant reboot
modprobe nvidia NVReg_EnableMSI=0 ; startx = X starts up but 2D/3D are seriuosly broken.
Apparently in this case the kernel allocates a MSI vector and assigns it
to the nvidia module although it is supposed to get a wired irq connection.
does pci=nomsi help?
Dragoran is offline   Reply With Quote

Old 01-18-09, 03:09 PM   #9
Emopig
Registered User
 
Join Date: Feb 2008
Posts: 19
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

I'm not having any 2D or stability issues with 2.6.29-rc2 and 180.22 but 3D performance is at an all time low

andrew@ziggy ~ $ glxgears
31 frames in 5.0 seconds = 6.147 FPS

this is *with* direct rendering, with the vesa driver and software opengl I get about 300 fps and previously with the nvidia driver I got around 10,000fps. Anyone else having this problem? Will post configs shortly.
Emopig is offline   Reply With Quote
Old 01-18-09, 03:38 PM   #10
ledoc
Registered User
 
Join Date: Jan 2008
Posts: 330
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Uhm... the words "3D performace" and "glxgears" should not appear in one posting at the same time. How about FPS of a 3D game or a real 3D/OpenGL benchmark?
ledoc is offline   Reply With Quote
Old 01-19-09, 03:25 AM   #11
Emopig
Registered User
 
Join Date: Feb 2008
Posts: 19
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

ledoc,

I'd appreciate if you didn't just jump on the "glxgears is useless!!!" bandwagon when clearly SIX frames per second means OpenGL is broken. Anything OpenGL based is useless, it took me a minute or so to be able to close Extreme Tux Racer because the menu was so laggy. Will post details this afternoon.
Emopig is offline   Reply With Quote
Old 01-19-09, 03:31 AM   #12
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: Linux kernel 2.6.28-git2 breaks Nvidia driver, problem with PATs and MTRRs

Quote:
Originally Posted by Emopig View Post
ledoc,

I'd appreciate if you didn't just jump on the "glxgears is useless!!!" bandwagon when clearly SIX frames per second means OpenGL is broken. Anything OpenGL based is useless, it took me a minute or so to be able to close Extreme Tux Racer because the menu was so laggy. Will post details this afternoon.
does this happen if you disable PAT ?
Dragoran is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:32 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.