From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 10 00:50:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FCA3106566C for ; Fri, 10 Apr 2009 00:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2C6658FC13 for ; Fri, 10 Apr 2009 00:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3A0o2NY055372 for ; Fri, 10 Apr 2009 00:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3A0o2tR055371; Fri, 10 Apr 2009 00:50:02 GMT (envelope-from gnats) Resent-Date: Fri, 10 Apr 2009 00:50:02 GMT Resent-Message-Id: <200904100050.n3A0o2tR055371@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, cpghost Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E4CB106566C for ; Fri, 10 Apr 2009 00:45:36 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 212128FC1F for ; Fri, 10 Apr 2009 00:45:33 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from bsdchild.farid-hajji.net (bsdchild [192.168.254.2]) by fw.farid-hajji.net (Postfix) with ESMTP id 3D08433953; Fri, 10 Apr 2009 02:27:38 +0200 (CEST) Message-Id: <20090410002737.GA1061@bsdchild.farid-hajji.net> Date: Fri, 10 Apr 2009 02:27:37 +0200 From: cpghost To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/133554: page fault in sis.ko / drm.ko X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cpghost List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2009 00:50:02 -0000 >Number: 133554 >Category: kern >Synopsis: page fault in sis.ko / drm.ko >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 10 00:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: cpghost >Release: FreeBSD 7.2-PRERELEASE i386 >Organization: >Environment: System: FreeBSD bsdchild.cordula.ws 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Thu Apr 9 10:12:21 CEST 2009 root@phenom.cordula.ws:/usr/obj/usr/src/sys/GENERIC i386 >Description: When loading Xorg (startx) with the sis driver, the system panics: bsdchild# kgdb /boot/kernel/kernel vmcore.5 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: drm0: on vgapci0 device_attach: drm0 attach returned 2 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x20 fault code = supervisor write, page not present instruction pointer = 0x20:0xc2a2f6ab stack pointer = 0x28:0xc23779a8 frame pointer = 0x28:0xc23779d4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 3 current process = 887 (Xorg) trap number = 12 panic: page fault cpuid = 0 Uptime: 14m11s Physical memory: 235 MB Dumping 36 MB: 21 5 Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/sis.ko...Reading symbols from /boot/kernel/sis.ko.symbols...done. done. Loaded symbols for /boot/kernel/sis.ko Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done. done. Loaded symbols for /boot/kernel/drm.ko #0 doadump () at pcpu.h:196 196 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:196 #1 0xc07e2557 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc07e2829 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc0ae1afc in trap_fatal (frame=0xc2377968, eva=32) at /usr/src/sys/i386/i386/trap.c:939 #4 0xc0ae1d80 in trap_pfault (frame=0xc2377968, usermode=0, eva=32) at /usr/src/sys/i386/i386/trap.c:852 #5 0xc0ae272c in trap (frame=0xc2377968) at /usr/src/sys/i386/i386/trap.c:530 #6 0xc0ac6e0b in calltrap () at /usr/src/sys/i386/i386/exception.s:159 #7 0xc2a2f6ab in drm_open_helper (kdev=0xc26bde00, flags=3, fmt=8192, p=0xc29e4af0, dev=0x0) at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_fops.c:50 #8 0xc2a2e9a5 in drm_open (kdev=0xc26bde00, flags=3, fmt=8192, p=0xc29e4af0) at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:607 #9 0xc076e0fa in devfs_open (ap=0xc2377a88) at /usr/src/sys/fs/devfs/devfs_vnops.c:902 #10 0xc0af6512 in VOP_OPEN_APV (vop=0xc0c45b20, a=0xc2377a88) at vnode_if.c:371 #11 0xc0870509 in vn_open_cred (ndp=0xc2377b7c, flagp=0xc2377c78, cmode=0, cred=0xc29e1200, fp=0xc26dd5f0) at vnode_if.h:199 #12 0xc0870653 in vn_open (ndp=0xc2377b7c, flagp=0xc2377c78, cmode=0, fp=0xc26dd5f0) at /usr/src/sys/kern/vfs_vnops.c:94 #13 0xc086dd83 in kern_open (td=0xc29e4af0, path=0xbfbfe8a4
, pathseg=UIO_USERSPACE, flags=3, mode=0) at /usr/src/sys/kern/vfs_syscalls.c:1042 #14 0xc086e2f0 in open (td=0xc29e4af0, uap=0xc2377cfc) at /usr/src/sys/kern/vfs_syscalls.c:1009 #15 0xc0ae20d5 in syscall (frame=0xc2377d38) at /usr/src/sys/i386/i386/trap.c:1090 #16 0xc0ac6e70 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:255 #17 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) It doesn't matter if I enable or disable dri (dri2, glx) in xorg.conf, or if I "kldload sis" manually or not. The system doesn't crash when I use the vesa driver. dmesg: Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-PRERELEASE #0: Thu Apr 9 10:12:21 CEST 2009 root@phenom.cordula.ws:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(TM) CPU 1200MHz (1197.00-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383f9ff real memory = 259981312 (247 MB) avail memory = 240316416 (229 MB) kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 0.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] isab0: at device 1.0 on pci0 isa0: on isab0 sis0: port 0xd000-0xd0ff mem 0xdffc0000-0xdffc0fff irq 10 at device 1.1 on pci0 miibus0: on sis0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis0: Ethernet address: 00:a0:cc:cb:1c:ba sis0: [ITHREAD] ohci0: mem 0xdffd0000-0xdffd0fff irq 9 at device 1.2 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xdffe0000-0xdffe0fff irq 9 at device 1.3 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 3 ports with 3 removable, self powered pci0: at device 1.4 (no driver attached) pci0: at device 1.6 (no driver attached) pcib1: at device 2.0 on pci0 pci1: on pcib1 vgapci0: port 0xac80-0xacff mem 0xd0000000-0xd7ffffff,0xdfee0000-0xdfefffff at device 0.0 on pci1 cbb0: at device 3.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 battery0: on acpi0 acpi_acad0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 fdc0: port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0 port 0x2f8-0x2ff irq 3 drq 1 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio1: type 16550A sio1: [FILTER] cpu0: on acpi0 acpi_throttle0: on cpu0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcbfff pnpid ORM0000 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1197004172 Hz quality 800 Timecounters tick every 10.000 msec ad0: DMA limited to UDMA33, controller found non-ATA66 cable ad0: 19077MB at ata0-master UDMA33 acd0: DVDROM at ata1-master PIO4 GEOM_LABEL: Label for provider ad0s1a is ufsid/4437ebc56d2a1299. GEOM_LABEL: Label for provider ad0s1d is ufsid/4437ebc91722b348. GEOM_LABEL: Label for provider ad0s1e is ufsid/4437ebc79b31e6f4. GEOM_LABEL: Label for provider ad0s1f is ufsid/4437ebc7e187757d. GEOM_LABEL: Label for provider ad0s1g is ufsid/4437ebc691808cc2. Trying to mount root from ufs:/dev/ad0s1a And /etc/X11/xorg.conf: Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" Option "AllowEmptyInput" "off" EndSection Section "Files" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/TTF/" FontPath "/usr/local/lib/X11/fonts/OTF" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/" FontPath "/usr/local/lib/X11/fonts/webfonts/" EndSection Section "Module" Load "dri2" Load "dbe" Load "dri" Load "extmod" Load "glx" Load "record" Load "freetype" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection Section "Device" ### Available Driver options are:- ### Values: (i): integer, (f): float, (bool): "True"/"False", ### (string): "String", (freq): "(f) Hz/kHz/MHz" ### [arg]: arg optional #Option "Accel" # [(bool)] #Option "AccelMethod" # (str) #Option "TurboQueue" # [(bool)] #Option "FastVram" # [(bool)] #Option "HostBus" # [(bool)] #Option "RenderAcceleration" # [(bool)] #Option "ForceCRT1Type" # (str) #Option "ForceCRT2Type" # (str) #Option "ShadowFB" # [(bool)] #Option "DRI" # [(bool)] #Option "AGPSize" # (i) #Option "GARTSize" # (i) #Option "Vesa" # [(bool)] #Option "MaxXFBMem" # (i) #Option "EnableSiSCtrl" # [(bool)] #Option "SWCursor" # [(bool)] #Option "HWCursor" # [(bool)] #Option "UseColorHWCursor" # [(bool)] #Option "Rotate" # (str) #Option "Reflect" # (str) #Option "Xvideo" # [(bool)] #Option "InternalModes" # [(bool)] #Option "OverruleFrequencyRanges" # [(bool)] #Option "RestoreBySetMode" # [(bool)] #Option "ForceCRT1" # [(bool)] #Option "XvOnCRT2" # [(bool)] #Option "PanelDelayCompensation" # (i) #Option "PDC" # (i) #Option "PanelDelayCompensation2" # (i) #Option "PDC2" # (i) #Option "PanelDelayCompensation1" # (i) #Option "PDC1" # (i) #Option "EMI" # (i) #Option "LVDSHL" # (i) #Option "ForcePanelRGB" # (i) #Option "SpecialTiming" # (str) #Option "TVStandard" # (str) #Option "UseROMData" # [(bool)] #Option "UseOEMData" # [(bool)] #Option "YV12" # [(bool)] #Option "CHTVType" # [(bool)] #Option "CHTVOverscan" # [(bool)] #Option "CHTVSuperOverscan" # [(bool)] #Option "CHTVLumaBandwidthCVBS" # (i) #Option "CHTVLumaBandwidthSVIDEO" # (i) #Option "CHTVLumaFlickerFilter" # (i) #Option "CHTVChromaBandwidth" # (i) #Option "CHTVChromaFlickerFilter" # (i) #Option "CHTVCVBSColor" # [(bool)] #Option "CHTVTextEnhance" # (i) #Option "CHTVContrast" # (i) #Option "SISTVEdgeEnhance" # (i) #Option "SISTVAntiFlicker" # (str) #Option "SISTVSaturation" # (i) #Option "SISTVCFilter" # [(bool)] #Option "SISTVYFilter" # (i) #Option "SISTVColorCalibFine" # (i) #Option "SISTVColorCalibCoarse" # (i) #Option "SISTVXScale" # (i) #Option "SISTVYScale" # (i) #Option "TVXPosOffset" # (i) #Option "TVYPosOffset" # (i) #Option "SIS6326TVAntiFlicker" # (str) #Option "SIS6326TVEnableYFilter" # [(bool)] #Option "SIS6326TVYFilterStrong" # [(bool)] #Option "SIS6326TVForcePlug" # (str) #Option "SIS6326FSCAdjust" # (i) #Option "YPbPrAspectRatio" # (str) #Option "TVBlueWorkAround" # [(bool)] #Option "ColorHWCursorBlending" # [(bool)] #Option "ColorHWCursorBlendThreshold" # (i) #Option "CRT2Detection" # [(bool)] #Option "ForceCRT2ReDetection" # [(bool)] #Option "SenseYPbPr" # [(bool)] #Option "CRT1Gamma" # [(bool)] #Option "CRT2Gamma" # [(str)] #Option "GammaBrightness" # (str) #Option "GammaBrightnessCRT2" # (str) #Option "CRT2GammaBrightness" # (str) #Option "Brightness" # (str) #Option "NewGammaBrightness" # (str) #Option "CRT2Brightness" # (str) #Option "CRT2NewGammaBrightness" # (str) #Option "Contrast" # (str) #Option "NewGammaContrast" # (str) #Option "CRT2Contrast" # (str) #Option "CRT2NewGammaContrast" # (str) #Option "CRT1Saturation" # (i) #Option "XvGamma" # [(str)] #Option "XvDefaultContrast" # (i) #Option "XvDefaultBrightness" # (i) #Option "XvDefaultHue" # (i) #Option "XvDefaultSaturation" # (i) #Option "XvDefaultDisableGfx" # [(bool)] #Option "XvDefaultDisableGfxLR" # [(bool)] #Option "XvChromaMin" # (i) #Option "XvChromaMax" # (i) #Option "XvUseChromaKey" # [(bool)] #Option "XvInsideChromaKey" # [(bool)] #Option "XvYUVChromaKey" # [(bool)] #Option "XvDisableColorKey" # [(bool)] #Option "XvUseMemcpy" # [(bool)] #Option "BenchmarkMemcpy" # [(bool)] #Option "UseSSE" # [(bool)] #Option "XvDefaultAdaptor" # (str) #Option "ScaleLCD" # [(bool)] #Option "CenterLCD" # [(bool)] #Option "EnableHotkey" # [(bool)] #Option "ForceCRT1VGAAspect" # (str) #Option "ForceCRT2VGAAspect" # (str) #Option "MergedFB" # [(str)] #Option "TwinView" # [(str)] #Option "MergedFBAuto" # [(bool)] #Option "CRT2HSync" # (str) #Option "SecondMonitorHorizSync" # (str) #Option "CRT2VRefresh" # (str) #Option "SecondMonitorVertRefresh" # (str) #Option "CRT2Position" # (str) #Option "TwinViewOrientation" # (str) #Option "MetaModes" # (str) #Option "MergedDPI" # (str) #Option "MergedXinerama" # [(bool)] #Option "TwinviewXineramaInfo" # [(bool)] #Option "MergedXineramaCRT2IsScreen0" # [(bool)] #Option "MergedNonRectangular" # [(bool)] #Option "MergedMouseRestriction" # [(bool)] Identifier "Card0" Driver "sis" VendorName "Silicon Integrated Systems [SiS]" BoardName "630/730 PCI/AGP VGA Display Adapter" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection This is with xorg-server-1.6.0,1 >How-To-Repeat: Just startx with the above xorg.conf. >Fix: Work-around is to use the vesa driver. >Release-Note: >Audit-Trail: >Unformatted: