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

Bug#594684: xserver-xorg-video-siliconmotion: siliconmotion driver segfaults on a Lemote YeeLoong (SM712 LynxEM+)



Package: xserver-xorg-video-siliconmotion
Version: 1:1.7.6-1
Followup-For: Bug #594684

Attached is the patch I'm currently using against xorg-server-core to
make this work.

It is based on the original patch here, but written slightly
differently.  I also added a munmap() that seemed to be missing.  It
seems to work without changing the SAREA (the more controversial part of
the original patch I think);  now the only changes are specific to
#ifdef__mips__

The hard-coded IOPortBase works for Lemote YeeLoong, but if any other
MIPS system was trying to use it for MMIO until now it would have been
triggering this same crash.

I'm using a minimal custom xorg.conf for this to work (see below).  I
haven't got an attached CRT monitor to work in Xorg yet.

-- Package-specific info:
X server symlink status:
------------------------
lrwxrwxrwx 1 root root 13 Jan 31  2012 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 2120512 Oct  1 12:30 /usr/bin/Xorg

VGA-compatible devices on PCI bus:
----------------------------------
00:08.0 VGA compatible controller [0300]: Silicon Motion, Inc. SM712 LynxEM+ [126f:0712] (rev b0)

Xorg X server configuration file status:
----------------------------------------
-rw-r--r-- 1 root root 1262 Feb 12  2012 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
-------------------------------
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
	Identifier	"Card0"
	Driver		"siliconmotion"
        Option		"pci_burst" "true"
        Option		"HWCursor" "true"
        Option		"VideoKey" "45000"
        Option		"UseBIOS" "false"
	Option		"PanelSize" "1024x600"
	Option		"CSCVideo" "false"

	Option		"DPMS" "true"
	Option		"BlankTime" "120"
	Option		"OffTime" "120"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device		"Card0"
	Monitor		"Monitor0"
	DefaultDepth	16
	SubSection "Display"
		Modes "1024x768"
		Depth 24
	EndSubSection
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
EndSection

/etc/X11/xorg.conf.d does not exist.

/etc/modprobe.d contains no KMS configuration files.

Kernel version (/proc/version):
-------------------------------
Linux version 3.2.0-2-loongson-2f (Debian 3.2.19-1) (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-5) ) #1 Sat Jun 2 14:04:05 UTC 2012

Xorg X server log files on system:
----------------------------------
-rw-r--r-- 1 root root 17060 Oct  1 13:24 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file (/var/log/Xorg.0.log):
---------------------------------------------------------------------
[ 20435.928] 
X.Org X Server 1.12.3
Release Date: 2012-07-09
[ 20435.928] X Protocol Version 11, Revision 0
[ 20435.928] Build Operating System: Linux 3.2.0-2-loongson-2f mips64 Debian
[ 20435.928] Current Operating System: Linux loongson 3.2.0-2-loongson-2f #1 Sat Jun 2 14:04:05 UTC 2012 mips64
[ 20435.928] Kernel command line: machtype=lemote-yeeloong-2f-8.9inches root=/dev/mapper/loongson-root ro memtest=4 rd_start=0x809a0000 rd_size=0x343e64 
[ 20435.929] Build Date: 26 September 2012  05:00:30PM
[ 20435.929] xorg-server 2:1.12.3-1+bugfix1 (Steven Chamberlain <steven@pyro.eu.org>) 
[ 20435.929] Current version of pixman: 0.26.0
[ 20435.929] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 20435.929] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 20435.930] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Oct  1 13:24:40 2012
[ 20435.934] (==) Using config file: "/etc/X11/xorg.conf"
[ 20435.934] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 20435.995] (==) No Layout section.  Using the first Screen section.
[ 20435.995] (**) |-->Screen "Screen0" (0)
[ 20435.995] (**) |   |-->Monitor "<default monitor>"
[ 20435.997] (**) |   |-->Device "Card0"
[ 20435.997] (==) No monitor specified for screen "Screen0".
	Using a default monitor configuration.
[ 20435.997] (==) Automatically adding devices
[ 20435.997] (==) Automatically enabling devices
[ 20436.019] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 20436.019] 	Entry deleted from font path.
[ 20436.032] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[ 20436.032] 	Entry deleted from font path.
[ 20436.032] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[ 20436.032] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 20436.033] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 20436.033] (II) Loader magic: 0x5ee010
[ 20436.033] (II) Module ABI versions:
[ 20436.033] 	X.Org ANSI C Emulation: 0.4
[ 20436.033] 	X.Org Video Driver: 12.0
[ 20436.033] 	X.Org XInput driver : 16.0
[ 20436.033] 	X.Org Server Extension : 6.0
[ 20436.036] (--) PCI:*(0:0:8:0) 126f:0712:0000:0000 rev 176, Mem @ 0x40000000/16777216
[ 20436.037] (II) LoadModule: "extmod"
[ 20436.043] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 20436.047] (II) Module extmod: vendor="X.Org Foundation"
[ 20436.048] 	compiled for 1.12.3, module version = 1.0.0
[ 20436.048] 	Module class: X.Org Server Extension
[ 20436.048] 	ABI class: X.Org Server Extension, version 6.0
[ 20436.048] (II) Loading extension SELinux
[ 20436.048] (II) Loading extension MIT-SCREEN-SAVER
[ 20436.048] (II) Loading extension XFree86-VidModeExtension
[ 20436.049] (II) Loading extension XFree86-DGA
[ 20436.049] (II) Loading extension DPMS
[ 20436.049] (II) Loading extension XVideo
[ 20436.049] (II) Loading extension XVideo-MotionCompensation
[ 20436.049] (II) Loading extension X-Resource
[ 20436.049] (II) LoadModule: "dbe"
[ 20436.052] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 20436.053] (II) Module dbe: vendor="X.Org Foundation"
[ 20436.053] 	compiled for 1.12.3, module version = 1.0.0
[ 20436.053] 	Module class: X.Org Server Extension
[ 20436.053] 	ABI class: X.Org Server Extension, version 6.0
[ 20436.053] (II) Loading extension DOUBLE-BUFFER
[ 20436.053] (II) LoadModule: "glx"
[ 20436.055] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 20436.077] (II) Module glx: vendor="X.Org Foundation"
[ 20436.077] 	compiled for 1.12.3, module version = 1.0.0
[ 20436.077] 	ABI class: X.Org Server Extension, version 6.0
[ 20436.077] (==) AIGLX enabled
[ 20436.077] (II) Loading extension GLX
[ 20436.077] (II) LoadModule: "record"
[ 20436.079] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 20436.080] (II) Module record: vendor="X.Org Foundation"
[ 20436.080] 	compiled for 1.12.3, module version = 1.13.0
[ 20436.080] 	Module class: X.Org Server Extension
[ 20436.080] 	ABI class: X.Org Server Extension, version 6.0
[ 20436.080] (II) Loading extension RECORD
[ 20436.080] (II) LoadModule: "dri"
[ 20436.081] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 20436.083] (II) Module dri: vendor="X.Org Foundation"
[ 20436.083] 	compiled for 1.12.3, module version = 1.0.0
[ 20436.084] 	ABI class: X.Org Server Extension, version 6.0
[ 20436.084] (II) Loading extension XFree86-DRI
[ 20436.084] (II) LoadModule: "dri2"
[ 20436.085] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 20436.086] (II) Module dri2: vendor="X.Org Foundation"
[ 20436.086] 	compiled for 1.12.3, module version = 1.2.0
[ 20436.086] 	ABI class: X.Org Server Extension, version 6.0
[ 20436.086] (II) Loading extension DRI2
[ 20436.086] (II) LoadModule: "siliconmotion"
[ 20436.087] (II) Loading /usr/lib/xorg/modules/drivers/siliconmotion_drv.so
[ 20436.088] (II) Module siliconmotion: vendor="X.Org Foundation"
[ 20436.088] 	compiled for 1.12.1.902, module version = 1.7.6
[ 20436.088] 	Module class: X.Org Video Driver
[ 20436.088] 	ABI class: X.Org Video Driver, version 12.0
[ 20436.088] (II) SMI: driver (version 1.7.6) for Silicon Motion Lynx chipsets: Lynx,
	LynxE, Lynx3D, LynxEM, LynxEM+, Lynx3DM, Cougar3DR, MSOC
