Bug 4850

Summary: dri module cannot be loaded in mobility radeon 9200
Product: xorg Reporter: Xavier <xotazu>
Component: Server/Ext/DRIAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: high    
Version: 6.8.99.900 (6.9 RC0)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
/var/log/Xorg.0.log file
none
dmesg output when using 6.8.99.900 version
none
/var/log/Xorg.0.log file
none
log output when i830 module is loaded
none
log outut when both radeon and i830 kernel modules are loaded none

Description Xavier 2005-10-23 14:28:46 UTC
Dri module cannot be loaded for this card. I works correctly for 6.8.2 xorg version.

I attach the /var/log/Xorg.0.log
Comment 1 Xavier 2005-10-23 14:30:18 UTC
Created attachment 3607 [details]
/var/log/Xorg.0.log file
Comment 2 Adam Jackson 2005-10-23 16:01:30 UTC
please post the output of the dmesg command.
Comment 3 Xavier 2005-10-24 04:22:05 UTC
Created attachment 3611 [details]
dmesg output when using 6.8.99.900 version

There is no message associated to radeon or drm module
Comment 4 Shawn Starr 2005-10-24 23:14:30 UTC
(In reply to comment #3)   
> Created an attachment (id=3611) [edit]   
> dmesg output when using 6.8.99.900 version   
>    
> There is no message associated to radeon or drm module   
   
Reporter: Can you try the following:   
   
1. Start without X running   
2. From prompt run lsmod, check to see if drm and radeon are loaded if not try   
the following steps as root.   
   
# modprobe drm   
# modprobe radeon   
   
You should see output to your console. Please append output of the above   
command. If drm fails to load, just report this. Since your running 2.4.31, did  
you build those as modules or as in-kernel? are they listed in your .config? Is 
this a vendor kernel package or source compiled kernel? 
Comment 5 Xavier 2005-10-25 02:55:08 UTC
I realized that I didn't have the radeon kernel module compiled until now!
HEnce, previous messages were using a kernel with no radeon module.

I have compiled the radeon kernel (2.4.31) driver as module (in the DRM 4.1
drivers section).

When performing "modprobe radeon" out of X, I receive the following message
(i.e. the output in /var/log/messages and "dmesg"):

[drm] AGP 0.99 Aperture @ 0xf8000000 64MB
[drm] Initialized radeon 1.7.0 20020828 on minor 0

When trying to perform "modprobe drm" I receive the "modprobe: Can't locate
module drm" message. Kernel 2.4.31 does not have the possibility to define this
module. In the "Direct Redndering Manager (Xfree86 DRI support)" option there is
only the possibility to mark 'y' or 'n'. The only options in the .config file are:

  1043  #
  1044  # Direct Rendering Manager (XFree86 DRI support)
  1045  #
  1046  CONFIG_DRM=y
  1047  # CONFIG_DRM_OLD is not set
  1048  
  1049  #
  1050  # DRM 4.1 drivers
  1051  #
  1052  CONFIG_DRM_NEW=y
  1053  # CONFIG_DRM_TDFX is not set
  1054  # CONFIG_DRM_GAMMA is not set
  1055  # CONFIG_DRM_R128 is not set
  1056  CONFIG_DRM_RADEON=m
  1057  CONFIG_DRM_I810=m
  1058  CONFIG_DRM_I810_XFREE_41=y
  1059  # CONFIG_DRM_I830 is not set
  1060  # CONFIG_DRM_MGA is not set
  1061  # CONFIG_DRM_SIS is not set



After compiling the radeon kernel module, a new problem appears. When activating
the Load "dri" option in the xorg.conf file, I receive a black screen. It is the
same problem I reported in bug 4755. I attach the /varl/log/Xorg.0.log file
(which has a similar end lines as the 4755 bug)
Comment 6 Xavier 2005-10-25 02:58:49 UTC
Created attachment 3623 [details]
/var/log/Xorg.0.log file

This is the output when introducing Load "dri" in the xorg.conf file, when
there is an existing radeon module kernel. Screen becomes black, but I can go
out of X and reboot machine with Ctrl+Alt+Backspace and Ctrl+Alt+Del
Comment 7 Shawn Starr 2005-10-25 08:23:15 UTC
(In reply to comment #6)
> Created an attachment (id=3623) [edit]
> /var/log/Xorg.0.log file
> 
> This is the output when introducing Load "dri" in the xorg.conf file, when
> there is an existing radeon module kernel. Screen becomes black, but I can go
> out of X and reboot machine with Ctrl+Alt+Backspace and Ctrl+Alt+Del

>When trying to perform "modprobe drm" I receive the "modprobe: Can't locate
>module drm" message

Did you do a depmod -a once done? If you try to specify 'm' does it allow when
you build the kernel? It's been a while since I've looked at a 2.4 kernel build.   

Did you also compile the correct agpgart driver? Can you append your lspci
information to the bug? 

Thanks
Comment 8 Xavier 2005-10-25 08:34:02 UTC
I didn't do a depmod. I simply reboot the machine, which always worked for me
(because it is in the /etc/rc.d/rc.modules file) when reinstaling the kernel.

I didn't try to manually define 'm' in the .config file because it was not
available in the kernel configuration menu (i.e. when executing 'make xconfig').
I will try in some moments and I will tell you.

I compiled the agpgart driver that there is in the 2.4.31 kernel as a module. In
fact, it appears when I do a 'lsmod': 

agpgart                32232   0  (unused)


This is the output of the lspci command:

00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM
Controller/Host-Hub Interface (rev 01)
00:01.0 PCI bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE Host-to-AGP Bridge
(rev 01)
00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 01)
00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge
(rev 81)
00:1f.0 ISA bridge: Intel Corp. 82801DB (ICH4) LPC Bridge (rev 01)
00:1f.1 IDE interface: Intel Corp. 82801DB (ICH4) Ultra ATA 100 Storage
Controller (rev 01)
00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio
Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200] (rev 01)
01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200] (Secondary)
(rev 01)
02:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet
Controller (rev 81)
Comment 9 Shawn Starr 2005-10-25 08:41:14 UTC
Do you have i830.o compiled in or as module? Since you have an Intel chipset you
need the AGP driver itself.
Comment 10 Xavier 2005-10-25 09:55:00 UTC
I modified the .config file including 'm' on the drm modules. I do not obtain
any drm module.

I also performed the 'depmod -a' but there is no difference with previous behaviour.

I didn't compiled the i830 driver. I am going to compile it as module and will
tell you.
Comment 11 Xavier 2005-10-25 10:14:35 UTC
I loaded the i830 module, but no difference in behaviour. I also loaded radeon,
but it is the same. I attach log output when i830 kernel module is loaded

What do you mean that I need the agp driver? I have the agpgart module loaded.
Comment 12 Xavier 2005-10-25 10:16:56 UTC
Created attachment 3625 [details]
log output when i830 module is loaded
Comment 13 Xavier 2005-10-25 10:17:51 UTC
Created attachment 3626 [details]
log outut when both radeon and i830 kernel modules are loaded
Comment 14 Xavier 2005-10-25 10:23:08 UTC
In the .config kernel file there is


  1031  CONFIG_AGP=m
  1032  CONFIG_AGP_INTEL=y
  1033  CONFIG_AGP_I810=y
  1034  # CONFIG_AGP_VIA is not set
  1035  # CONFIG_AGP_AMD is not set
  1036  # CONFIG_AGP_AMD_K8 is not set
  1037  # CONFIG_AGP_SIS is not set
  1038  # CONFIG_AGP_ALI is not set
  1039  # CONFIG_AGP_SWORKS is not set
  1040  CONFIG_AGP_NVIDIA=y
  1041  CONFIG_AGP_ATI=y
Comment 15 Shawn Starr 2005-10-25 12:18:08 UTC
I would suggest coming to irc freenode #freedesktop as this would be easier to
debug.
Comment 16 Xavier 2005-10-26 03:44:07 UTC
Since this problem is similar to the one in bug 4755, I guess there is some
incompatibility of dri and/or radeon modules of 6.8.99.900 with 2.4.x kernel.

I never used a freenode using irc. I am going to try to connect to discuss online.
Comment 17 Erik Andren 2006-06-01 08:29:10 UTC
Are you still experiencing this with a current version of xorg? (ie 7.1)
Comment 18 Erik Andren 2006-07-28 10:05:18 UTC
Closing due to the lack of activity from the bug poster. 

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.