[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#369167: DRI probably broken: where to reportbug



Hi Michel

Short version first:

The modules built fine, IINM.
But X still crashes most of the instances where I try starting KDM
with dri loaded via xorg.conf

On Mon, Jun 05, 2006 at 06:33:04PM +0200, Michel Dänzer wrote:
> On Mon, 2006-06-05 at 18:19 +0200, Wolfgang Pfeiffer wrote:
> > 

           [ .. ]

> > make[1]: *** [_module_/home/shorty/kernel-factory/git/modules/drm/drm/linux-core
> > ] Error 2
> > make[1]: Leaving directory `/home/shorty/kernel-factory/git/linux-2.6'
> > make: *** [modules] Error 2
> 
> You don't need the savage DRM. Try
> 
> make DRM_MODULES=radeon


$ pwd
/home/shorty/kernel-factory/git/modules/drm/drm/linux-core

$ MAKEFLAGS="CC=gcc-4.1" make DRM_MODULES=radeon

$ MAKEFLAGS="CC=gcc-4.1" make DRM_MODULES=radeon

ends like:

----------------------
.o
  CC [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon_drv.
o
  CC [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon_cp.o
  CC [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon_stat
e.o
  CC [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon_mem.
o
  CC [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon_irq.
o
  CC [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/r300_cmdbuf
.o
  LD [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/drm.o
  LD [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon.o
  Building modules, stage 2.
  MODPOST
WARNING: /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/drm.o - Sect
ion mismatch: reference to .exit.text:drm_cleanup_pci from __ksymtab between '__
ksymtab_drm_cleanup_pci' (at offset 0x50) and '__ksymtab_drm_init'
WARNING: /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/drm.o - Sect
ion mismatch: reference to .exit.text:drm_exit from __ksymtab between '__ksymtab
_drm_exit' (at offset 0x60) and '__ksymtab_drm_ioctl'
  CC      /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/drm.mod.o
  LD [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/drm.ko
  CC      /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon.mod.
o
  LD [M]  /home/shorty/kernel-factory/git/modules/drm/drm/linux-core/radeon.ko
make[1]: Leaving directory `/home/shorty/kernel-factory/git/linux-2.6'
----------------------------


$ ls *.ko
drm.ko  radeon.ko

As root:

# cd /home/shorty/kernel-factory/git/modules/drm/drm/linux-core
[root@ 19:09:17]# ls *.ko
drm.ko  radeon.ko
[root@ 19:09:52]# cp *.ko /lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/drivers/char/drm/
cp: overwrite `/lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/drivers/char/drm/drm.ko'? y
`drm.ko' -> `/lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/drivers/char/drm/drm.ko'
cp: overwrite `/lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/drivers/char/drm/radeon.ko'? y
`radeon.ko' -> `/lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/drivers/char/drm/radeon.ko'


# depmod -a 

Moment of truth:

I enable DRM in xorg.conf (that is 'Load "dri"'), rebooting ...


After booting it worked to get a graph. KDM login screen.

Trying to restart the xserver  - before even trying to login to KDE -fails:

Time of the crash, after restarting the xserver from the KDE Login window
(ssh-ed the following):

[  135.386011] [drm] Initialized radeon 1.25.0 20060524 on minor 0: 
[  135.386041] [drm] Used old pci detect: framebuffer loaded
[  136.306521] agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
[  136.306535] agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
[  136.378439] [drm] Setting GART location based on old memory map
[  136.378458] [drm] Loading R300 Microcode
[  136.378525] [drm] writeback test succeeded in 1 usecs
[  160.288363] agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
[  160.288381] agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
[  160.303921] [drm] Setting GART location based on old memory map
[  160.303947] [drm] Loading R300 Microcode
[  160.315053] [drm] writeback test failed


Next time (after reboot) even the first try to start kdm failed:

/var/log/kern.log:

Jun  5 19:36:38 debby1-6 kernel: [  122.156765] NFSD: starting 90-second grace p
eriod
Jun  5 19:36:43 debby1-6 kernel: [  126.566430] eth0: no IPv6 routers present
Jun  5 19:37:42 debby1-6 kernel: [  185.736258] [drm] Initialized drm 1.0.1 2005
1102
Jun  5 19:37:42 debby1-6 kernel: [  185.767143] [drm] Initialized radeon 1.25.0 
20060524 on minor 0: 
Jun  5 19:37:42 debby1-6 kernel: [  185.767184] [drm] Used old pci detect: frame
buffer loaded
Jun  5 19:37:43 debby1-6 kernel: [  186.671925] agpgart: Putting AGP V2 device a
t 0000:00:0b.0 into 4x mode
Jun  5 19:37:43 debby1-6 kernel: [  186.671939] agpgart: Putting AGP V2 device a
t 0000:00:10.0 into 4x mode
Jun  5 19:37:43 debby1-6 kernel: [  186.710512] [drm] Setting GART location base
d on old memory map
Jun  5 19:37:43 debby1-6 kernel: [  186.710532] [drm] Loading R300 Microcode
Jun  5 19:37:43 debby1-6 kernel: [  186.710591] [drm] writeback test succeeded i
n 1 usecs


dmesg:

[  116.074982] NET: Registered protocol family 10
[  116.083199] lo: Disabled Privacy Extensions
[  116.091584] IPv6 over IPv4 tunneling driver
[  122.009043] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[  122.129322] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[  122.156765] NFSD: starting 90-second grace period
[  126.566430] eth0: no IPv6 routers present
[  185.736258] [drm] Initialized drm 1.0.1 20051102
[  185.767143] [drm] Initialized radeon 1.25.0 20060524 on minor 0: 
[  185.767184] [drm] Used old pci detect: framebuffer loaded
[  186.671925] agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
[  186.671939] agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
[  186.710512] [drm] Setting GART location based on old memory map
[  186.710532] [drm] Loading R300 Microcode
[  186.710591] [drm] writeback test succeeded in 1 usecs
[root@ 19:40:34]# 

Please note I can't wait too long after the crash to reboot the
machine via ssh, because the system on the crashed machine slows down
more and more, the longer I wait, until the brink of becoming
unresponsive via the xterm I use for logging into the crashing system
...

Hints? Extra flags for the drivers for
/etc/modutils/local?


/etc/modutils/local, currently:
-----------------------------------
#options ieee1394 disable_irm=1
#options sbp2 serialize_io=0 max_speed=2

# new 2006.05.29:
pre-install radeon /sbin/modprobe "-k" "agpgart"
pre-install agpgart /sbin/modprobe "-k" "uninorth_agp"
# end new
------------------------------------

Best regards
Wolfgang

-- 
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on



Reply to: