Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397991 - x11-drivers/nvidia-drivers startx freezes with black screen, frozen keyboard after upgrade to kernel 3.2 / xorg-server 1.11 when an IOMMU is in use
Summary: x11-drivers/nvidia-drivers startx freezes with black screen, frozen keyboard ...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-07 10:35 UTC by acidhell
Modified: 2012-06-19 04:26 UTC (History)
7 users (show)

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


Attachments
Xorg.0.log (Xorg.0.log,9.18 KB, text/plain)
2012-01-07 11:34 UTC, acidhell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description acidhell 2012-01-07 10:35:26 UTC
I emerged gentoo-sources-3.2.0-r1. After reboot I emerged nvidia-drivers. when I start startx the screen turns black, and the keyboard doesn't respond. I even upgraded my xorg-server to 1.11.3 but the problem still occurs.

Reproducible: Always

Steps to Reproduce:
1.emerge gentoo-sources-3.2.0-r1
2.genkernel all
3.emerge nvidia-drivers
Actual Results:  
xorg-server freezes.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-07 10:54:21 UTC
Please attach your Xorg.0.log
Comment 2 acidhell 2012-01-07 11:14:02 UTC
[   218.998] 
X.Org X Server 1.11.3
Release Date: 2011-12-16
[   218.998] X Protocol Version 11, Revision 0
[   218.999] Build Operating System: Linux 3.2.0-gentoo-r1 x86_64 Gentoo
[   218.999] Current Operating System: Linux CoolMaster 3.2.0-gentoo-r1 #1 SMP Fri Jan 6 13:47:56 EET 2012 x86_64
[   218.999] Kernel command line: root=/dev/ram0 real_root=/dev/sda3
[   218.999] Build Date: 06 January 2012  12:06:49PM
[   218.999]  
[   218.999] Current version of pixman: 0.24.0
[   218.999] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   218.999] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   219.000] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan  7 13:07:16 2012
[   219.001] (==) Using config file: "/etc/X11/xorg.conf"
[   219.001] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   219.001] (==) ServerLayout "Layout0"
[   219.001] (**) |-->Screen "Screen0" (0)
[   219.001] (**) |   |-->Monitor "Monitor0"
[   219.001] (**) |   |-->Device "Device0"
[   219.001] (**) |-->Input Device "Keyboard0"
[   219.001] (**) |-->Input Device "Mouse0"
[   219.001] (**) Option "Xinerama" "0"
[   219.001] (==) Automatically adding devices
[   219.001] (==) Automatically enabling devices
[   219.001] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[   219.001] 	Entry deleted from font path.
[   219.001] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   219.001] 	Entry deleted from font path.
[   219.001] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   219.001] 	Entry deleted from font path.
[   219.001] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   219.001] 	Entry deleted from font path.
[   219.001] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[   219.001] 	Entry deleted from font path.
[   219.001] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[   219.001] 	Entry deleted from font path.
[   219.001] (==) FontPath set to:
	
