Bug 26577 - [regression] Black screen with X on NV15 and NV31
Summary: [regression] Black screen with X on NV15 and NV31
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 09:18 UTC by Johannes Obermayr
Modified: 2010-02-15 15:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (15.19 KB, text/plain)
2010-02-15 09:18 UTC, Johannes Obermayr
no flags Details
kdm.log (1.04 KB, text/plain)
2010-02-15 13:28 UTC, Johannes Obermayr
no flags Details

Description Johannes Obermayr 2010-02-15 09:18:24 UTC
Created attachment 33313 [details]
Xorg.0.log

"Offender":

nouveau/xf86-video-nouveau:
author     Francisco Jerez <currojerez@riseup.net>
committer  Francisco Jerez <currojerez@riseup.net>
commit     43524fcbb786c5b9e9ec25776560790aec208719
dri2: Fix crashes on server regeneration.

KMS works properly, in X I see only a black screen with a blinking "_" cursor on top left...

It is on my GeForce 2 GTS (NV11) and GeForce FX 5600 (NV31).
Comment 1 Francisco Jerez 2010-02-15 09:42:53 UTC
Are you using the latest libdrm from git?
Comment 2 Johannes Obermayr 2010-02-15 10:02:13 UTC
libdrm:

commit 4a17be4a86cde1065908576e44f3710f6d9d68af
Author: Alex Deucher <alexdeucher@gmail.com>
Date:   Wed Feb 10 19:39:46 2010 -0500
drm: a some new connector types from the kernel

It is the latest ...
Comment 3 Francisco Jerez 2010-02-15 10:48:04 UTC
(In reply to comment #2)
> libdrm:
> 
> commit 4a17be4a86cde1065908576e44f3710f6d9d68af
> Author: Alex Deucher <alexdeucher@gmail.com>
> Date:   Wed Feb 10 19:39:46 2010 -0500
> drm: a some new connector types from the kernel
> 
> It is the latest ...
> 

Are you sure that's the version you have installed? "nm" should give you something like:
> $ nm /usr/lib/libdrm.so |grep DeviceNameFromFd
> 0000000000007a72 T drmGetDeviceNameFromFd
Comment 4 Johannes Obermayr 2010-02-15 11:31:30 UTC
I built it on openSUSE Build Service ("git pull" on 20100210) and installed it on my system (with -debuginfo and -debugsource packages).

/usr/lib # nm /usr/lib/libdrm.so
nm: /usr/lib/libdrm.so: no symbols

/usr/lib # l *drm*
lrwxrwxrwx 1 root root    21 13. Feb 12:37 libdrm_intel.so -> libdrm_intel.so.1.0.0*
lrwxrwxrwx 1 root root    21 13. Feb 12:31 libdrm_intel.so.1 -> libdrm_intel.so.1.0.0*
-rwxr-xr-x 1 root root 42496 11. Feb 04:08 libdrm_intel.so.1.0.0*
lrwxrwxrwx 1 root root    23 13. Feb 12:37 libdrm_nouveau.so -> libdrm_nouveau.so.1.0.0*
lrwxrwxrwx 1 root root    23 13. Feb 12:31 libdrm_nouveau.so.1 -> libdrm_nouveau.so.1.0.0*
-rwxr-xr-x 1 root root 22064 11. Feb 04:08 libdrm_nouveau.so.1.0.0*
lrwxrwxrwx 1 root root    22 13. Feb 12:37 libdrm_radeon.so -> libdrm_radeon.so.1.0.0*
lrwxrwxrwx 1 root root    22 13. Feb 12:31 libdrm_radeon.so.1 -> libdrm_radeon.so.1.0.0*
-rwxr-xr-x 1 root root 17984 11. Feb 04:08 libdrm_radeon.so.1.0.0*
lrwxrwxrwx 1 root root    15 13. Feb 12:37 libdrm.so -> libdrm.so.2.4.0*
lrwxrwxrwx 1 root root    15 13. Feb 12:31 libdrm.so.2 -> libdrm.so.2.4.0*
-rwxr-xr-x 1 root root 42640 11. Feb 04:08 libdrm.so.2.4.0*


GeForce 2 GTS is NV15 - sorry ...
Comment 5 Francisco Jerez 2010-02-15 11:59:09 UTC
(In reply to comment #4)
> I built it on openSUSE Build Service ("git pull" on 20100210) and installed it
> on my system (with -debuginfo and -debugsource packages).
> 
> /usr/lib # nm /usr/lib/libdrm.so
> nm: /usr/lib/libdrm.so: no symbols
> 

Right, it's stripped, have you tried "nm -D"?
Comment 6 Johannes Obermayr 2010-02-15 12:03:42 UTC
$ nm -D /usr/lib/libdrm.so | grep DeviceNameFromFd
00002b50 T drmGetDeviceNameFromFd
Comment 7 Francisco Jerez 2010-02-15 12:16:24 UTC
(In reply to comment #6)
> $ nm -D /usr/lib/libdrm.so | grep DeviceNameFromFd
> 00002b50 T drmGetDeviceNameFromFd
> 

Anything unusual coming out of stderr from your X server?
Comment 8 Johannes Obermayr 2010-02-15 13:28:33 UTC
Created attachment 33324 [details]
kdm.log

"startx -- -verbose 6 -logverbose 6 2> startx.log" generates an empty file.

But I found attached log in "kdm.log" with "broken" commit.
Comment 9 Francisco Jerez 2010-02-15 13:51:14 UTC
(In reply to comment #8)
> Created an attachment (id=33324) [details]
> kdm.log
> 
> "startx -- -verbose 6 -logverbose 6 2> startx.log" generates an empty file.
> 
> But I found attached log in "kdm.log" with "broken" commit.
> 
> [...]
> /usr/bin/Xorg: symbol lookup error:
> /usr/lib/xorg/modules/drivers/nouveau_drv.so: undefined symbol:
> drmGetDeviceNameFromFd
>

Then /usr/lib/libdrm.so isn't what the linker is pulling in. Are you sure you don't have another libdrm installed somewhere else?
Comment 10 Johannes Obermayr 2010-02-15 15:00:31 UTC
(In reply to comment #9)
> 
> Then /usr/lib/libdrm.so isn't what the linker is pulling in. Are you sure you
> don't have another libdrm installed somewhere else?
> 

There was a second one in /lib/. A "rm -rf /usr/libdrm*" fixed the problem.
(Maybe legacy issues from the time I was young, stupid and much more unexperienced. Nowadays I am only "and" ...)  ;)

Thanks Francisco for your help and patience and sorry for the noise ...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.