bad karma between mouse and ati6 driver

Richard PALO richard at netbsd.org
Tue Nov 24 08:36:58 PST 2015


Looking for advice on the following.
> ...
> [  4175.385] (II) RADEON(1): RADEONScreenInit d0000000 0 0
> [  4175.522] (II) RADEON(1): Dynamic Power Management Disabled
> [  4175.522] mc fb loc is 00df00d0
> [  4175.522] (II) RADEON(1): RADEONInitMemoryMap() : 
> [  4175.523] (II) RADEON(1):   mem_size         : 0x10000000
> [  4175.523] (II) RADEON(1):   MC_FB_LOCATION   : 0x00df00d0
> [  4175.523] (II) RADEON(1):   MC_AGP_LOCATION  : 0x003f0000
> [  4175.523] (II) RADEON(1): Depth moves disabled by default
> [  4175.531] (II) RADEON(1): RADEONRestoreMemMapRegisters() : 
> [  4175.531] (II) RADEON(1):   MC_FB_LOCATION   : 0x00df00d0 0x0f3f0f00
> [  4175.531] (II) RADEON(1):   MC_AGP_LOCATION  : 0x003f0000
> [  4175.542] (==) RADEON(1): Backing store enabled
> [  4175.542] (WW) RADEON(1): Direct rendering disabled
> [  4175.542] (II) RADEON(1): Acceleration enabled
> [  4175.542] (==) RADEON(1): DPMS enabled
> [  4175.542] (==) RADEON(1): Silken mouse disabled
> [  4175.542] (EE) RADEON(1): Hardware cursor initialization failed
> [  4175.542] (II) RADEON(1): Using software cursor
> [  4175.542] (II) RADEON(1): Textured video requires CP on R5xx/R6xx/R7xx/IGP
> [  4175.550] (II) RADEON(1): RADEONRestoreMemMapRegisters() : 
> [  4175.551] (II) RADEON(1):   MC_FB_LOCATION   : 0x00df00d0 0x00df00d0
> [  4175.551] (II) RADEON(1):   MC_AGP_LOCATION  : 0x003f0000
> [  4175.561] (II) RADEON(1): crtc(0) Clock: mode 94500, PLL 945000
> [  4175.561] (II) RADEON(1): crtc(0) PLL  : refdiv 2, fbdiv 0x54(84), fracfbdiv 0, pdiv 12
> [  4175.642] (II) RADEON(1): RandR 1.2 enabled, ignore the following RandR disabled message.
> [  4175.643] (--) RandR disabled
> [  4175.666] (II) AIGLX: Screen 0 is not DRI2 capable
> [  4175.666] (EE) AIGLX: reverting to software rendering
> [  4175.672] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
> [  4175.674] (II) AIGLX: Loaded and initialized swrast
> [  4175.674] (II) GLX: Initialized DRISWRAST GL provider for screen 0
> [  4175.674] (II) AIGLX: Screen 1 is not DRI2 capable
> [  4175.674] (EE) AIGLX: reverting to software rendering
> [  4175.675] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
> [  4175.677] (II) AIGLX: Loaded and initialized swrast
> [  4175.677] (II) GLX: Initialized DRISWRAST GL provider for screen 1
> [  4175.678] (II) RADEON(1): Setting screen physical size to 270 x 203
> [  4176.197] (II) Using input driver 'mouse' for 'Mouse0'
> [  4176.197] (**) Option "CorePointer"
> [  4176.197] (**) Mouse0: always reports core events
> [  4176.198] (**) Option "Protocol" "auto"
> [  4176.198] (**) Option "Device" "/dev/mouse"
> [  4176.198] (II) Mouse0: Setting Device option to "/dev/mouse"
> [  4176.202] (**) Mouse0: Protocol: "VUID"
> [  4176.203] (**) Mouse0: always reports core events
> [  4176.203] (**) Option "Device" "/dev/mouse"
> [  4176.203] (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
> [  4176.203] (**) Option "ZAxisMapping" "4 5 6 7"
> [  4176.203] (**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
> [  4176.203] (**) Mouse0: Buttons: 11
> [  4176.203] (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE, id 6)
> [  4176.203] (EE) Dynamic loader error: ld.so.1: Xorg: fatal: _ex_unwind: can't find symbol
> [  4176.204] (EE) 
> [  4176.204] (EE) Backtrace:
> [  4176.204] (EE) 0: /opt/local/bin/Xorg (xorg_backtrace+0x49) [0x80d18b9]
> [  4176.204] (EE) 1: /opt/local/bin/Xorg (OsSigHandler+0x58) [0x80d7308]
> [  4176.204] (EE) 2: /lib/libc.so.1 (__sighndlr+0x15) [0xfe8da395]
> [  4176.205] (EE) 3: /lib/libc.so.1 (call_user_handler+0x292) [0xfe8ced03]
> [  4176.205] (EE) 4: /opt/local/bin/Xorg (xf86_wrap_crtc_notify+0x37) [0x812c287]
> [  4176.205] (EE) 5: /opt/local/lib/xorg/modules/input/mouse_drv.so (vuidMouseProc+0x3b0) [0xfd9ea2f0]
> [  4176.205] (EE) 6: /opt/local/bin/Xorg (ActivateDevice+0x44) [0x8091734]
> [  4176.205] (EE) 7: /opt/local/bin/Xorg (xf86NewInputDevice+0x20f) [0x8102d8f]
> [  4176.205] (EE) 8: /opt/local/bin/Xorg (InitInput+0x9f) [0x80f4a6f]
> [  4176.205] (EE) 9: /opt/local/bin/Xorg (dix_main+0x399) [0x80a0819]
> [  4176.206] (EE) 10: /opt/local/bin/Xorg (main+0x2a) [0x80e2cba]
> [  4176.206] (EE) 11: /opt/local/bin/Xorg (_start+0x83) [0x808b253]
> [  4176.206] (EE) 
> [  4176.206] (EE) Segmentation Fault at address 0x7c
> [  4176.206] (EE) 
> Fatal server error:
> [  4176.206] (EE) Caught signal 11 (Segmentation Fault). Server aborting
> [  4176.206] (EE) 
> [  4176.207] (EE) 

This is xorg server 1.17.4 running on SunOS 5.11 pkgsrc i386, I'm trying to load ati6 (DRI1 driver maintained in pkgsrc) for a r5450 card along with my builtin mga200 on a SuperMicro mainboard.
(unfortunately my previous geforce card died, it worked fine with 'nv' and the nVidia replacement
needs 'nouveau' will have to wait a bit for KMS on my particular platform).

The ati card details:
> 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] (prog-if 00 [VGA controller])
> 	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 2127
> 	Flags: bus master, fast devsel, latency 0, IRQ 10
> 	Memory at d0000000 (64-bit, prefetchable)
> 	Memory at fe8c0000 (64-bit, non-prefetchable)
> 	I/O ports at c000
> 	Expansion ROM at fe8a0000 [disabled]
> 	Capabilities: [50] Power Management version 3
> 	Capabilities: [58] Express Legacy Endpoint, MSI 00
> 	Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+

If I force vesa instead of radeon, then things are fine.

This seems to be the area indicated in the backtrace:
>         if (vuidMouseGeneration != serverGeneration) {
>                 for (i = 0; i < screenInfo.numScreens; i++) {
>                     ScreenPtr pScreen = screenInfo.screens[i];
>                     ScrnInfoPtr pScrn = XF86SCRNINFO(pScreen);
>                     if (xf86CrtcConfigPrivateIndex != -1) {
>                         xf86_crtc_notify_proc_ptr pCrtcNotify
>                             = xf86_wrap_crtc_notify(pScreen,
>                                                     vuidMouseCrtcNotify);
>                         vuidMouseSetScreenPrivate(pScreen, pCrtcNotify);
>                     } else {
>                         vuidMouseSetScreenPrivate(pScreen,
>                                                   pScrn->AdjustFrame);
>                         pScrn->AdjustFrame = vuidMouseAdjustFrame;
>                     }
>                 }
>             vuidMouseGeneration = serverGeneration;
>         }

I must say that the screen size '270 x 203' is a bit weird...
Just a bit higher in the log I have:
> [  4172.300] (II) RADEON(1): Output HDMI-0 disconnected
> [  4172.300] (II) RADEON(1): Output DVI-0 disconnected
> [  4172.300] (II) RADEON(1): Output VGA-0 connected
> [  4172.300] (II) RADEON(1): Using exact sizes for initial modes
> [  4172.300] (II) RADEON(1): Output VGA-0 using initial mode 1024x768
> [  4172.300] (II) RADEON(1): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
> [  4172.300] (==) RADEON(1): DPI set to (96, 96)

Vesa is *really* slow... any ideas?

-- 
Richard PALO


-- 
Richard PALO



More information about the xorg mailing list