[ 20436.089] (++) using VT number 7

[ 20436.089] (WW) Falling back to old probe method for siliconmotion
[ 20436.090] (--) Assigning device section with no busID to primary device
[ 20436.090] (--) Chipset LynxEM+ found
[ 20436.090] (II) Loading sub module "vgahw"
[ 20436.090] (II) LoadModule: "vgahw"
[ 20436.091] (II) Loading /usr/lib/xorg/modules/libvgahw.so
[ 20436.092] (II) Module vgahw: vendor="X.Org Foundation"
[ 20436.092] 	compiled for 1.12.3, module version = 0.1.0
[ 20436.092] 	ABI class: X.Org Video Driver, version 12.0
[ 20436.093] (II) SMI(0): Creating default Display subsection in Screen section
	"Screen0" for depth/fbbpp 16/16
[ 20436.093] (**) SMI(0): Depth 16, (--) framebuffer bpp 16
[ 20436.093] (==) SMI(0): RGB weight 565
[ 20436.093] (==) SMI(0): Default visual is TrueColor
[ 20436.093] (**) SMI(0): Option "pci_burst" "true"
[ 20436.094] (**) SMI(0): Option "HWCursor" "true"
[ 20436.094] (**) SMI(0): Option "VideoKey" "45000"
[ 20436.094] (**) SMI(0): Option "UseBIOS" "false"
[ 20436.095] (**) SMI(0): Option "PanelSize" "1024x600"
[ 20436.095] (**) SMI(0): Option "CSCVideo" "false"
[ 20436.095] (**) SMI(0): PCI Burst enabled
[ 20436.095] (==) SMI(0): PCI Retry enabled
[ 20436.095] (**) SMI(0): Using Hardware Cursor
[ 20436.095] (**) SMI(0): Option: Video key set to 0x0000AFC8
[ 20436.095] (**) SMI(0): Option: UseBIOS disabled.
[ 20436.095] (--) SMI(0): Chipset: "LynxEM+"
[ 20436.095] (==) SMI(0): Dual head disabled
[ 20436.095] (==) SMI(0): Using XAA acceleration architecture
[ 20436.096] (--) SMI(0): videoram: 4096kB
[ 20436.096] (II) SMI(0): Cursor Offset: 003FFC00
[ 20436.096] (II) SMI(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0
[ 20436.096] (II) SMI(0): Reserved: 003FF800
[ 20436.097] (II) SMI(0): OFF Panel Size = 1024x600
[ 20436.097] (II) Loading sub module "i2c"
[ 20436.097] (II) LoadModule: "i2c"
[ 20436.097] (II) Module "i2c" already built-in
[ 20436.097] (II) SMI(0): I2C bus "I2C bus" initialized.
[ 20436.097] (II) Loading sub module "ddc"
[ 20436.097] (II) LoadModule: "ddc"
[ 20436.097] (II) Module "ddc" already built-in
[ 20436.097] (==) SMI(0): Using gamma correction (1.0, 1.0, 1.0)
[ 20436.097] (II) SMI(0): MCLK = 157.000
[ 20436.098] (II) SMI(0): Output LVDS has no monitor section
[ 20436.098] (II) SMI(0): Printing probed modes for output LVDS
[ 20436.098] (II) SMI(0): Modeline "1024x600"x59.9   49.00  1024 1072 1168 1312  600 603 613 624 -hsync +vsync (37.3 kHz)
[ 20436.098] (II) SMI(0): Output LVDS connected
[ 20436.098] (II) SMI(0): Using sloppy heuristic for initial modes
[ 20436.098] (II) SMI(0): Output LVDS using initial mode 1024x600
[ 20436.098] (II) SMI(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 20436.099] (==) SMI(0): DPI set to (96, 96)
[ 20436.099] (II) Loading sub module "fb"
[ 20436.099] (II) LoadModule: "fb"
[ 20436.100] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 20436.110] (II) Module fb: vendor="X.Org Foundation"
[ 20436.110] 	compiled for 1.12.3, module version = 1.0.0
[ 20436.110] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 20436.110] (II) Loading sub module "xaa"
[ 20436.110] (II) LoadModule: "xaa"
[ 20436.111] (II) Loading /usr/lib/xorg/modules/libxaa.so
[ 20436.129] (II) Module xaa: vendor="X.Org Foundation"
[ 20436.129] 	compiled for 1.12.3, module version = 1.2.1
[ 20436.129] 	ABI class: X.Org Video Driver, version 12.0
[ 20436.129] (II) Loading sub module "ramdac"
[ 20436.129] (II) LoadModule: "ramdac"
[ 20436.130] (II) Module "ramdac" already built-in
[ 20436.130] (II) SMI(0): Cursor Offset: 003FFC00
[ 20436.130] (II) SMI(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0
[ 20436.131] (II) SMI(0): Reserved: 003FF800
[ 20436.519] (II) SMI(0): FrameBuffer Box: 0,0 - 1024,2047
[ 20436.520] (II) SMI(0): Using XFree86 Acceleration Architecture (XAA)
[ 20436.520] 	Screen to screen bit blits
[ 20436.521] 	Solid filled rectangles
[ 20436.521] 	8x8 mono pattern filled rectangles
[ 20436.521] 	8x8 color pattern filled rectangles
[ 20436.521] 	CPU to Screen color expansion
[ 20436.521] 	Solid Horizontal and Vertical Lines
[ 20436.521] 	Setting up tile and stipple cache:
[ 20436.521] 		28 128x128 slots
[ 20436.521] 		7 256x256 slots
[ 20436.521] 		32 8x8 color pattern slots
[ 20436.685] (**) SMI(0): DPMS enabled
[ 20436.686] (II) SMI(0): I2C device "I2C bus:SAA 7111A" registered at address 0x48.
[ 20436.686] (II) SMI(0): I2C device "I2C bus:SAA 7111A" removed.
[ 20436.706] (II) SMI(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 20436.706] (WW) SMI(0): Option "BlankTime" is not used
[ 20436.706] (WW) SMI(0): Option "OffTime" is not used
[ 20436.707] (--) RandR disabled
[ 20436.707] (II) Initializing built-in extension Generic Event Extension
[ 20436.707] (II) Initializing built-in extension SHAPE
[ 20436.707] (II) Initializing built-in extension MIT-SHM
[ 20436.707] (II) Initializing built-in extension XInputExtension
[ 20436.707] (II) Initializing built-in extension XTEST
[ 20436.707] (II) Initializing built-in extension BIG-REQUESTS
[ 20436.707] (II) Initializing built-in extension SYNC
[ 20436.707] (II) Initializing built-in extension XKEYBOARD
[ 20436.707] (II) Initializing built-in extension XC-MISC
[ 20436.707] (II) Initializing built-in extension SECURITY
[ 20436.707] (II) Initializing built-in extension XINERAMA
[ 20436.707] (II) Initializing built-in extension XFIXES
[ 20436.707] (II) Initializing built-in extension RENDER
[ 20436.707] (II) Initializing built-in extension RANDR
[ 20436.707] (II) Initializing built-in extension COMPOSITE
[ 20436.707] (II) Initializing built-in extension DAMAGE
[ 20436.708] (II) SELinux: Disabled on system
[ 20436.852] (II) AIGLX: Screen 0 is not DRI2 capable
[ 20436.852] (II) AIGLX: Screen 0 is not DRI capable
[ 20437.001] (II) AIGLX: Loaded and initialized swrast
[ 20437.001] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 20437.007] (II) SMI(0): Setting screen physical size to 270 x 158
[ 20437.918] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/event2)
[ 20437.919] (**) Logitech USB Optical Mouse: Applying InputClass "evdev pointer catchall"
[ 20437.919] (II) LoadModule: "evdev"
[ 20437.919] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 20437.920] (II) Module evdev: vendor="X.Org Foundation"
[ 20437.920] 	compiled for 1.12.1, module version = 2.7.0
[ 20437.921] 	Module class: X.Org XInput Driver
[ 20437.921] 	ABI class: X.Org XInput driver, version 16.0
[ 20437.921] (II) Using input driver 'evdev' for 'Logitech USB Optical Mouse'
[ 20437.921] (**) Logitech USB Optical Mouse: always reports core events
[ 20437.921] (**) evdev: Logitech USB Optical Mouse: Device: "/dev/input/event2"
[ 20437.922] (--) evdev: Logitech USB Optical Mouse: Vendor 0x46d Product 0xc046
[ 20437.922] (--) evdev: Logitech USB Optical Mouse: Found 12 mouse buttons
[ 20437.922] (--) evdev: Logitech USB Optical Mouse: Found scroll wheel(s)
[ 20437.922] (--) evdev: Logitech USB Optical Mouse: Found relative axes
[ 20437.922] (--) evdev: Logitech USB Optical Mouse: Found x and y relative axes
[ 20437.923] (II) evdev: Logitech USB Optical Mouse: Configuring as mouse
[ 20437.923] (II) evdev: Logitech USB Optical Mouse: Adding scrollwheel support
[ 20437.923] (**) evdev: Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
[ 20437.923] (**) evdev: Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 20437.923] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2/event2"
[ 20437.923] (II) XINPUT: Adding extended input device "Logitech USB Optical Mouse" (type: MOUSE, id 6)
[ 20437.924] (II) evdev: Logitech USB Optical Mouse: initialized for relative axes.
[ 20437.925] (**) Logitech USB Optical Mouse: (accel) keeping acceleration scheme 1
[ 20437.925] (**) Logitech USB Optical Mouse: (accel) acceleration profile 0
[ 20437.925] (**) Logitech USB Optical Mouse: (accel) acceleration factor: 2.000
[ 20437.925] (**) Logitech USB Optical Mouse: (accel) acceleration threshold: 4
[ 20437.927] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse1)
[ 20437.927] (II) No input driver specified, ignoring this device.
[ 20437.927] (II) This device may have been added with another device file.
[ 20437.929] (II) config/udev: Adding input device AT Raw Set 2 keyboard (/dev/input/event0)
[ 20437.930] (**) AT Raw Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 20437.930] (II) Using input driver 'evdev' for 'AT Raw Set 2 keyboard'
[ 20437.930] (**) AT Raw Set 2 keyboard: always reports core events
[ 20437.930] (**) evdev: AT Raw Set 2 keyboard: Device: "/dev/input/event0"
[ 20437.930] (--) evdev: AT Raw Set 2 keyboard: Vendor 0x1 Product 0x2
[ 20437.930] (--) evdev: AT Raw Set 2 keyboard: Found keys
[ 20437.930] (II) evdev: AT Raw Set 2 keyboard: Configuring as keyboard
[ 20437.931] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[ 20437.931] (II) XINPUT: Adding extended input device "AT Raw Set 2 keyboard" (type: KEYBOARD, id 7)
[ 20437.931] (**) Option "xkb_rules" "evdev"
[ 20437.931] (**) Option "xkb_model" "pc105"
[ 20437.931] (**) Option "xkb_layout" "gb"
[ 20438.206] (II) config/udev: Adding input device FSPPS/2 Sentelic FingerSensingPad (/dev/input/event1)
[ 20438.206] (**) FSPPS/2 Sentelic FingerSensingPad: Applying InputClass "evdev pointer catchall"
[ 20438.206] (II) Using input driver 'evdev' for 'FSPPS/2 Sentelic FingerSensingPad'
[ 20438.207] (**) FSPPS/2 Sentelic FingerSensingPad: always reports core events
[ 20438.207] (**) evdev: FSPPS/2 Sentelic FingerSensingPad: Device: "/dev/input/event1"
[ 20438.207] (--) evdev: FSPPS/2 Sentelic FingerSensingPad: Vendor 0x2 Product 0xf
[ 20438.207] (--) evdev: FSPPS/2 Sentelic FingerSensingPad: Found 11 mouse buttons
[ 20438.207] (--) evdev: FSPPS/2 Sentelic FingerSensingPad: Found scroll wheel(s)
[ 20438.207] (--) evdev: FSPPS/2 Sentelic FingerSensingPad: Found relative axes
[ 20438.207] (--) evdev: FSPPS/2 Sentelic FingerSensingPad: Found x and y relative axes
[ 20438.207] (II) evdev: FSPPS/2 Sentelic FingerSensingPad: Configuring as mouse
[ 20438.208] (II) evdev: FSPPS/2 Sentelic FingerSensingPad: Adding scrollwheel support
[ 20438.208] (**) evdev: FSPPS/2 Sentelic FingerSensingPad: YAxisMapping: buttons 4 and 5
[ 20438.208] (**) evdev: FSPPS/2 Sentelic FingerSensingPad: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 20438.208] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input1/event1"
[ 20438.208] (II) XINPUT: Adding extended input device "FSPPS/2 Sentelic FingerSensingPad" (type: MOUSE, id 8)
[ 20438.208] (II) evdev: FSPPS/2 Sentelic FingerSensingPad: initialized for relative axes.
[ 20438.209] (**) FSPPS/2 Sentelic FingerSensingPad: (accel) keeping acceleration scheme 1
[ 20438.210] (**) FSPPS/2 Sentelic FingerSensingPad: (accel) acceleration profile 0
[ 20438.211] (**) FSPPS/2 Sentelic FingerSensingPad: (accel) acceleration factor: 2.000
[ 20438.211] (**) FSPPS/2 Sentelic FingerSensingPad: (accel) acceleration threshold: 4
[ 20438.220] (II) config/udev: Adding input device FSPPS/2 Sentelic FingerSensingPad (/dev/input/mouse0)
[ 20438.220] (II) No input driver specified, ignoring this device.
[ 20438.220] (II) This device may have been added with another device file.

