Date: Sat, 1 Dec 2001 23:30:21 +0700 From: Eugene Grosbein <eugen@grosbein.pp.ru> To: stable@freebsd.org Subject: X and non-X graphics in 4.4-STABLE: system hangs. Message-ID: <20011201233021.A989@grosbein.pp.ru>
next in thread | raw e-mail | index | archive | help
Hi! I have found a method to hang recent 4.4-STABLE and this is 100% reproducable with my hardware. 1. Have options VESA in the kernel config. 2. Load the system with splash screen enabled or run VGL-enabled application like /usr/ports/games/digger-vgl then quit it. 3. Wait some time, 2-5 minutes. 3. Run XFree86-4.1.0 from ports. Just before switching to graphics mode console hangs. It is in the text mode but no keys are working - cannot switch vt's, cannot reboot with C-A-D, cannot switch to DDB with C-A-ESC. I have no LAN here and cannot say if this is dead kernel or just X or console. So I need to reset my system with Power button. Another way to reproduce this: do not use splash, start X then switch to console. Run digger-vgl, quit, wait 5 minutes then try to switch to X. System is frozen in the same way. For reason unknown it does not hang when I switch to X immediately after using console graphics, so I can boot with splash screen and xdm(1) enabled in /etc/ttys. But if I switch from X to console, work there some time and switch back, it always hangs. I've found a workaround: before switching to X do at vty0: vidconrol 80x30 Then it does not hang when switching to X. My system is recent 4.4-STABLE, video is S3 Trio3D 4M AGP, Iwill BD100Plus motherboard, Celeron 300A. Results are exactly the same when I run it at 300Mhz or overclock at 450Mhz. If I do not use console graphics, system runs rock stable. Here is my dmesg.boot: Copyright (c) 1992-2001 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 4.4-STABLE #7: Sat Nov 24 11:15:46 KRAT 2001 root@D00015.dialonly.kemerovo.su:/usr/obj/usr/src/sys/DADV Timecounter "i8254" frequency 1193165 Hz CPU: Pentium II/Pentium II Xeon/Celeron (451.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x660 Stepping = 0 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> real memory = 335478784 (327616K bytes) config> q avail memory = 322727936 (315164K bytes) Preloaded elf kernel "kernel" at 0xc032f000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc032f09c. Preloaded userconfig_script "/boot/kernel.conf" at 0xc032f0ec. VESA: v2.0, 4096k memory, flags:0x1, mode table:0xc00c0e38 (c0000e38) VESA: S3 Incorporated Trio3D. netsmb_dev: loaded Pentium Pro MTRR support enabled Using $PIR table, 8 entries at 0xc00fdef0 apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <S3 Trio3D graphics accelerator> at 0.0 irq 12 isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 intpm0: <Intel 82371AB Power management controller> port 0x5000-0x500f irq 9 at device 7.3 on pci0 intpm0: I/O mapped 5000 intpm0: intr IRQ 9 enabled revision 0 smbus0: <System Management Bus> on intsmb0 smb0: <SMBus general purpose I/O> on smbus0 intpm0: PM I/O mapped 4000 orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> on isa0 sc0: VGA <24 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 pcm0: <Yamaha OPL-SAx> at port 0x220-0x22f,0x530-0x537,0x388-0x38f,0x330-0x331,0x370-0x371 irq 5 drq 0,1 on isa0 IPFW: MOD_LOAD IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to deny, unlimited logging DUMMYNET initialized (011031) ad0: 6149MB <WDC AC26400B> [13328/15/63] at ata0-master UDMA33 acd0: CDROM <SAMSUNG CD-ROM SCR-3231> at ata0-slave using PIO4 acd1: CD-RW <SONY CD-RW CRX140E> at ata1-master using UDMA33 Mounting root from ufs:/dev/ad0s3a Here is my kernel config: options INCLUDE_CONFIG_FILE machine i386 cpu I686_CPU ident DADV maxusers 128 makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols #options MATH_EMULATE #Support for x87 emulation options CLK_CALIBRATION_LOOP options "CLK_USE_I8254_CALIBRATION" options CLK_USE_TSC_CALIBRATION options INET #InterNETworking #options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] #options MFS #Memory Filesystem #options MD_ROOT #MD is a potential root device #options NFS #Network Filesystem #options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem #options CD9660 #ISO 9660 Filesystem #options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem #options EXT2FS #Linux ext2 filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options CPU_SUSP_HLT #options "NO_F00F_HACK" options USER_LDT options PPP_BSDCOMP options PPP_DEFLATE options PPP_FILTER options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options SHMMAXPGS=4096 options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options _KPOSIX_VERSION=199309L options ICMP_BANDLIM #Rate limit bad replies #options FDESC options NSWAPDEV=4 device isa device eisa device pci options AUTO_EOI_1 # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 #device fd1 at fdc0 drive 1 # ATA and ATAPI devices #device ata0 at isa? port IO_WD1 irq 14 flags 0xb0ffb0ff #device ata1 at isa? port IO_WD2 irq 15 flags 0xb0ffb0ff device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives #device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 # Options for atkbd: options ATKBD_DFLT_KEYMAP # specify the built-in keymap makeoptions ATKBD_DFLT_KEYMAP="ru.koi8-r.pdwn" device psm0 at atkbdc? irq 12 device vga0 at isa? options VESA options VGA_WIDTH90 # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? options SC_DFLT_FONT # compile font in makeoptions SC_DFLT_FONT=cp866 options MAXCONS=24 options SC_HISTORY_SIZE=1000 options SC_MOUSE_CHAR=0x03 options SC_TWOBUTTON_MOUSE options SC_PIXEL_MODE # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) #device apm0 at nexus? flags 0x31 # Advanced Power Management device apm0 at nexus? # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer #device plip # TCP/IP over parallel device ppi # Parallel port interface device #device joy0 at isa? port IO_GAME # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback #pseudo-device ether # Ethernet support #pseudo-device sl 1 # Kernel SLIP pseudo-device ppp 2 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty 16 # Pseudo-ttys (telnet etc) #pseudo-device md # Memory "disks" #pseudo-device gif 4 # IPv6 and IPv4 tunneling #pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) pseudo-device snp pseudo-device vn pseudo-device gzip # Exec gzipped a.out's pseudo-device speaker # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter options MSGBUF_SIZE=40960 device pcm options QUOTA options IPFIREWALL options IPFIREWALL_VERBOSE #options "IPFIREWALL_VERBOSE_LIMIT=100" #options IPDIVERT options DUMMYNET options SOFTUPDATES #device smbus0 #device iicbus0 #device iicbb0 #device intpm0 #device smb0 at smbus? device smbus #device iicbus #device iicbb device intpm #device alpm #device ichsmb device smb #device ic #device iic #device iicsmb options DDB options LIBMCHAIN options LIBICONV options NETSMB options NETSMBCRYPTO options RANDOM_IP_ID options SMBFS options UFS_DIRHASH options PQ_CACHESIZE=128 # color for 128k/16k cache To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011201233021.A989>