NetBSD-Bugs archive

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

Re: kern/49710: i386 radeondrmkms panic when starting Xorg



The following reply was made to PR kern/49710; it has been noted by GNATS.

From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49710: i386 radeondrmkms panic when starting Xorg
Date: Tue, 3 Mar 2015 21:50:56 -0600 (CST)

 With the latest round of fixes, i386 radeondrmkms no-longer panics if
 using accleration in Xorg (no "xorg.conf" file at all).
 
 It doesn't produce a usable display, either, however.  Upon starting Xorg,
 the X cursor is displayed, but the framebuffer console cursor is still
 present in the upper left corner of the screen.  The X cursor responds
 to mouse motion as expected.  I couldn't test button presses.
 
 One can launch X clients and direct them to the display, but their
 windows never appear.
 
 Below are "dmesg" excerpts and a sample session.  The X server cannot
 be killed with SIGTERM.  Sending SIGKILL makes the system unresponsive.
 Since the console was on serial port, I could get a backtrace, etc. and
 reboot the machine.
 
 
 NetBSD 7.99.5 (SLAB) #1: Tue Mar  3 18:26:53 CST 2015
 	sysop%skuld.technoskunk.fur@localhost:/d0/build/current/obj/i386/sys/arch/i386/compile/SLAB
 [...]
 acpivga0 at acpi0 (VID): ACPI Display Adapter
 acpiout0 at acpivga0 (LCD0, 0x0110): ACPI Display Output Device
 acpiout1 at acpivga0 (CRT0, 0x0100): ACPI Display Output Device
 acpiout2 at acpivga0 (TV0, 0x0200): ACPI Display Output Device 
 acpiout3 at acpivga0 (DVI0, 0x0210): ACPI Display Output Device
 [...]
 pchb0 at pci0 dev 0 function 0: Intel 82845 Host (rev. 0x04)
 agp0 at pchb0: aperture at 0xe0000000, size 0x4000000       
 ppb0 at pci0 dev 1 function 0: Intel 82845 AGP (rev. 0x04)
 pci1 at ppb0 bus 1                                        
 radeon0 at pci1 dev 0 function 0: ATI Technologies FireGL Mobility 7800 M7 LX (rev. 0x00)
 [...]
 drm: initializing kernel modesetting (RV200 0x1002:0x4C58 0x1014:0x0518).
 drm: register mmio base: 0xd0100000                                      
 drm: register mmio size: 65536     
 radeon0: info: GTT: 64M 0xE0000000 - 0xE3FFFFFF
 radeon0: info: VRAM: 128M 0x00000000E8000000 - 0x00000000EFFFFFFF (64M used)
 drm: Detected VRAM RAM=80M, BAR=128M                                        
 drm: RAM width 128bits DDR          
 Zone  kernel: Available graphics memory: 801208 kiB
 drm: radeon: 64M of VRAM memory ready              
 drm: radeon: 64M of GTT memory ready.
 radeon0: info: WB disabled           
 radeon0: info: fence driver on ring 0 use gpu addr 0x00000000e0000000 and cpu addr 0x0xdb4ed000
 drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
 drm: Driver supports precise vblank timestamp query.      
 radeon0: interrupting at irq 9 (radeon)             
 drm: radeon: irq initialized.          
 drm: Loading R100 Microcode  
 drm: radeon: ring at 0x00000000E0001000
 drm: ring test succeeded in 0 usecs    
 drm: ib test succeeded in 0 usecs  
 drm: Panel ID String: 1600x1200               
 drm: Panel Size 1600x1200                     
 drm: No TV DAC info found in BIOS
 drm: Radeon Display Connectors   
 drm: Connector 0:             
 drm:   VGA-1     
 drm:   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
 drm:   Encoders:                                   
 drm:     CRT1: INTERNAL_DAC1
 drm: Connector 1:           
 drm:   DVI-D-1   
 drm:   HPD1   
 drm:   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
 drm:   Encoders:                                   
 drm:     DFP1: INTERNAL_TMDS1
 drm: Connector 2:            
 drm:   LVDS-1    
 drm:   Encoders:
 drm:     LCD1: INTERNAL_LVDS
 drm: Connector 3:           
 drm:   SVIDEO-1  
 drm:   Encoders:
 drm:     TV1: INTERNAL_DAC2
 radeondrmkmsfb0 at radeon0 
 radeon0: info: registered panic notifier
 wsdisplay0 at radeondrmkmsfb0 kbdmux 1  
 [...]
 $ X -retro & sleep 2 ; xterm -display :0 &
 [1] 73
 
 X.Org X Server 1.10.6
 Release Date: 2011-07-08
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386  - 
 Current Operating System: NetBSD slab 7.99.5 NetBSD 7.99.5 (SLAB) #1: Tue Mar  3 18:26:53 CST 2015  sysop%skuld.technoskunk.fur@localhost:/d0/build/current/obj/i386/sys/arch/i386/compile/SLAB i386
 Build Date: 01 August 2011  01:01:00AM
  
 Current version of pixman: 0.32.6
         Before reporting problems, check http://wiki.X.Org
         to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar  3 21:12:41 2015
 (==) Using default built-in configuration (21 lines)
 (II) [KMS] Kernel modesetting enabled.
 [2] 82
 The XKEYBOARD keymap compiler (xkbcomp) reports:
 > Error:            Couldn't lookup keysym
 >                   Symbol interpretation ignored
 > Error:            Couldn't lookup keysym
 >                   Symbol interpretation ignored
 Errors from xkbcomp are not fatal to the X server
 
 [mi] EQ overflowing. The server is probably stuck in an infinite loop.
 
 1027 [sysop@slab:~]$ ps ax
  PID TTY   STAT    TIME COMMAND
    0 ?     DKl  0:02.44 [system]
    1 ?     Is   0:00.02 init 
   73 ?     S    0:00.86 X -retro (Xorg)
  412 ?     Is   0:00.00 /sbin/dhcpcd -n -qM fxp0 
  657 ?     Is   0:00.08 /usr/sbin/syslogd -P /var/run/syslogd.sockets -s 
  708 ?     Ss   0:00.53 /usr/sbin/rpcbind -l 
  856 ?     Ss   0:00.13 /usr/sbin/amd -l syslog -x error,noinfo,nostats -p -a /
 1181 ?     Ss   0:00.12 /usr/sbin/ntpd -u ntpd:ntpd -i /var/chroot/ntpd -p /var
 1381 ?     Is   0:00.01 /usr/sbin/lpd -s 
 1423 ?     Is   0:00.01 /usr/sbin/sshd 
 1486 ?     Is   0:00.00 /usr/sbin/powerd 
 1497 ?     S    0:00.04 pickup -l -t unix -u 
 1754 ?     I    0:00.04 qmgr -l -t unix -u 
 2075 ?     Ss   0:00.03 /usr/libexec/postfix/master -w 
 2156 ?     Ss   0:00.01 /usr/sbin/cron 
 2229 ?     Is   0:00.00 /usr/sbin/inetd -l 
  104 pts/0 Is+  0:00.02 ksh 
   42 tty00 S    0:00.03 -ksh 
   82 tty00 I    0:00.10 xterm 
 2477 tty00 Is   0:00.15 login 
 2694 tty00 O+   0:00.01 ps -ax 
 2454 ttyE0 Is+  0:00.01 /usr/libexec/getty Pc ttyE0 
 2247 ttyE1 Is+  0:00.01 /usr/libexec/getty Pc ttyE1 
 2576 ttyE2 Is+  0:00.01 /usr/libexec/getty Pc ttyE2 
 2302 ttyE3 Is+  0:00.01 /usr/libexec/getty Pc ttyE3 
 
 1028 [sysop@slab:~]$ top | cat
 
 load averages:  0.41,  0.24,  0.10;               up 0+00:03:25        21:14:30
 26 processes: 1 runnable, 24 sleeping, 1 on CPU
 CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
 Memory: 76M Act, 19M Wired, 19M Exec, 46M File, 1875M Free
 Swap: 4096M Total, 4096M Free
 
   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
     0 root      43    0     0K   24M RUN        0:02  0.00%  0.00% [system]
  1523 sysop     43    0  3744K 1488K CPU        0:00  0.00%  0.00% top
    73 sysop     85    0    31M   11M radfence   0:00  0.00%  0.00% Xorg
  1181 ntpd      85    0  6676K 8728K pause      0:00  0.00%  0.00% ntpd
   856 root      85    0  6292K 8344K select     0:00  0.00%  0.00% amd
    82 sysop     85    0  7496K 4428K select     0:00  0.00%  0.00% xterm
  1754 postfix   85    0  8868K 3348K kqueue     0:00  0.00%  0.00% qmgr
  1497 postfix   85    0  8868K 3336K kqueue     0:00  0.00%  0.00% pickup
  2477 root      85    0  7440K 3080K wait       0:00  0.00%  0.00% login
  2075 root      85    0  8868K 2196K kqueue     0:00  0.00%  0.00% master
   657 root      85    0  6200K 1820K kqueue     0:00  0.00%  0.00% syslogd
   104 sysop     85    0  3368K 1364K ttyraw     0:00  0.00%  0.00% ksh
    42 sysop     85    0  3364K 1348K pause      0:00  0.00%  0.00% ksh
  2156 root      85    0  3464K 1280K nanoslp    0:00  0.00%  0.00% cron
  2302 root      85    0  3520K 1212K ttyraw     0:00  0.00%  0.00% getty
  2576 root      85    0  3520K 1212K ttyraw     0:00  0.00%  0.00% getty
  2247 root      85    0  3520K 1212K ttyraw     0:00  0.00%  0.00% getty
  2454 root      85    0  3520K 1208K ttyraw     0:00  0.00%  0.00% getty
   708 root      85    0  3496K 1172K select     0:00  0.00%  0.00% rpcbind
   412 root      85    0  3376K 1144K select     0:00  0.00%  0.00% dhcpcd
  1381 root      85    0  3404K 1128K select     0:00  0.00%  0.00% lpd
  1486 root      85    0  3532K  948K kqueue     0:00  0.00%  0.00% powerd
  2359 sysop     85    0  3364K  856K pipe_rd    0:00  0.00%  0.00% cat
  1423 root      84    0  8932K 2316K select     0:00  0.00%  0.00% sshd
  2229 root      84    0  3556K  972K kqueue     0:00  0.00%  0.00% inetd
     1 root      83    0  3504K 1224K wait       0:00  0.00%  0.00% init
 
 $ pkill -KILL X
 
 [unresponsive]
 [BREAK sent]
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c02516b4 cs 8 eflags 202 cr2 bbae74f8 ilevel 8 esp da780f6c
 curlwp 0xc38e0d40 pid 73 lid 1 lowest kstack 0xdb4d72c0
 Stopped in pid 73.1 (Xorg) at   netbsd:breakpoint+0x4:  popl    %ebp
 db{0}> bt                                                           
 breakpoint(c0aebac0,3f8,5,c0b3e400,c0b3e400,c046b3ee,c34b0608,c34b0580,c34de164,
 c34df000) at netbsd:breakpoint+0x4                                             
 comintr(c34b04c8,db4d9c58,0,0,0,0,0,0,0,0) at netbsd:comintr+0x5d5
 --- switch to interrupt stack ---                                 
 Xintr_legacy4() at netbsd:Xintr_legacy4+0xc3
 --- interrupt ---                           
 mutex_spin_enter(c2fddb54,c2fddb50,32,bffb,0,0,c0000000,1003fff,c2fdd8c0,db4d9d7
 0) at netbsd:mutex_spin_enter+0x31                                             
 radeon_fence_wait_seq(c2fdd870,c2fdd000,5,0,5,0,0,0,0,0) at netbsd:radeon_fence_
 wait_seq+0x125                                                                 
 radeon_fence_wait(c3b1fabc,1,1,c96210,1,c2fdd701,c3b1fabc,c3836184,0,c383610c) a
 t netbsd:radeon_fence_wait+0x6b                                                
 ttm_bo_wait(c383613c,1,1,0,c383613c,c2fdd000,c3836298,c383610c,db4d9e44,c061b8cb
 ) at netbsd:ttm_bo_wait+0x8a                                                   
 radeon_bo_wait(c383610c,0,0,0,0,0,0,c0937bb0,c3c961f8,c374c70c) at netbsd:radeon
 _bo_wait+0xac                                                                  
 radeon_gem_wait_idle_ioctl(c374c70c,db4d9eb0,c3c961f8,0,0,0,db4d9f68,c3f9e400,0,
 db4d9f3c) at netbsd:radeon_gem_wait_idle_ioctl+0x4b                            
 drm_ioctl(c3f9e400,80086464,db4d9eb0,0,0,0,0,0,8,0) at netbsd:drm_ioctl+0x11d
 sys_ioctl(c38e0d40,db4d9f68,db4d9f60,7ce5a000,c360e960,c0b126c8,db4d9f68,0,0,b) a
 t netbsd:sys_ioctl+0x1ae
 syscall() at netbsd:syscall+0x82
 --- syscall (number 54) ---     
 bb771f77:                  
 db{0}> sh reg
 ds          c2fb0010
 es          c0440010    lwp_startup+0x1b0
 fs          da780030                     
 gs          c0ae0010    loc+0x390
 edi         800                  
 esi         100
 ebp         da780f28
 ebx         c34b04c8
 edx         3f9     
 ecx         8c6
 eax         1  
 eip         c02516b4    breakpoint+0x4
 cs          8                         
 eflags      202
 esp         da780f28
 ss          10      
 netbsd:breakpoint+0x4:  popl    %ebp
 db{0}>
 
 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645
 


Home | Main Index | Thread Index | Old Index