udev information:
-----------------
P: /devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2
E: DEVPATH=/devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2
E: EV=17
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=USB_Optical_Mouse
E: ID_MODEL_ENC=USB\x20Optical\x20Mouse
E: ID_MODEL_ID=c046
E: ID_PATH=pci-0000:00:0e.4-usb-0:3:1.0
E: ID_PATH_TAG=pci-0000_00_0e_4-usb-0_3_1_0
E: ID_REVISION=2710
E: ID_SERIAL=Logitech_USB_Optical_Mouse
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030102:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Logitech
E: ID_VENDOR_ENC=Logitech
E: ID_VENDOR_ID=046d
E: KEY=ff0000 0 0 0 0 0 0 0 0
E: MODALIAS=input:b0003v046DpC046e0110-e0,1,2,4,k110,111,112,113,114,115,116,117,r0,1,6,8,am4,lsfw
E: MSC=10
E: NAME="Logitech USB Optical Mouse"
E: PHYS="usb-0000:00:0e.4-3/input0"
E: PRODUCT=3/46d/c046/110
E: PROP=0
E: REL=143
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: UNIQ=""
E: USEC_INITIALIZED=98402198

P: /devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2/event2
N: input/event2
S: input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse
S: input/by-path/pci-0000:00:0e.4-usb-0:3:1.0-event-mouse
E: DEVLINKS=/dev/input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse /dev/input/by-path/pci-0000:00:0e.4-usb-0:3:1.0-event-mouse
E: DEVNAME=/dev/input/event2
E: DEVPATH=/devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2/event2
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=USB_Optical_Mouse
E: ID_MODEL_ENC=USB\x20Optical\x20Mouse
E: ID_MODEL_ID=c046
E: ID_PATH=pci-0000:00:0e.4-usb-0:3:1.0
E: ID_PATH_TAG=pci-0000_00_0e_4-usb-0_3_1_0
E: ID_REVISION=2710
E: ID_SERIAL=Logitech_USB_Optical_Mouse
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030102:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Logitech
E: ID_VENDOR_ENC=Logitech
E: ID_VENDOR_ID=046d
E: MAJOR=13
E: MINOR=66
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=98462501