[   219.001] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   219.001] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   219.001] (WW) Disabling Keyboard0
[   219.001] (WW) Disabling Mouse0
[   219.001] (II) Loader magic: 0x7d5ae0
[   219.001] (II) Module ABI versions:
[   219.001] 	X.Org ANSI C Emulation: 0.4
[   219.001] 	X.Org Video Driver: 11.0
[   219.001] 	X.Org XInput driver : 13.0
[   219.001] 	X.Org Server Extension : 6.0
[   219.002] (--) PCI:*(0:1:0:0) 10de:0615:10de:069c rev 162, Mem @ 0xfa000000/16777216, 0xd0000000/268435456, 0xf8000000/33554432, I/O @ 0x0000ef00/128, BIOS @ 0x????????/131072
[   219.002] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   219.002] (II) LoadModule: "extmod"
[   219.002] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[   219.002] (II) Module extmod: vendor="X.Org Foundation"
[   219.002] 	compiled for 1.11.3, module version = 1.0.0
[   219.002] 	Module class: X.Org Server Extension
[   219.002] 	ABI class: X.Org Server Extension, version 6.0
[   219.002] (II) Loading extension MIT-SCREEN-SAVER
[   219.002] (II) Loading extension XFree86-VidModeExtension
[   219.002] (II) Loading extension XFree86-DGA
[   219.002] (II) Loading extension DPMS
[   219.002] (II) Loading extension XVideo
[   219.002] (II) Loading extension XVideo-MotionCompensation
[   219.002] (II) Loading extension X-Resource
[   219.002] (II) LoadModule: "dbe"
[   219.002] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   219.002] (II) Module dbe: vendor="X.Org Foundation"
[   219.002] 	compiled for 1.11.3, module version = 1.0.0
[   219.002] 	Module class: X.Org Server Extension
[   219.002] 	ABI class: X.Org Server Extension, version 6.0
[   219.002] (II) Loading extension DOUBLE-BUFFER
[   219.002] (II) LoadModule: "glx"
[   219.002] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   219.012] (II) Module glx: vendor="NVIDIA Corporation"
[   219.012] 	compiled for 4.0.2, module version = 1.0.0
[   219.012] 	Module class: X.Org Server Extension
[   219.012] (II) NVIDIA GLX Module  290.10  Wed Nov 16 18:01:24 PST 2011
[   219.012] (II) Loading extension GLX
[   219.012] (II) LoadModule: "record"
[   219.012] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[   219.012] (II) Module record: vendor="X.Org Foundation"
[   219.012] 	compiled for 1.11.3, module version = 1.13.0
[   219.012] 	Module class: X.Org Server Extension
[   219.012] 	ABI class: X.Org Server Extension, version 6.0
[   219.012] (II) Loading extension RECORD
[   219.012] (II) LoadModule: "dri"
[   219.012] (WW) Warning, couldn't open module dri
[   219.012] (II) UnloadModule: "dri"
[   219.012] (II) Unloading dri
[   219.012] (EE) Failed to load module "dri" (module does not exist, 0)
[   219.012] (II) LoadModule: "dri2"
[   219.012] (WW) Warning, couldn't open module dri2
[   219.012] (II) UnloadModule: "dri2"
[   219.012] (II) Unloading dri2
[   219.012] (EE) Failed to load module "dri2" (module does not exist, 0)
[   219.012] (II) LoadModule: "nvidia"
[   219.013] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   219.013] (II) Module nvidia: vendor="NVIDIA Corporation"
[   219.013] 	compiled for 4.0.2, module version = 1.0.0
[   219.013] 	Module class: X.Org Video Driver
[   219.081] (II) NVIDIA dlloader X Driver  290.10  Wed Nov 16 17:41:10 PST 2011
[   219.081] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   219.081] (--) using VT number 7

[   219.094] (II) Loading sub module "fb"
[   219.094] (II) LoadModule: "fb"
[   219.094] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   219.094] (II) Module fb: vendor="X.Org Foundation"
[   219.094] 	compiled for 1.11.3, module version = 1.0.0
[   219.094] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   219.094] (II) Loading sub module "wfb"
[   219.094] (II) LoadModule: "wfb"
[   219.094] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[   219.094] (II) Module wfb: vendor="X.Org Foundation"
[   219.094] 	compiled for 1.11.3, module version = 1.0.0
[   219.094] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   219.094] (II) Loading sub module "ramdac"
[   219.094] (II) LoadModule: "ramdac"
[   219.094] (II) Module "ramdac" already built-in
[   219.094] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   219.094] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[   219.094] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   219.094] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   219.094] (==) NVIDIA(0): RGB weight 888
[   219.094] (==) NVIDIA(0): Default visual is TrueColor
[   219.094] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   219.094] (**) NVIDIA(0): Option "TwinView" "0"
[   219.094] (**) NVIDIA(0): Option "MetaModes" "1600x900 +0+0"
[   219.094] (**) NVIDIA(0): Option "UseEvents" "false"
[   219.094] (**) NVIDIA(0): Enabling 2D acceleration
[   228.767] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (DFP-0)) does not support NVIDIA
[   228.767] (II) NVIDIA(GPU-0):     3D Vision stereo.
[   228.770] (II) NVIDIA(0): NVIDIA GPU GeForce GTS 250 (G92) at PCI:1:0:0 (GPU-0)
[   228.770] (--) NVIDIA(0): Memory: 1048576 kBytes
[   228.770] (--) NVIDIA(0): VideoBIOS: 62.92.7d.00.10
[   228.770] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[   228.770] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[   228.770] (--) NVIDIA(0): Connected display device(s) on GeForce GTS 250 at PCI:1:0:0
[   228.770] (--) NVIDIA(0):     Samsung SyncMaster (DFP-0)
[   228.770] (--) NVIDIA(0): Samsung SyncMaster (DFP-0): 330.0 MHz maximum pixel clock
[   228.770] (--) NVIDIA(0): Samsung SyncMaster (DFP-0): Internal Dual Link TMDS
[   231.781] (II) NVIDIA(0): Display Device found referenced in MetaMode: DFP-0
[   231.781] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID has been
[   231.781] (**) NVIDIA(0):     enabled on all display devices.
[   231.793] (II) NVIDIA(0): Assigned Display Device: DFP-0
[   231.793] (II) NVIDIA(0): Validated modes:
[   231.793] (II) NVIDIA(0):     "1600x900+0+0"
[   231.793] (II) NVIDIA(0): Virtual screen size determined to be 1600 x 900
[   231.836] (--) NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
[   231.836] (--) NVIDIA(0):     option
[   231.836] (--) Depth 24 pixmap format is 32 bpp
[   231.837] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
[   231.842] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[   231.842] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[   231.842] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[   231.842] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[   231.842] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[   231.842] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[   231.842] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[   231.842] (II) NVIDIA(0):     Config Options in the README.
[   234.854] (II) NVIDIA(0): Setting mode "1600x900+0+0"
[   236.854] (EE) NVIDIA(0): WAIT: (E, 0, 0x827d)
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-07 11:28:59 UTC
That log looks incomplete, and I said "attach"
Comment 4 acidhell 2012-01-07 11:34:37 UTC
Created attachment 298199 [details]
Xorg.0.log
Comment 5 Gef 2012-01-07 16:59:49 UTC
(In reply to comment #2)
> [   219.002] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or
> directory)
No acpid daemon running ?

