Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]2.6.30: nvidia driver fails during X start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 158
Location: UK

PostPosted: Sun Jun 14, 2009 5:43 pm    Post subject: [SOLVED]2.6.30: nvidia driver fails during X start Reply with quote

Trying out gentoo-sources-2.6.30-r1.
Compile of x11-drivers/nvidia-drivers works fine. Load at boot works. But, when X loads the it fails with the following in the Xorg log:
Code:

(II) NVIDIA(0): Creating default Display subsection in Screen section
   "Screen0" for depth/fbbpp 24/32
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NvAGP" "1"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "true"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): Use of NVIDIA internal AGP requested
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
(EE) NVIDIA(0):     Please see the COMMON PROBLEMS section in the README for
(EE) NVIDIA(0):     additional information.
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!


By comparison the same part of the Xorg log when using gentoo-sources 2.6.29-r5:
Code:

(II) NVIDIA(0): Creating default Display subsection in Screen section
   "Screen0" for depth/fbbpp 24/32
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NvAGP" "1"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "true"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): Use of NVIDIA internal AGP requested
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 9500 GT (G96) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 1048576 kBytes
(--) NVIDIA(0): VideoBIOS: 62.94.28.00.00
(II) NVIDIA(0): Detected PCI Express Link width: 16X


This happens with nvidia version 180.60 and 185.18.14 (the later built from a local overlay I constructed).
There are no messages in dmesg or the system log when this error happens, so not many clues about what could be wrong.

I've not managed to find any other posts about this, so its possible that there is a configuration change in 2.6.30 that I have missed.

Anyone seen this / have any ideas?

(Related question - why are the 185.* nvidia releases not in portage? The Nvidia site implies they are current version.)

Thanks
Ian


Last edited by ipic on Mon Jul 06, 2009 9:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Sun Jun 14, 2009 6:45 pm    Post subject: Reply with quote

I had a similar problem. I had to re-emerge and run nvidia-xconfig after booting to 2.6.30-r1. I restarted X a bunch of times and rebooted and eventually I got my nvidia drivers working again. Not sure what the problem was but for some reason I couldn't just emerge nvidia-drivers and reboot as usual.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1554
Location: Just over the horizon

PostPosted: Sun Jun 14, 2009 7:03 pm    Post subject: Reply with quote

Quote:
(Related question - why are the 185.* nvidia releases not in portage? The Nvidia site implies they are current version.)

Thanks
Ian


They are in the berkano overlay (though, hard masked for now). The 185.* drivers seem to be having a few problems with video playback according to several threads on nvnews. The other latest drivers can be found in the berkano overlay. I'm running 180.60- with no issues from the berkano overlay now.
Back to top
View user's profile Send private message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 158
Location: UK

PostPosted: Sun Jun 14, 2009 7:04 pm    Post subject: Reply with quote

rtomek wrote:
I had to re-emerge and run nvidia-xconfig after booting to 2.6.30-r1. I restarted X a bunch of times and rebooted and eventually I got my nvidia drivers working again. Not sure what the problem was but for some reason I couldn't just emerge nvidia-drivers and reboot as usual.


Can you remember what you changed in this process? Needless to say I have done all this, several times, so something has to change to make it work.

I have very little in my xorg.conf file. What did nvidia-xconfig change in yours, if anything?

Thanks
Regards
Ian
Back to top
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Sun Jun 14, 2009 7:15 pm    Post subject: Reply with quote

xorg.conf:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig                                                                 
# nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Mon May 11 15:57:20 PDT 2009                                             


Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0     
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection                                   

Section "Files"
    FontPath        "/usr/share/fonts/misc/"
    FontPath        "/usr/share/fonts/TTF/"
    FontPath        "/usr/share/fonts/OTF" 
    FontPath        "/usr/share/fonts/Type1/"
    FontPath        "/usr/share/fonts/100dpi/"
    FontPath        "/usr/share/fonts/75dpi/"
EndSection                                   

Section "Module"
    Load           "glx"
    Load           "extmod"
    Load           "dbe"   
    Load           "record"
    Load           "xtrap"
    Load           "freetype"
EndSection                   

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "evdev"   
    Option         "Device" "/dev/input/event4"
EndSection                                     

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "evdev"
    Option         "Protocol"
    Option         "Device" "/dev/input/event3"
    Option         "Emulate3Buttons" "no"     
    Option         "ZAxisMapping" "4 5 6 7"   
EndSection                                     

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "G70 [GeForce 7300 GT]"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    SubSection     "Display"
        Viewport    0 0
        Modes      "1680x1580" "1280x1024" "1024x768" "800x600"
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       4
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       15
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes      "1680x1050" "1280x1024" "1024x768" "800x600"
    EndSubSection
EndSection


Also, I am using the ebuild from the berkano overlay.

I am not sure what was changed in the xorg.conf because the most I may have edited it was adding my 1680x1050 resolution, if I even did that. The new X server will automatically find everything if it's blank, so I deleted my xorg.conf a few months back and just started with nothing and don't pay attention to it anymore.
Back to top
View user's profile Send private message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 158
Location: UK

PostPosted: Sat Jun 20, 2009 9:52 am    Post subject: Reply with quote

