Date: Thu, 23 Mar 2000 10:20:36 -0800 From: Steve Feldman <feldman@twincreeks.net> To: freebsd-mobile@freebsd.org Subject: suspend problems on VAIO Z505HS Message-ID: <20000323102036.A3686@twincreeks.net>
next in thread | raw e-mail | index | archive | help
I've got a brand new Sony VAIO PCG-Z505HS. It works pretty well, except for a problem I've been having with suspend/resume. When I suspend the system with 'zzz' or Fn-ESC then resume, more often than not the system comes back in a funny state. It seems as if the file system is getting scrambled, either in-core or on the disk. Sometimes some commands just won't work (claiming a bad magic number), other times I've seen /kernel actually get changed on the disk. The other day some of the inodes on disk actually got trashed to the point where I had to completely re-install FreeBSD. I'm running 3.4-RELEASE + PAO3-20000130. It doesn't seem to have any problems suspending under win98. Has anyone else seen anything like this? Does anyone else have suspend/resume working properly on a Z505HS? Current config/dmesg appended. Steve # # PAO_ALL --- Generic Laptop Configuration with PAO project. # (based on GENERIC) # # For more information on this file, please read the PAO Frequently # Asked Question and handbook section on Kernel Configuration Files: # # http://www.jp.FreeBSD.org/PAO/#faq # http://www.freebsd.org/handbook/kernelconfig-config.html # # If you have any questions, please contact the FreeBSD-mobile Mailing # List (English) <freebsd-mobile@FreeBSD.ORG> and BSD-nomads Mailing # List (Japanese) <bsd-nomads@clave.gr.jp>. See the PAO home page # (http://www.jp.FreeBSD.org/) for more information. # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.ORG/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $Id: PAO_ALL,v 1.19 2000/01/17 14:55:30 iwasaki Exp $ machine "i386" cpu "I386_CPU" cpu "I486_CPU" cpu "I586_CPU" cpu "I686_CPU" ident VAIO_PAO maxusers 10 options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MFS #Memory Filesystem options MFS_ROOT #MFS usable as root device, "MFS" req'ed options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, "NFS" req'ed options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options "CD9660_ROOT" #CD-ROM usable as root. "CD9660" req'ed options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Be pessimistic about Joe SCSI device options UCONSOLE #Allow users to grab the console options FAILSAFE #Be conservative options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) syscall trace support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options "VM86" #see if suspend/resume works better? # You may need to reset all pccards after resuming options PCIC_RESUME_RESET # Detach SCSI devices when the SCSI card is removed #options SCSI_DETACH # Detach ATAPI devices when the ATA card is removed options ATAPI_DETACH # Japanese version of WaveLAN PCMCIA uses 2.4GHz band instead of 915MHz # band that US version uses. If you want to use Japanese version of # WaveLAN, uncomment this line, or edit the corresponding config entry # of /etc/pccard.conf. #options "WAVELAN_PCMCIA_24" # PAO Enhanced PCI-PCIC support (experimental) #options CB_TEST #options FORCE_IRQ_ROUTING config kernel root on wd0 # To make an SMP kernel, the next two are needed #options SMP # Symmetric MultiProcessor Kernel #options APIC_IO # Symmetric (APIC) I/O # Optionally these may need tweaked, (defaults shown): #options NCPU=2 # number of CPUs #options NBUS=4 # number of busses #options NAPIC=1 # number of IO APICs #options NINTR=24 # number of INTs controller isa0 controller pnp0 # PnP support for ISA controller eisa0 controller pci0 # PCCARD (PCMCIA) support - do not remove. pseudo-device card 1 # You must use "flags 0x1" when you don't hear any negotiation noise(?) # if you use modem card, or pccardd doesn't read cis tuple, tell you # 'No card in database for"(null)"("(null)")' in case of Cirrus Logic's # pcic is your PC. #device pcic0 at isa? port 0x3e0 flags 0x1 irq 11 device pcic0 at isa? port 0x3e0 irq 11 #device pcic0 at isa? port 0x3e4 irq 11 #device pcic1 at isa? port 0x3e2 # for HiNote Ultra II #device pcic1 at isa? port 0x3e4 # for Chandra II # Floppy drives controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 disk fd0 at fdc0 drive 0 #disk fd1 at fdc0 drive 1 # Libretto PCMCIA floppy support #controller fdc1 at isa? disable port "IO_YEFDC" bio irq ? #disk fd2 at fdc1 drive 0 #disk fd3 at fdc1 drive 1 options FDC_YE # IDE controller and disks options "CMD640" # work around CMD640 chip deficiency controller wdc0 at isa? port "IO_WD1" bio irq 14 disk wd0 at wdc0 drive 0 #disk wd1 at wdc0 drive 1 #controller wdc1 at isa? port "IO_WD2" bio irq 15 #disk wd2 at wdc1 drive 0 #disk wd3 at wdc1 drive 1 # Flash ATA / ATA HDD / ATAPI drive support controller wdc2 at isa? disable port 0x340 bio irq ? disk wd4 at wdc2 drive 0 #disk wd5 at wdc2 drive 1 controller wdc3 at isa? disable port 0x360 bio irq ? disk wd6 at wdc3 drive 0 #disk wd7 at wdc3 drive 1 # ATAPI devices options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device acd0 #IDE CD-ROM #device wfd0 #IDE Floppy (e.g. LS-120) # SCSI Controllers # A single entry for any of these controllers (ncr, ahb, ahc) is # sufficient for any number of installed devices. controller ncr0 # NCR/Symbios Logic controller ahb0 # EISA AHA1742 family controller ahc0 # AHA2940 and onboard AIC7xxx devices controller amd0 # AMD 53C974 (Teckram DC-390(T)) controller isp0 # Qlogic family controller dpt0 # DPT Smartcache - See LINT for options! controller uhci0 controller usb0 device ugen0 device ukbd0 device ums0 controller adv0 at isa? port ? cam irq ? controller adw0 controller bt0 at isa? port ? cam irq ? controller aha0 at isa? port ? cam irq ? controller aic0 at isa? port ? cam irq ? # SCSI peripherals # Only one of each of these is needed, they are dynamically allocated. controller scbus0 # SCSI bus (required) device da0 # Direct Access (disks) device od0 # Optical Memory (MO etc) device sa0 # Sequential Access (tape etc) device cd0 # CD device pass0 # Passthrough device (direct SCSI) # Proprietary or custom CD-ROM Interfaces device wt0 at isa? port 0x300 bio irq 5 drq 1 device mcd0 at isa? port 0x300 bio irq 10 device matcd0 at isa? port 0x230 bio device scd0 at isa? port 0x230 bio # atkbdc0 controls both the keyboard and the PS/2 mouse controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device psm0 at isa? tty irq 12 device vga0 at isa? port ? conflicts # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? tty # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? tty #options XSERVER # support for X server #options FAT_CURSOR # start with block cursor # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines #options PCVT_SCANSET=2 # IBM keyboards are non-std # Floating point support - do not disable. device npx0 at isa? port IO_NPX irq 13 # Power management support device apm0 at isa? # Advanced Power Management # # Notes on APM # The flags takes the following meaning for apm0: # 0x0002 Limit APM protocol to 1.0. # 0x0004 Don't adjust clock on suspend/resume. # 0x0008 Don't trust the segment limits that the BIOS reports. # If `options VM86' is set, V86 mode is used in APM initialization # instead of real mode. VM86 is recommended if you want to use APM. # # Suspend the system when the battery status is "Low" #options "APM_BATT_LOW_SUSPEND" # If you want to use NTP on laptop machines, uncomment the following # option. Current APM implementation affects NTP client. #options "APM_NO_CLOCK_ADJUST" # Limit APM protocol to 1.0. #options "FORCE_APM10" # Don't trust the segment limits that the BIOS reports; instead give it # as much space as possible to avoid lossage due to sloppy BIOS # programming. #options "APM_FORCE_64K_SEG" # Serial (COM) ports & PCCARD modem etc. device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 device sio1 at isa? port "IO_COM2" tty irq 3 device sio2 at isa? disable port "IO_COM3" tty irq 5 device sio3 at isa? disable port "IO_COM4" tty irq 9 device sio4 device sio5 # Parallel port device ppc0 at isa? port? flags 0x40 net irq 7 controller ppbus0 # Parallel port bus (required) device lpt0 at ppbus? # Printer device plip0 at ppbus? # TCP/IP over parallel device ppi0 at ppbus? # Parallel port interface device #controller vpo0 at ppbus? # Requires scbus and da0 # PCI Ethernet NICs. #device al0 # ADMtek AL981 (``Comet'') #device ax0 # ASIX AX88140A #device de0 # DEC/Intel DC21x4x (``Tulip'') #device fxp0 # Intel EtherExpress PRO/100B (82557, 82558) #device mx0 # Macronix 98713/98715/98725 (``PMAC'') #device pn0 # Lite-On 82c168/82c169 (``PNIC'') #device rl0 # RealTek 8129/8139 #device sf0 # Adaptec AIC-6915 DuraLAN (``Starfire'') #device sis0 # Silicon Integrated Systems SiS 900/SiS 7016 #device ste0 # Sundance ST201 (D-Link DFE-550) #device tl0 # Texas Instruments ThunderLAN #device tx0 # SMC 9432TX (83c170 ``EPIC'') #device vr0 # VIA Rhine, Rhine II #device vx0 # 3Com 3c590, 3c595 (``Vortex'') #device wb0 # Winbond W89C840F #device xl0 # 3Com 3c90x (``Boomerang'', ``Cyclone'') # ISA & PCCARD Ethernet NICs. # Order is important here due to intrusive probes, do *not* alphabetize # this list of network interfaces until the probes have been fixed. # Right now it appears that the ie0 must be probed before ep0. See # revision 1.20 of this file. device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 device ed1 at isa? disable port 0x300 net irq 10 iomem 0xd8000 device ie0 at isa? disable port 0x300 net irq 10 iomem 0xd0000 device ep0 at isa? port 0x300 net irq 10 device ep1 at isa? disable port 0x300 net irq 10 device ex0 at isa? disable port? net irq? device fe0 at isa? port 0x300 net irq ? device fe1 at isa? disable port 0x300 net irq ? device le0 at isa? disable port 0x300 net irq 5 iomem 0xd0000 device lnc0 at isa? disable port 0x280 net irq 10 drq 0 device cs0 at isa? disable port 0x300 net irq ? device sn0 at isa? port 0x300 net irq 10 device sn1 at isa? disable port 0x300 net irq 10 device wlp0 at isa? port 0x300 net irq 11 device wlp1 at isa? disable port 0x300 net irq 11 device cnw0 at isa? port 0x300 net irq 5 device cnw1 at isa? disable port 0x300 net irq 5 device ux0 at isa? port 0x300 net irq 5 device wi0 at isa? port? net irq ? device xe0 at isa? port? net irq ? device awi0 at isa? port 0x300 net irq 5 # do not enable ze0 and zp0 (these devices are obsolete) ##device ze0 at isa? port 0x300 net irq 10 iomem 0xd8000 ##device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 # IBM Smart Capture PCMCIA card device scc0 device scc1 # Hitachi microcomputer system Speach Synthesizer card device hss0 device hss1 # PCMCIA Joystick device joy0 at isa? disable port "IO_GAME" # PCMCIA GPIB card device gp0 at isa? disable port 0x2c0 tty # Sound (?) device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x0 # 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 # ppp(8) uses tun instead of ppp device #pseudo-device ppp 1 # Kernel PPP pseudo-device tun 1 # Packet tunnel pseudo-device pty 16 # Pseudo-ttys (telnet etc) pseudo-device gzip # Exec gzipped a.out's pseudo-device vn # Vnode driver (turns a file into a device) # # Enable the kernel debugger. # options DDB # The `bpfilter' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # The number of devices determines the maximum number of # simultaneous BPF clients programs runnable. pseudo-device bpfilter 4 #Berkeley packet filter options "P1003_1B" options "_KPOSIX_PRIORITY_SCHEDULING" options "_KPOSIX_VERSION=199309L" # try to make mouse work after suspend options PSM_HOOKAPM #hook the APM resume event, useful options PSM_RESETAFTERSUSPEND #reset the device at the resume event # for 'wine': options USER_LDT #allow user-level control of i386 ldt Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.4-RELEASE #1: Wed Mar 22 20:45:01 PST 2000 root@snoopy.twincreeks.net:/usr/src/sys/compile/VAIO_PAO Timecounter "i8254" frequency 1193182 Hz CPU: Unknown 80686 (496.31-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,<b25>> real memory = 134217728 (131072K bytes) config> di ze0 No such device: ze0 Invalid command or syntax. Type `?' for help. config> di lnc0 config> di le0 config> di ie0 config> di fe0 config> di ex0 config> di ep0 config> di ed0 config> di cs0 config> di wt0 config> di wdc1 No such device: wdc1 Invalid command or syntax. Type `?' for help. config> di mcd0 config> di matcdc0 config> di bt0 config> di aic0 config> di aha0 config> di adv0 config> q avail memory = 126951424 (123976K bytes) Preloaded elf kernel "kernel" at 0xc0377000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc037709c. Pentium Pro MTRR support enabled Probing for devices on PCI bus 0: chip0: <Intel 82443BX host to PCI bridge> rev 0x03 on pci0.0.0 chip1: <Intel 82443BX host to AGP bridge> rev 0x03 on pci0.1.0 chip2: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.7.0 ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.7.1 uhci0: <Intel 82371AB/EB USB Host Controller> rev 0x01 int d irq 9 on pci0.7.2 chip3: <Intel 82371AB Power management controller> rev 0x03 on pci0.7.3 pcic0: <Ricoh RL5C475 PCI-CardBus Bridge> rev 0x80 int a irq 255 on pci0.12.0 RL5C4XX PCI Config Reg: [CSC isa irq] Probing for devices on PCI bus 1: vga0: <NeoMagic model 0005 VGA-compatible display device> rev 0x20 int a irq 9 on pci1.0.0 Probing for PnP devices: Probing for devices on the ISA bus: sc0 on isa sc0: VGA color <16 virtual consoles, flags=0x0> wi0 not found atkbdc0 at 0x60-0x6f on motherboard atkbd0 irq 1 on isa psm0 irq 12 on isa psm0: model Generic PS/2 mouse, device ID 0 sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1 not found at 0x2f8 pcm0 at 0x220 irq 5 drq 1 on isa Unknown card 0x0 0x0 -- hope it is SBPRO fdc0: direction bit not set fdc0: cmd 3 failed at out byte 1 of 3 fdc0 not found at 0x3f0 wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <TOSHIBA MK1214GAP> wd0: 11513MB (23579136 sectors), 23392 cyls, 16 heads, 63 S/T, 512 B/S scd0 not found at 0x230 ppc0 at 0x378 irq 7 flags 0x40 on isa ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: <generic printer> on ppbus 0 lpt0: Interrupt-driven port ppi0: <generic parallel i/o> on ppbus 0 plip0: <PLIP network interface> on ppbus 0 sn0 not found at 0x300 wlp0 not found at 0x300 cnw0 not found at 0x300 ux0 not found at 0x300 xe0: probe xe0 not found awi0 not found at 0x300 pcic0 at 0x3e0-0x3e1 irq 11 on isa PC-Card ctlr(0) Ricoh RL5C475/476 [CardBus bridge mode] (5 mem & 2 I/O windows) pcic0: slot 0 controller I/O address 0x3e0 vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa npx0 on motherboard npx0: INT 16 interface apm0 on isa apm: found APM BIOS version 1.2 usb0: <Intel 82371AB/EB USB Host Controller> uhub0 at usb0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Initializing PC-card drivers: awi ux aic fdc gp hss cnw ed ep fe sn wi wlp xe joy scc sio wdc changing root device to wd0s2a Card inserted, slot 0 card0: assign wi0 iobase 0x240 irq 3 wi0: <WaveLAN/IEEE 802.11> at 0x240-0x27f irq 3 on isa wi0: Ethernet address: 00:e0:63:50:17:ad To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000323102036.A3686>