From owner-freebsd-current Mon Aug 16 13:36:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.49]) by hub.freebsd.org (Postfix) with ESMTP id 475AC14BE4 for ; Mon, 16 Aug 1999 13:36:07 -0700 (PDT) (envelope-from plm@smtp3.xs4all.nl) Received: from localhost. (dc2-isdn106.dial.xs4all.nl [194.109.148.106]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id WAA24214 for ; Mon, 16 Aug 1999 22:36:33 +0200 (CEST) Received: (from plm@localhost) by localhost. (8.9.3/8.9.3) id WAA00337; Mon, 16 Aug 1999 22:36:33 +0200 From: Peter Mutsaers Message-ID: <14264.30288.954283.366312@muon.xs4all.nl> Date: Mon, 16 Aug 1999 22:36:32 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit In-Reply-To: <199908161726.CAA10066@tasogare.imasy.or.jp> References: <199908130352.MAA19931@tasogare.imasy.or.jp> <199908161726.CAA10066@tasogare.imasy.or.jp> X-Mailer: VM 6.65 under Emacs 20.3.1 To: freebsd-current@FreeBSD.ORG Subject: Re: recent apm changes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> "MI" == Mitsuru IWASAKI writes: MI> Hi, MI> I got ASUS P2B M/B & ATX case and assembled new box yesterday. With MI> my patch, new box successfully transit into suspend state. There is MI> no sounds from CPU fun, chassis fun and IDE HDD spin (powered down by MI> BIOS setting, Power management setup -> PM Timers -> HDD Power Down: MI> 1 Min.). The power led keeps flashing during suspending. MI> Without the patch, suspending system is never successful (standby MI> also), message `slept 00:00:00' comes up :-( MI> The key release event seems prevent suspend, so some sort of delay MI> mechanism would be necessary such as my patch. MI> Now I'm wondering why your PC doesn't get quite. I suspect that MI> hardware configuration different from yours (I have no SCSI HD on new MI> box). Any suggestions? After a new cvsup I tried your patch again. Same result. Here is my dmesg output. It is about the same at boot, but the APM debug output when suspend is tried is completely different. Copyright (c) 1992-1999 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #9: Mon Aug 16 20:56:59 MET DST 1999 plm@muon:/var/arch/fbsd/src/sys/compile/PLM Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Xeon/Celeron (350.80-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183f9ff real memory = 268423168 (262132K bytes) avail memory = 257990656 (251944K bytes) Pentium Pro MTRR support enabled Probing for PnP devices: CSN 1 Vendor ID: CTL00e4 [0xe4008c0e] Serial 0x1f5ceca5 Comp ID: PNPb02f [0x2fb0d041] Add hook "pcm resume handler" Add hook "pcm suspend handler" pcm1 (SB16pnp sn 0x1f5ceca5) at 0x220-0x22f irq 5 drq 1 flags 0x15 on isa npx0: on motherboard npx0: INT 16 interface apm0: on motherboard apm: APM BIOS version 0102 apm: Code16 0xc00f0000, Data 0xc00fdbd0 apm: Code entry 0x00007770, Idling CPU disabled, Management enabled apm: CS_limit=0xffff, DS_limit=0xffff apm: Engaged control enabled apm: found APM BIOS v1.2, connected at v1.2 apm: Slow Idling CPU disabled Add hook "default suspend" Add hook "default resume" pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vga-pci0: irq 11 at device 0.0 on pci1 isab0: at device 4.0 on pci0 ata-pci0: at device 4.1 on pci0 ata-pci0: Busmastering DMA supported ata0 at 0x01f0 irq 14 on ata-pci0 ata1 at 0x0170 irq 15 on ata-pci0 chip1: at device 4.2 on pci0 chip2: at device 4.3 on pci0 ahc0: irq 9 at device 9.0 on pci0 ahc0: aic7850 Single Channel A, SCSI Id=7, 3/255 SCBs ed0: irq 10 at device 11.0 on pci0 ed0: address 00:40:95:00:57:83, type NE2000 (16 bit) isa0: on motherboard fdc0: at port 0x3f0-0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60-0x6f on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio2 at port 0x3e8-0x3ef irq 4 on isa0 sio2: type 16550A sio3 at port 0x2e8-0x2ef irq 3 on isa0 sio3: type 16550A ppc0 at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppb0: IEEE1284 device found /NIBBLE/ECP Probing for PnP devices on ppbus0: ppbus0: MLC,PCL,PML lpt0: on ppbus 0 lpt0: Interrupt-driven port ata0: master: setting up UDMA2 mode on PIIX4 chip OK ad0: ATA-4 disk at ata0 as master ad0: 6485MB (13281408 sectors), 13176 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=4, dmamode=2, udmamode=2 ad0: 16 secs/int, 0 depth queue, DMA mode ata0: slave: setting up UDMA2 mode on PIIX4 chip OK ad1: ATA-4 disk at ata0 as slave ad1: 9543MB (19545120 sectors), 19390 cyls, 16 heads, 63 S/T, 512 B/S ad1: piomode=4, dmamode=2, udmamode=2 ad1: 16 secs/int, 0 depth queue, DMA mode ata1: master: setting up UDMA2 mode on PIIX4 chip OK ad2: ATA-3 disk at ata1 as master ad2: 8693MB (17803440 sectors), 17662 cyls, 16 heads, 63 S/T, 512 B/S ad2: piomode=4, dmamode=2, udmamode=2 ad2: 16 secs/int, 0 depth queue, DMA mode Waiting 5 seconds for SCSI devices to settle sa0 at ahc0 bus 0 target 6 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 5.000MB/s transfers (5.000MHz, offset 11) changing root device to wd2s1a APM ioctl: cmd = 0x20005005 called apm_event_enable() cd0 at ahc0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ahc0 bus 0 target 5 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 3.300MB/s transfers cd1: Attempt to query device size failed: NOT READY, Logical unit not ready, cause not reportable up to here at boot time. this happens when APM SUSPEND is activated either through BIOS timer or suspend button: Received APM Event: PMEV_SUSPENDREQ Execute APM hook "pcm suspend handler." Called APM sound suspend hook for unit 1 Execute APM hook "default suspend." Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." resumed from suspended mode (slept 00:00:00) Execute APM hook "pcm resume handler." Called APM sound resume hook for unit 1 Received APM Event: PMEV_USERSUSPENDREQ Execute APM hook "pcm suspend handler." Called APM sound suspend hook for unit 1 Execute APM hook "default suspend." Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." resumed from suspended mode (slept 00:00:00) Execute APM hook "pcm resume handler." Called APM sound resume hook for unit 1 This happens when I issue 'zzz': APM ioctl: cmd = 0x20005001 Execute APM hook "pcm suspend handler." Called APM sound suspend hook for unit 1 Execute APM hook "default suspend." Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." resumed from suspended mode (slept 00:00:00) Execute APM hook "pcm resume handler." Called APM sound resume hook for unit 1 Maybe sound has something to do with it? I'll try again without a sound device. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message