Progress in a backwards direction :(

Added the berkano overlay, and built nvidia-drivers-185.13 against gentoo-sources-2.6.29-r5. All works and happy.

However, an attempt to build against gentoo-sources-2.6.30.r1 gives an error:
Code:
/var/tmp/portage/x11-drivers/nvidia-drivers-185.13/work/NVIDIA-Linux-x86-185.13-pkg0/usr/src/nv/nv.c: In function ‘nvos_proc_add_warning_file’:
/var/tmp/portage/x11-drivers/nvidia-drivers-185.13/work/NVIDIA-Linux-x86-185.13-pkg0/usr/src/nv/nv.c:703: error: ‘struct proc_dir_entry’ has no member named ‘owner’
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-185.13/work/NVIDIA-Linux-x86-185.13-pkg0/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-185.13/work/NVIDIA-Linux-x86-185.13-pkg0/usr/src/nv] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 *
 * ERROR: x11-drivers/nvidia-drivers-185.13 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3788:  Called linux-mod_src_compile
 *             environment, line 2804:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                                  CROSS_COMPILE=${CHOST}-                                                     LDFLAGS=\"$(get_abi_LDFLAGS)\"                                              ${BUILD_FIXES}                                          ${BUILD_PARAMS}                                                     ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux           SYSOUT=/lib/modules/2.6.30-gentoo-r1/build HOST_CC=i686-pc-linux-gnu-gcc clean module


I can see some chat in kernel lists about the "owner" problem in 2.6.30, but nothing I can understand unfortunately.

Since you guys have built against 2.6.30, does this have something to do with kernel settings? I have disabled the
Code:
[ ] Enable unused/obsolete exported symbols
feature - perhaps its that.

Thanks
Regards
Ian
Back to top
View user's profile Send private message
gemini91
Guru
Guru


Joined: 27 Nov 2003
Posts: 317
Location: Naples, Fl

PostPosted: Sat Jun 20, 2009 12:52 pm    Post subject: Reply with quote

I get the same error (error: ‘struct proc_dir_entry’ has no member named ‘owner’)
trying to compile nvidia-drivers-173.14.18 against gentoo-sources-2.6.30-r1
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4241

PostPosted: Sat Jun 20, 2009 2:17 pm    Post subject: Reply with quote

you should filebug it, i use a 2.6.30 from kernel.org and it works flawlessly
Back to top
View user's profile Send private message
costel78
Apprentice
Apprentice


Joined: 20 Apr 2007
Posts: 195

PostPosted: Sun Jun 21, 2009 6:15 am    Post subject: Reply with quote

As temporary workaround I followed this sugestion.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 158
Location: UK

PostPosted: Sat Jul 04, 2009 3:56 pm    Post subject: Reply with quote

Still struggling with this :-(

Going back to version 180.60 (185.13 from berkano overlay fails to compile - how do other people get it to work?? don't understand).

Works flawlessly on kernel 2.6.29-gentoo-r5, of course.

Compiles OK for 2.6.30-gentoo-r2, but fails to start. dmesg shows this error:
Code:
[  101.577809] IRQ 16/nvidia: IRQF_DISABLED is not guaranteed on shared IRQs
[  102.602214] vmap allocation for size 16781312 failed: use vmalloc=<size> to increase size.
[  102.603365] NVRM: RmInitAdapter failed! (0x26:0xffffffff:1091)
[  102.603373] NVRM: rm_init_adapter(0) failed

This smells like something in kernel config - but I am blowed if I can work out what.

Regards
Ian
Back to top
View user's profile Send private message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 158
Location: UK

PostPosted: Sat Jul 04, 2009 6:06 pm    Post subject: Reply with quote

This is a red herring:
Code:
[   41.598918] IRQ 18/cx88[0]: IRQF_DISABLED is not guaranteed on shared IRQs

Also happens on kernel 2.6.29-gentoo-r5.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1554
Location: Just over the horizon

PostPosted: Sun Jul 05, 2009 7:49 pm    Post subject: Reply with quote

Quote:
[ 102.602214] vmap allocation for size 16781312 failed: use vmalloc=<size> to increase size.


That's your problem. Add the vmalloc option to your grub kernel line as suggested. 16 mb isn't enough.
Back to top
View user's profile Send private message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 158
Location: UK

PostPosted: Mon Jul 06, 2009 9:27 pm    Post subject: Reply with quote

platojones wrote:
Quote:
[ 102.602214] vmap allocation for size 16781312 failed: use vmalloc=<size> to increase size.


That's your problem. Add the vmalloc option to your grub kernel line as suggested. 16 mb isn't enough.


Give the man a cigar! The solution was staring me in the face and I couldn't see it. So, I added this to the grub boot line for this kernel:
Code:
vmalloc=256M
and X sprang into life after the boot. nvidia drivers appear to be good so far - I'm using compiz and XFCE, so I may yet see some of the problems I've seen posted in other forums - but soo far so good.

for the record, something changes between 2.6.29 and 2.6.30 that I don't fully understand.
Code:

from 2.6.29 /proc/meminfo:
VmallocTotal:     122880 kB
VmallocUsed:       91640 kB
VmallocChunk:      25588 kB

from 2.6.30 /proc/meminfo (after change to vmalloc):
VmallocTotal:     262144 kB
VmallocUsed:       92104 kB
VmallocChunk:     137716 kB

So, used memory up by half a meg or so, but huge difference in VmallocChunk.

Something must need more memory during start-up I guess.

Thanks for the solution @platojones
Regards
Ian
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum