Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159227 - nvidia-drivers-1.0.9742 - Failed to initialize the NVIDIA graphics device
Summary: nvidia-drivers-1.0.9742 - Failed to initialize the NVIDIA graphics device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-27 10:07 UTC by Balint Dobai-Pataky
Modified: 2007-01-02 12:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.35 KB, text/plain)
2006-12-27 10:13 UTC, Balint Dobai-Pataky
Details
xorg.conf (xorg.conf,3.13 KB, text/plain)
2006-12-27 10:23 UTC, Balint Dobai-Pataky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balint Dobai-Pataky 2006-12-27 10:07:36 UTC
i just installed amd64 on my machine, and could not load X with nvidia (nor nv).

# X

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN 
Current Operating System: Linux anubis 2.6.19-gentoo-r2 #1 PREEMPT Wed Dec 27 19:07:07 Local time zone must be set--see  x86_64
Build Date: 27 December 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 27 19:58:05 2006
(==) Using config file: "/etc/X11/xorg.conf"
NVIDIA: could not open the device file /dev/nvidia0 (Input/output error).
(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!
(EE) NVIDIA(0):  *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

# cat /proc/driver/nvidia/agp/host-bridge 
Host Bridge:     PCI device 10de:00e1
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       8x 4x 
Registers:       0x1f00421b:0x00000000

# cat /proc/driver/nvidia/agp/card 
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       8x 4x 
Registers:       0x1f000e1b:0x00000000

# cat /proc/driver/nvidia/agp/status 
Status:          Disabled

# qlist -Iv nvidia
x11-drivers/nvidia-drivers-1.0.9742

uname -a
Linux anubis 2.6.19-gentoo-r2 #1 PREEMPT Wed Dec 27 19:07:07 Local time zone must be set--see  x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

i also tried linux-2.6.18-gentoo-r5, same luck.

# ls -l /dev/nvidia0 
crw-rw-rw- 1 root root 195, 0 Dec 27 19:48 /dev/nvidia0

dmesg:
..
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  1.0-9742  Tue Nov  7 09:45:02 PST 2006
..
NVRM: RmInitAdapter failed! (0x23:0xffffffff:679)
NVRM: rm_init_adapter(0) failed


(first on loading nvidia, then on starting X)

# lspci 
00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management (rev a1)
00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0 Controller (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb AC'97 Audio Controller (rev a1)
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller (v2.5) (rev a2)
00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) (rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
02:07.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:07.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0b.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)


# grep AGP /usr/src/linux/.config
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set


by the way, i don't have nvidia_agp (since i have an nforce3, i'd need one, i used it on x86), and that's why i tried NVAGP

# grep nvidia /etc/modules.conf 
### modules-update: start processing /etc/modules.d/nvidia
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195
# options see /usr/share/doc/nvidia-drivers-1.0.9742/README.gz 
options nvidia NVreg_EnableAGPSBA=1 
options nvidia NVreg_EnableAGPFW=1 
options nvidia NVreg_NvAGP=1
options nvidia NVreg_DeviceFileUID=0 
options nvidia NVreg_DeviceFileGID=27  
options nvidia NVreg_DeviceFileMode=0666
# In /usr/share/doc/nvidia-drivers-1.0.9742/README.gz for full details
#options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=3
### modules-update: end processing /etc/modules.d/nvidia
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2006-12-27 10:12:10 UTC
Did you do like the message said and read the README for the Common Problems?
Comment 2 Balint Dobai-Pataky 2006-12-27 10:13:03 UTC
Created attachment 104814 [details]
emerge --info
Comment 3 Balint Dobai-Pataky 2006-12-27 10:16:09 UTC
no, i didn't like it, but i took a look at it, and searched for my problem, it's not mentioned there, i also google'd about 2 hours, and read tons of forum posts, and tried different combinations, and thus i arrived here.
Comment 4 Balint Dobai-Pataky 2006-12-27 10:23:31 UTC
Created attachment 104815 [details]
xorg.conf

i have a twinwiev setup, but i think it does not reach that point yet.
Comment 5 Balint Dobai-Pataky 2006-12-27 10:59:21 UTC
i've tried 
pci=biosirq
pci=noacpi
noapic
acpi=off
iommu=off

appended in different combinations, same results.

is there be a way i can get CONFIG_AGP_NVIDIA(and agpgart) or nvagp without CONFIG_AGP=y ? (currently i can't disable CONFIG_AGP and there is no CONFIG_AGP_NVIDIA)

i checked my bios, there is no 'assign irq to vga' or similar, 
all i can set is 4x/8x/auto for agp, which is on auto.

CONFIG_MMU=y
CONFIG_IOMMU=y
and i can't unset them :(

Comment 6 Balint Dobai-Pataky 2006-12-27 11:32:42 UTC
with nvidia-drivers-1.0.8774 i get an X server hang with a black screen.
i can kill the server and reboot the machine, with the black screen on.
only bios is able to reinitialize the card and show something.
strange.

now nv works, probably after i uninstalled nvidia-drivers which eselected opengl back to xorg-x11
but i can not get twinview from the nv driver.

Comment 7 Balint Dobai-Pataky 2006-12-27 16:13:04 UTC
i've red half of nvidia's readme, kinda liked it :)
but it did not help. :(

so i went back to google, and among tons of other things i've found this link:
http://www.mail-archive.com/debian-kernel@lists.debian.org/msg23039.html
so i modified the kernel, and now i have my nvidia/twinview.
why is IOMMU and AGPGART locked to Y in this 2.6.19-r2 x86_64?
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-28 08:34:01 UTC
It isn't locked by us, it is locked by the kernel upstream.  All you need to do is simply select the "Embedded" option (even without changing any of the other options) and you should be able to unselect IOMMU.
Comment 9 Balint Dobai-Pataky 2006-12-28 15:00:41 UTC
true, if i set EMBEDDED, i can unset CONFIG_IOMMU, so i can unset CONFIG_AGP.
veery weird. 
Comment 10 Krisztian Kis-Szabo 2006-12-29 06:13:59 UTC
I had the same error message a couple of month ago. I investigated it and it turned out at last that my video card was over. So it was a hardware problem. Maybe  you should try another Nvidia card.
Comment 11 Balint Dobai-Pataky 2006-12-29 10:47:15 UTC
yeah, probably, but it works fine since that (2006-12-27 16:13),
accelerated, glx-ed, twinview-ed. i don't see any irregularities about it.
thanks
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-02 08:28:41 UTC
OK.  I'm calling this one FIXED, then.
Comment 13 Balint Dobai-Pataky 2007-01-02 12:00:18 UTC
i was thinking on a warning at the end of the emerging process of the relevant nvidia or the gentoo-sources package:
if you want to use the nvagp, you'll have to disable agpgart in the kernel, on amd64 that's done by selecting 'configure standard kernel features', than deselecting 'iommu support' than deselecting '/dev/agpgart'.
or something similar