P: /devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2/mouse1
N: input/mouse1
S: input/by-id/usb-Logitech_USB_Optical_Mouse-mouse
S: input/by-path/pci-0000:00:0e.4-usb-0:3:1.0-mouse
E: DEVLINKS=/dev/input/by-id/usb-Logitech_USB_Optical_Mouse-mouse /dev/input/by-path/pci-0000:00:0e.4-usb-0:3:1.0-mouse
E: DEVNAME=/dev/input/mouse1
E: DEVPATH=/devices/pci0000:00/0000:00:0e.4/usb4/4-3/4-3:1.0/input/input2/mouse1
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=USB_Optical_Mouse
E: ID_MODEL_ENC=USB\x20Optical\x20Mouse
E: ID_MODEL_ID=c046
E: ID_PATH=pci-0000:00:0e.4-usb-0:3:1.0
E: ID_PATH_TAG=pci-0000_00_0e_4-usb-0_3_1_0
E: ID_REVISION=2710
E: ID_SERIAL=Logitech_USB_Optical_Mouse
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030102:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Logitech
E: ID_VENDOR_ENC=Logitech
E: ID_VENDOR_ID=046d
E: MAJOR=13
E: MINOR=33
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=98464728

P: /devices/platform/i8042/serio0/input/input0
E: DEVPATH=/devices/platform/i8042/serio0/input/input0
E: EV=120013
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_PATH=platform-i8042-serio-0
E: ID_PATH_TAG=platform-i8042-serio-0
E: ID_SERIAL=noserial
E: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
E: LED=7
E: MODALIAS=input:b0011v0001p0002eAB41-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9,D9,E2,ram4,l0,1,2,sfw
E: MSC=10
E: NAME="AT Raw Set 2 keyboard"
E: PHYS="isa0060/serio0/input0"
E: PRODUCT=11/1/2/ab41
E: PROP=0
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=21371224