> [   236.854] (EE) NVIDIA(0): WAIT: (E, 0, 0x827d)
Try adding the following to kernel command_line : intel_iommu=off
Comment 6 acidhell 2012-01-07 20:36:39 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > [   219.002] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or
> > directory)
> No acpid daemon running ?

I added acpid in boot runlevel
 
> > [   236.854] (EE) NVIDIA(0): WAIT: (E, 0, 0x827d)
> Try adding the following to kernel command_line : intel_iommu=off

I added intel_iommu=off but nothing happened.
Comment 7 acidhell 2012-01-09 23:34:33 UTC
I added acpi=off into the kernel and xorg started successfully. But I can't suspend my system, which makes sense since acpi=off
Comment 8 acidhell 2012-01-10 19:58:59 UTC
I have a ga-990fxa-ud3 rev1 motherboard. I changed the iommy support to disabled, and after that xorg server starts without problems.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-10 21:15:12 UTC
It's not fixed, only worked around
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2012-01-16 14:58:10 UTC
Same problem here on Mac Pro, including kernel 3.2.1. Disabling INTEL_IOMMU_DEFAULT_ON helped (didn't try the kernel cmdline).
Comment 11 John W. Newman 2012-02-09 01:07:30 UTC
I am also experiencing this.  

  GTX570
  kernel 3.2.1
  iommu compiled in
  intel_iommu=on
  nvidia driver version 275 or 290

Upon startx, the nvidia module fails to load.  However in my case the xserver fails gracefully and i'm left back at the console.   

[   202.310] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:3:0:0.  
[   202.310] (EE) NVIDIA(0):     check your system's kernel log for additional e
[   202.310] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problem
[   202.310] (EE) NVIDIA(0):     README for additional information.
[   202.310] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!

I can get any more trace information if you require it.  If I keep the above the same and change intel_iommu to off, X at least will start and normally.

Except:  When I suspend, upon resume the system is completely dead in the water.  alt+sysrq / ssh do not work.  

I am also seeing that same problem regardless of kernel version or settings using v295 of the driver.  With v270, 3.1.6, no iommu present, everything works.  So perhaps those two different problems are somehow related and a clue to a common root cause.
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2012-02-14 16:57:04 UTC
Intel and kernel upstream has said its a bug in Intel's code. Try disabling VTd in your BIOS if you have the option for it and things should improve. Otherwise you'll need to wait until Intel fixes GEM/DRM (their graphics stack).
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2012-06-19 04:26:52 UTC
As I noted in the previous comment, this was a bug with the kernel and Intel's own open source bits in the kernel. Kind of humorous given Linus' antics this weekend regarding NVIDIA.