Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > X.Org & Mesa

X.Org & Mesa Discussion of X.Org and Mesa / Gallium3D. This includes the discussion of the X Server, RandR, OpenGL, Kernel-based Mode-Setting, and other X components not covered by other forums.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2008, 07:14 PM
RealNC RealNC is offline
Senior Member
 
Join Date: Jul 2008
Location: Greece
Posts: 1,169
Default Latest X11 DRM modules won't load with kernel 2.6.25

The latest DRM kernel modules from git master build fine but won't load with kernel 2.6.25.11. A "modprobe drm" results in:

drm: Unknown symbol shmem_file_setup

Not sure how to resolve this.
Reply With Quote
  #2  
Old 08-09-2008, 07:48 PM
Kano Kano is online now
Debian Developer
 
Join Date: Aug 2007
Posts: 2,894
Default

You usually have parts of the drm modules already loaded, reboot and it should work.
Reply With Quote
  #3  
Old 08-09-2008, 07:51 PM
bridgman bridgman is offline
AMD Linux
 
Join Date: Oct 2007
Posts: 3,477
Default

It looks like the shmem_file_setup reference was added during the GEM merge over the last couple of days. You might want to mention this on the #dri-devel IRC or mailing list. It may be as simple as needing another package to support shmfs but I'm guessing there.

Last edited by bridgman; 08-09-2008 at 07:54 PM.
Reply With Quote
  #4  
Old 08-09-2008, 07:58 PM
bridgman bridgman is offline
AMD Linux
 
Join Date: Oct 2007
Posts: 3,477
Default

I'm not up on the details but it looks like some bits were added late in 2.6.26 to support GEM and this call was one of the ones mentioned.
Reply With Quote
  #5  
Old 08-09-2008, 07:58 PM
RealNC RealNC is offline
Senior Member
 
Join Date: Jul 2008
Location: Greece
Posts: 1,169
Default

Quote:
Originally Posted by Kano View Post
You usually have parts of the drm modules already loaded, reboot and it should work.
Unfortunately, nope; this wasn't the problem.

Quote:
Originally Posted by bridgman View Post
Not 100% sure but it looks like the shmem_file_setup reference was added during the GEM merge over the last couple of days. You might want to mention this on the #dri-devel IRC or mailing list.
I've emailed dri-users@lists.sourceforge.net.

I've found this: http://www.opensubscriber.com/messag...t/9353749.html

Not sure what's going on exactly. Does that mean an upstream patch to mm/shmem.c is required?
Reply With Quote
  #6  
Old 08-09-2008, 08:02 PM
Kano Kano is online now
Debian Developer
 
Join Date: Aug 2007
Posts: 2,894
Default

It looks like that 2.6.26.3 could add that hotfix Well in that case you have to compile your kernel on your own with that added EXPORT_SYMBOL(shmem_file_setup).
Reply With Quote
  #7  
Old 08-09-2008, 08:13 PM
RealNC RealNC is offline
Senior Member
 
Join Date: Jul 2008
Location: Greece
Posts: 1,169
Default

This looks innocent enough so I've added the export. The modules load fine now. I really hope this gets backported to 2.6.25 since 2.6.26 has IRQ problems with my graphics card :P
Reply With Quote
  #8  
Old 08-10-2008, 08:55 PM
butdie butdie is offline
Junior Member
 
Join Date: Sep 2007
Posts: 24
Default my r500 gets blank screen with 2.6.26

with 2.6.26, the screen goes blank when startx, and a reboot is required before I could see anything on screen

now, drm module won't load with 2.6.25

is the open source support being downgraded to fglrx level?

Quote:
Originally Posted by RealNC View Post
This looks innocent enough so I've added the export. The modules load fine now. I really hope this gets backported to 2.6.25 since 2.6.26 has IRQ problems with my graphics card :P
Reply With Quote
  #9  
Old 08-10-2008, 09:07 PM
RealNC RealNC is offline
Senior Member
 
Join Date: Jul 2008
Location: Greece
Posts: 1,169
Default

I had other problems with 2.6.26 but not the one you describe. In any event, this *is* supposed to work with 2.6.26.

It is natural for the module not to load with 2.6.25; you must compile it against the same kernel you're running. That is, when compiling the modules, make sure /usr/src/linux points to the correct kernel source version.
Reply With Quote
  #10  
Old 08-10-2008, 09:27 PM
butdie butdie is offline
Junior Member
 
Join Date: Sep 2007
Posts: 24
Default

the 2.6.25 issue being fixed in mesa/drm -git

Quote:
Originally Posted by RealNC View Post
I had other problems with 2.6.26 but not the one you describe. In any event, this *is* supposed to work with 2.6.26.

It is natural for the module not to load with 2.6.25; you must compile it against the same kernel you're running. That is, when compiling the modules, make sure /usr/src/linux points to the correct kernel source version.
Reply With Quote
Reply

Thread Tools
Display Modes

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:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.