P: /devices/platform/i8042/serio0/input/input0/event0
N: input/event0
S: input/by-path/platform-i8042-serio-0-event-kbd
E: BACKSPACE=guess
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-0-event-kbd
E: DEVNAME=/dev/input/event0
E: DEVPATH=/devices/platform/i8042/serio0/input/input0/event0
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_PATH=platform-i8042-serio-0
E: ID_PATH_TAG=platform-i8042-serio-0
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=64
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=21964900
E: XKBLAYOUT=gb
E: XKBMODEL=pc105

P: /devices/platform/i8042/serio1/input/input1
E: DEVPATH=/devices/platform/i8042/serio1/input/input1
E: EV=7
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_PATH=platform-i8042-serio-1
E: ID_PATH_TAG=platform-i8042-serio-1
E: ID_SERIAL=noserial
E: KEY=670000 0 0 0 0 0 0 0 0
E: MODALIAS=input:b0011v0002p000Fe0000-e0,1,2,k110,111,112,115,116,r0,1,6,8,amlsfw
E: NAME="FSPPS/2 Sentelic FingerSensingPad"
E: PHYS="isa0060/serio1/input0"
E: PRODUCT=11/2/f/0
E: PROP=0
E: REL=143
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=21372868

P: /devices/platform/i8042/serio1/input/input1/event1
N: input/event1
S: input/by-path/platform-i8042-serio-1-event-mouse
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-1-event-mouse
E: DEVNAME=/dev/input/event1
E: DEVPATH=/devices/platform/i8042/serio1/input/input1/event1
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_PATH=platform-i8042-serio-1
E: ID_PATH_TAG=platform-i8042-serio-1
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=65
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=21966120

