Package: xserver-xorg-core Version: 2:1.7.7-8 Severity: minor *** Please type your report below this line ***
this patch fix this bug. -- Package-specific info: /var/lib/x11/X.roster does not exist. /var/lib/x11/X.md5sum does not exist. X server symlink status: lrwxrwxrwx 1 root root 13 Nov 1 2009 /etc/X11/X -> /usr/bin/Xorg -rwxr-xr-x 1 root root 2196092 Oct 10 20:54 /usr/bin/Xorg /var/lib/x11/xorg.conf.roster does not exist. VGA-compatible devices on PCI bus: 00:08.0 VGA compatible controller: Silicon Motion, Inc. SM712 LynxEM+ (rev b0) /var/lib/x11/xorg.conf.md5sum does not exist. Xorg X server configuration file status: -rw-r--r-- 1 root root 4562 Oct 19 23:41 /etc/X11/xorg.conf Contents of /etc/X11/xorg.conf: Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 EndSection Section "Module" Load "fb" Load "shadow" Load "vbe" Load "exa" Load "shadowfb" Load "extmod" Load "dbe" Load "vgahw" Load "xaa" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" Option "DPMS" "false" HorizSync 30-70 #30-85 VertRefresh 50-80 #40-75 DisplaySize 197 117 # 1024x600 130 dpi ModeLine "640x...@60" 25.2 640 656 752 800 480 490 492 525 ModeLine "640x...@70" 31.5 640 664 704 832 480 489 492 520 ModeLine "640x...@72" 31.5 640 656 720 840 480 481 484 500 ModeLine "640x...@85" 36.0 640 696 752 832 480 481 484 509 ModeLine "800x...@60" 29.6 800 816 896 992 480 481 484 497 ModeLine "800x...@70" 35.8 800 832 912 1024 480 481 484 500 ModeLine "800x...@75" 38.5 800 832 912 1024 480 481 484 502 ModeLine "800x...@80" 44.6 800 840 920 1040 480 481 484 505 ModeLine "800x...@56" 36.0 800 824 896 1024 600 601 603 625 ModeLine "800x...@60" 40.0 800 840 968 1056 600 601 605 628 ModeLine "800x...@72" 50.0 800 856 976 1040 600 637 643 666 ModeLine "800x...@75" 49.5 800 816 896 1056 600 601 604 625 ModeLine "800x...@85" 56.2 800 832 896 1048 600 601 604 631 ModeLine "1024x...@60" 65.0 1024 1048 1184 1344 768 771 777 806 ModeLine "1024x...@70" 75.0 1024 1048 1184 1328 768 771 777 806 ModeLine "1024x...@75" 78.8 1024 1040 1136 1312 768 769 772 800 ModeLine "1024x...@85" 94.5 1024 1072 1168 1376 769 769 772 808 ModeLine "1024x...@60" 49.0 1024 1064 1168 1312 600 601 604 622 ModeLine "1024x...@70" 58.1 1024 1072 1176 1328 600 601 604 625 ModeLine "1024x...@75" 63.2 1024 1080 1184 1344 600 601 604 627 ModeLine "1024x...@85" 62.8 1024 1080 1192 1360 600 601 604 630 ModeLine "1280x...@60" 108.0 1280 1376 1488 1800 960 961 964 1000 ModeLine "1280x...@85" 148.5 1280 1344 1504 1728 960 961 964 1011 ModeLine "1280x1...@60" 108.0 1280 1328 1440 1680 1024 1025 1028 1066 ModeLine "1280x...@60" 80.1 1280 1344 1480 1680 768 769 772 795 ModeLine "1280x...@75" 103.0 1280 1360 1496 1712 768 768 771 802 EndSection Section "Device" Identifier "Card0" Driver "siliconmotion" #VendorName "Silicon Motion, Inc." #BoardName "SM712 LynxEM+" #BusID "PCI:0:8:0" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional Option "pci_burst" "true" # [<bool>] #Option "dualhead" "true" #Option "fifo_conservative" # [<bool>] #Option "fifo_moderate" # [<bool>] #Option "fifo_aggressive" # [<bool>] #Option "pci_retry" # [<bool>] #Option "NoAccel" "true" # [<bool>] #Option "set_mclk" "40000" # <freq> #Option "show_cache" # [<bool>] Option "HWCursor" "True" # [<bool>] #Option "AccelMethod" "EXA" #Option "SWCursor" "True" # [<bool>] #Option "ShadowFB" # [<bool>] #Option "Rotate" # [<str>] Option "VideoKey" "45000" # <i> #Option "ByteSwap" # [<bool>] #Option "Interlaced" # [<bool>] Option "UseBIOS" "False" # [<bool>] #Option "ZoomOnLCD" "true" # [<bool>] Option "PanelSize" "1024x600" Option "CSCVideo" "false" #Option "UseFBDev" "true" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 16 SubSection "Display" Viewport 0 0 Depth 8 modes "1024x600" "800x600" "640x480" # modes "1024x...@75" # modes "800x...@60" #modes "800x...@60" # modes "640x...@60" EndSubSection SubSection "Display" # Viewport 0 0 Depth 16 # modes "1024x...@75" # modes "800x...@60" modes "1024x...@60" #modes "640x...@60" EndSubSection SubSection "Display" # Viewport 0 0 Depth 24 modes "1024x600" "800x600" "640x480" # modes "1024x...@75" # modes "800x...@60" # modes "800x...@60" # modes "640x...@60" EndSubSection EndSection Kernel version (/proc/version): Linux version 2.6.36-lemote2f-bfs (r...@2f-nas) (gcc version 4.4.5 (Debian 4.4.5-4) ) #2 PREEMPT Sat Oct 23 03:24:49 CST 2010 Xorg X server log files on system: -rw-r--r-- 1 root root 17848 Mar 9 2010 /var/log/Xorg.1.log -rw-r--r-- 1 root root 7524 Oct 23 21:49 /var/log/Xorg.0.log Contents of most recent Xorg X server log file /var/log/Xorg.0.log: X.Org X Server 1.7.7 Release Date: 2010-05-04 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.32-5-sb1-bcm91250a mips Debian Current Operating System: Linux yeeloong 2.6.36-lemote2f-bfs #2 PREEMPT Sat Oct 23 03:24:49 CST 2010 mips64 Kernel command line: usbcore.autosuspend=1 libata.force=80c console=tty loglevel=0 root=UUID=dae1edfc-04b6-4cf3-b9d5-b187bfa69a10 ro resume=/dev/sda3 PMON_VER=LM8089-1.4.9a EC_VER=PQ1D28 machtype=lemote-yeeloong-2f-8.9inches rd_start=0x84000000 rd_size=0x85a613 Build Date: 10 October 2010 12:09:32PM xorg-server 2:1.7.7-8 (Cyril Brulebois <k...@debian.org>) Current version of pixman: 0.16.4 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: Sat Oct 23 21:49:26 2010 (==) Using config file: "/etc/X11/xorg.conf" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (==) ServerLayout "X.org Configured" (**) |-->Screen "Screen0" (0) (**) | |-->Monitor "Monitor0" (**) | |-->Device "Card0" (==) Automatically adding devices (==) Automatically enabling devices (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. Entry deleted from font path. (==) 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, /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, built-ins (==) ModulePath set to "/usr/lib/xorg/modules" (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. (II) Loader magic: 0x6051a0 (II) Module ABI versions: X.Org ANSI C Emulation: 0.4 X.Org Video Driver: 6.0 X.Org XInput driver : 7.0 X.Org Server Extension : 2.0 (++) using VT number 8 (--) PCI:*(0:0:8:0) 126f:0712:0000:0000 Silicon Motion, Inc. SM712 LynxEM+ rev 176, Mem @ 0x40000000/16777216 (II) "extmod" will be loaded. This was enabled by default and also specified in the config file. (II) "dbe" will be loaded. This was enabled by default and also specified in the config file. (II) "glx" will be loaded by default. (II) "record" will be loaded by default. (II) "dri" will be loaded by default. (II) "dri2" will be loaded by default. (II) LoadModule: "fb" (II) Loading /usr/lib/xorg/modules/libfb.so (II) Module fb: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.0.0 ABI class: X.Org ANSI C Emulation, version 0.4 (II) LoadModule: "shadow" (II) Loading /usr/lib/xorg/modules/libshadow.so (II) Module shadow: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.1.0 ABI class: X.Org ANSI C Emulation, version 0.4 (II) LoadModule: "vbe" (II) Loading /usr/lib/xorg/modules/libvbe.so (II) Module vbe: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.1.0 ABI class: X.Org Video Driver, version 6.0 (II) LoadModule: "exa" (II) Loading /usr/lib/xorg/modules/libexa.so (II) Module exa: vendor="X.Org Foundation" compiled for 1.7.7, module version = 2.5.0 ABI class: X.Org Video Driver, version 6.0 (II) LoadModule: "shadowfb" (II) Loading /usr/lib/xorg/modules/libshadowfb.so (II) Module shadowfb: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.0.0 ABI class: X.Org ANSI C Emulation, version 0.4 (II) LoadModule: "extmod" (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so (II) Module extmod: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.0.0 Module class: X.Org Server Extension ABI class: X.Org Server Extension, version 2.0 (II) Loading extension SELinux (II) Loading extension MIT-SCREEN-SAVER (II) Loading extension XFree86-VidModeExtension (II) Loading extension XFree86-DGA (II) Loading extension DPMS (II) Loading extension XVideo (II) Loading extension XVideo-MotionCompensation (II) Loading extension X-Resource (II) LoadModule: "dbe" (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so (II) Module dbe: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.0.0 Module class: X.Org Server Extension ABI class: X.Org Server Extension, version 2.0 (II) Loading extension DOUBLE-BUFFER (II) LoadModule: "vgahw" (II) Loading /usr/lib/xorg/modules/libvgahw.so (II) Module vgahw: vendor="X.Org Foundation" compiled for 1.7.7, module version = 0.1.0 ABI class: X.Org Video Driver, version 6.0 (II) LoadModule: "xaa" (II) Loading /usr/lib/xorg/modules/libxaa.so (II) Module xaa: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.2.1 ABI class: X.Org Video Driver, version 6.0 (II) LoadModule: "glx" (II) Loading /usr/lib/xorg/modules/extensions/libglx.so (II) Module glx: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.0.0 ABI class: X.Org Server Extension, version 2.0 (==) AIGLX enabled (II) Loading extension GLX (II) LoadModule: "record" (II) Loading /usr/lib/xorg/modules/extensions/librecord.so (II) Module record: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.13.0 Module class: X.Org Server Extension ABI class: X.Org Server Extension, version 2.0 (II) Loading extension RECORD (II) LoadModule: "dri" (II) Loading /usr/lib/xorg/modules/extensions/libdri.so (II) Module dri: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.0.0 ABI class: X.Org Server Extension, version 2.0 (II) Loading extension XFree86-DRI (II) LoadModule: "dri2" (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so (II) Module dri2: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.1.0 ABI class: X.Org Server Extension, version 2.0 (II) Loading extension DRI2 (II) LoadModule: "siliconmotion" (II) Loading /usr/lib/xorg/modules/drivers/siliconmotion_drv.so (II) Module siliconmotion: vendor="X.Org Foundation" compiled for 1.7.7, module version = 1.7.3 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 6.0 (II) SMI: driver (version 1.7.3) for Silicon Motion Lynx chipsets: Lynx, LynxE, Lynx3D, LynxEM, LynxEM+, Lynx3DM, Cougar3DR, MSOC (II) Primary Device is: PCI 0...@00:08:0 (WW) Falling back to old probe method for siliconmotion (--) Assigning device section with no busID to primary device (--) Chipset LynxEM+ found (II) Loading sub module "vgahw" (II) LoadModule: "vgahw" (II) Reloading /usr/lib/xorg/modules/libvgahw.so (**) SMI(0): Depth 16, (--) framebuffer bpp 16 (==) SMI(0): RGB weight 565 (==) SMI(0): Default visual is TrueColor (**) SMI(0): Option "pci_burst" "true" (**) SMI(0): Option "HWCursor" "True" (**) SMI(0): Option "VideoKey" "45000" (**) SMI(0): Option "UseBIOS" "False" (**) SMI(0): Option "PanelSize" "1024x600" (**) SMI(0): Option "CSCVideo" "false" (**) SMI(0): PCI Burst enabled (==) SMI(0): PCI Retry enabled (**) SMI(0): Using Hardware Cursor (**) SMI(0): Option: Video key set to 0x0000AFC8 (**) SMI(0): Option: UseBIOS disabled. (--) SMI(0): Chipset: "LynxEM+" (==) SMI(0): Dual head disabled (==) SMI(0): Using XAA acceleration architecture Backtrace: 0: (vdso) (4C+0xffffffff) [(nil)] Segmentation fault at address 0x3c4 Fatal server error: Caught signal 11 (Segmentation fault). Server aborting Please consult the The X.Org Foundation support at http://wiki.x.org for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. udev information: P: /devices/platform/i8042/serio0/input/input0/event0 N: input/event0 S: char/13:64 S: input/by-path/platform-i8042-serio-0-event-kbd E: UDEV_LOG=3 E: DEVPATH=/devices/platform/i8042/serio0/input/input0/event0 E: SUBSYSTEM=input E: DEVNAME=input/event0 E: ID_INPUT=1 E: ID_INPUT_KEY=1 E: ID_INPUT_KEYBOARD=1 E: ID_SERIAL=noserial E: ID_PATH=platform-i8042-serio-0 E: XKBMODEL=pc105 E: XKBLAYOUT=us E: MAJOR=13 E: MINOR=64 E: DEVLINKS=/dev/char/13:64 /dev/input/by-path/platform-i8042-serio-0-event-kbd P: /devices/platform/i8042/serio1/input/input2/event2 N: input/event2 S: char/13:66 S: input/by-path/platform-i8042-serio-1-event-mouse E: UDEV_LOG=3 E: DEVPATH=/devices/platform/i8042/serio1/input/input2/event2 E: SUBSYSTEM=input E: DEVNAME=input/event2 E: ID_INPUT=1 E: ID_INPUT_MOUSE=1 E: ID_SERIAL=noserial E: ID_PATH=platform-i8042-serio-1 E: MAJOR=13 E: MINOR=66 E: DEVLINKS=/dev/char/13:66 /dev/input/by-path/platform-i8042-serio-1-event-mouse P: /devices/platform/i8042/serio1/input/input2/mouse0 N: input/mouse0 S: char/13:32 S: input/by-path/platform-i8042-serio-1-mouse E: UDEV_LOG=3 E: DEVPATH=/devices/platform/i8042/serio1/input/input2/mouse0 E: SUBSYSTEM=input E: DEVNAME=input/mouse0 E: ID_INPUT=1 E: ID_INPUT_MOUSE=1 E: ID_SERIAL=noserial E: ID_PATH=platform-i8042-serio-1 E: MAJOR=13 E: MINOR=32 E: DEVLINKS=/dev/char/13:32 /dev/input/by-path/platform-i8042-serio-1-mouse P: /devices/virtual/input/input1/event1 N: input/event1 S: char/13:65 E: UDEV_LOG=3 E: DEVPATH=/devices/virtual/input/input1/event1 E: SUBSYSTEM=input E: DEVNAME=input/event1 E: ID_INPUT=1 E: ID_INPUT_KEY=1 E: XKBMODEL=pc105 E: XKBLAYOUT=us E: MAJOR=13 E: MINOR=65 E: DEVLINKS=/dev/char/13:65 DRM Information from dmesg: -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: mipsel (mips64) Kernel: Linux 2.6.36-lemote2f-bfs (PREEMPT) Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages xserver-xorg-core depends on: ii keyboard-configurat 1.57 system-wide keyboard preferences ii libaudit0 1.7.13-1+b2 Dynamic library for security audit ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib ii libdrm2 2.4.21-1~squeeze3 Userspace interface to kernel DRM ii libgcrypt11 1.4.5-2 LGPL Crypto library - runtime libr ii libpciaccess0 0.12.0-1 Generic PCI access library for X ii libpixman-1-0 0.16.4-1 pixel-manipulation library for X a ii libselinux1 2.0.96-1 SELinux runtime shared libraries ii libudev0 163-1 libudev shared library ii libxau6 1:1.0.6-1 X11 authorisation library ii libxdmcp6 1:1.0.3-2 X11 Display Manager Control Protoc ii libxfont1 1:1.4.1-2 X11 font rasterisation library ii udev 163-1 /dev/ and hotplug management daemo ii xserver-common 2:1.7.7-8.0.loongson common files used by various X ser ii xserver-xorg 1:7.5+7 the X.Org X server Versions of packages xserver-xorg-core recommends: ii libgl1-mesa-dri 7.7.1-4 A free implementation of the OpenG Versions of packages xserver-xorg-core suggests: ii xfonts-100dpi 1:1.0.1 100 dpi fonts for X ii xfonts-75dpi 1:1.0.1 75 dpi fonts for X ii xfonts-scalable 1:1.0.1-1 scalable fonts for X -- no debconf information
diff -urN xorg-server-1.3.0.orig/hw/xfree86/dri/sarea.h xorg-server-1.1.1/hw/xfree86/dri/sarea.h --- xorg-server-1.3.0.orig/hw/xfree86/dri/sarea.h 2006-07-06 02:31:40.000000000 +0800 +++ xorg-server-1.3.0/hw/xfree86/dri/sarea.h 2007-10-30 14:23:47.000000000 +0800 @@ -44,6 +44,8 @@ /* SAREA area needs to be at least a page */ #if defined(__alpha__) #define SAREA_MAX 0x2000 +#elif defined(__mips__) +#define SAREA_MAX 0x4000 #elif defined(__ia64__) #define SAREA_MAX 0x10000 /* 64kB */ #else diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c index 688106a..1552860 100644 --- a/hw/xfree86/os-support/linux/lnx_video.c +++ b/hw/xfree86/os-support/linux/lnx_video.c @@ -505,9 +505,10 @@ _X_EXPORT volatile unsigned char *ioBase = NULL; _X_EXPORT Bool xf86EnableIO(void) { -#if defined(__powerpc__) +#if defined(__powerpc__) || defined(__mips__) int fd; unsigned int ioBase_phys; + extern unsigned int IOPortBase; #endif if (ExtendedEnabled) @@ -532,7 +533,22 @@ xf86EnableIO(void) #endif } close(fd); -#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__arm__) && !defined(__m32r__) +#elif defined(__mips__) + fd = open("/dev/mem", O_RDWR); + IOPortBase = (volatile unsigned char *)mmap(0, 0x20000, + PROT_READ | PROT_WRITE, MAP_SHARED, fd, + 0x1fd00000); + if (IOPortBase == MAP_FAILED) { + xf86Msg(X_WARNING, + "xf86EnableIOPorts: Failed to map iobase (%s)\n", + strerror(errno)); + return FALSE; + } + close(fd); + xf86Msg(X_WARNING, + "xf86EnableIOPorts: map iobase (%x)\n", + IOPortBase); +#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__arm__) && !defined(__m32r__) if (ioperm(0, 1024, 1) || iopl(3)) { if (errno == ENODEV) ErrorF("xf86EnableIOPorts: no I/O ports found\n");