P: /devices/platform/i8042/serio1/input/input1/mouse0
N: input/mouse0
S: input/by-path/platform-i8042-serio-1-mouse
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-1-mouse
E: DEVNAME=/dev/input/mouse0
E: DEVPATH=/devices/platform/i8042/serio1/input/input1/mouse0
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_PATH=platform-i8042-serio-1
E: ID_PATH_TAG=platform-i8042-serio-1
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=32
E: SUBSYSTEM=input
E: UDEV_LOG=3
E: USEC_INITIALIZED=21948226


DRM Information from dmesg:
---------------------------


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: mipsel (mips64)

Kernel: Linux 3.2.0-2-loongson-2f
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/mksh-static

Versions of packages xserver-xorg-video-siliconmotion depends on:
ii  libc6              2.13-35
pn  xorg-video-abi-12  <none>
pn  xserver-xorg-core  <none>

xserver-xorg-video-siliconmotion recommends no packages.

xserver-xorg-video-siliconmotion suggests no packages.

-- no debconf information
Index: xorg-server-1.12.3/hw/xfree86/os-support/linux/lnx_video.c
===================================================================
--- xorg-server-1.12.3.orig/hw/xfree86/os-support/linux/lnx_video.c	2012-06-26 05:12:50.000000000 +0100
+++ xorg-server-1.12.3/hw/xfree86/os-support/linux/lnx_video.c	2012-09-22 15:56:49.000000000 +0100
@@ -472,8 +472,13 @@
 /* I/O Permissions section                                                 */
 /***************************************************************************/
 
-#if defined(__powerpc__)
+#if defined(__powerpc__) || defined(__mips__)
+
+#if defined(__mips__)
+#define ioBase IOPortBase
+#else
 volatile unsigned char *ioBase = NULL;
+#endif
 
 #ifndef __NR_pciconfig_iobase
 #define __NR_pciconfig_iobase	200
@@ -484,7 +489,7 @@
 Bool
 xf86EnableIO(void)
 {
-#if defined(__powerpc__)
+#if defined(__powerpc__) || defined(__mips__)
     int fd;
     unsigned int ioBase_phys;
 #endif
@@ -492,8 +497,13 @@
     if (ExtendedEnabled)
         return TRUE;
 
-#if defined(__powerpc__)
+#if defined(__powerpc__) || defined(__mips__)
+
+#if defined(__mips__)
+    ioBase_phys = 0x1fd00000; /* Works for Loongson-2f platforms */
+#else
     ioBase_phys = syscall(__NR_pciconfig_iobase, 2, 0, 0);
+#endif
 
     fd = open("/dev/mem", O_RDWR);
     if (ioBase == NULL) {
@@ -537,10 +547,10 @@
 {
     if (!ExtendedEnabled)
         return;
-#if defined(__powerpc__)
-    munmap(ioBase, 0x20000);
+#if defined(__powerpc__) || defined(__mips__)
+    munmap((void *)ioBase, 0x20000);
     ioBase = NULL;
-#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__arm__) && !defined(__s390__) && !defined(__m32r__) && !defined(__nds32__)
+#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__sh__) && !defined(__hppa__) && !defined(__arm__) && !defined(__s390__) && !defined(__m32r__) && !defined(__nds32__)
     iopl(0);
     ioperm(0, 1024, 0);
 #endif

Reply to: