From owner-freebsd-current Sun Jan 23 11:58:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 4EC2014CA4 for ; Sun, 23 Jan 2000 11:58:23 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id LAA81502; Sun, 23 Jan 2000 11:58:11 -0800 (PST) (envelope-from dillon) Date: Sun, 23 Jan 2000 11:58:11 -0800 (PST) From: Matthew Dillon Message-Id: <200001231958.LAA81502@apollo.backplane.com> To: Nick Hibma Cc: FreeBSD CURRENT Mailing List Subject: Re: mmap problem when resuming while mpg123 is playing References: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :The following error shows up in my messages log when mpg123 is playing :songs off a mounted CD ROM when the laptop is suspended and resumed. : :Jan 23 11:21:04 henny /kernel: resumed from suspended mode (slept :00:36:53) :Jan 23 11:21:04 henny /kernel: ata0: resetting devices .. done :Jan 23 11:21:04 henny /kernel: ata1: resetting devices .. done :Jan 23 11:21:04 henny /kernel: vm_fault: pager read error, pid 9309 :(mpg123) :Jan 23 11:21:04 henny /kernel: pid 9309 (mpg123), uid 0: exited on :signal 11 (core dumped) : :The contents of the cd can no longer be accessed. umount /cdrom does not :work, umount -f /cdrom does, but the system later on panics in __getcwd, :eventhough I had exitted all the shells (logged out) before doing the :forced unmount. : :After mounting the CD again (before the panic happens) the CD is :accessible again. This isn't an mmap() problem. It would appear to me that the CD's device driver gets confused and starts generating I/O errors when you resume after a suspend. I think you've found multiple bugs here. First, the fact that the CD fails on resume (which may not be easy to fix - it's a job for the device driver writers to track down), and second the __getcwd panic, which is probably fairly easy to fix if we can get a stack backtrace or kernel core dump. -Matt :... :Jan 23 12:09:37 henny /kernel: acd0: read 2416KB/s (2416KB/s), 128KB :buffer, PIO4 :Jan 23 12:09:37 henny /kernel: acd0: Reads: CD-DA :Jan 23 12:09:37 henny /kernel: acd0: Audio: play, 16 volume levels :Jan 23 12:09:37 henny /kernel: acd0: Mechanism: ejectable tray :Jan 23 12:09:38 henny /kernel: acd0: Medium: no/blank disc inside, :unlocked :Jan 23 12:09:38 henny /kernel: pccard: card inserted, slot 1 :Jan 23 12:09:38 henny /kernel: ata_command: timeout waiting for :interrupt :Jan 23 12:09:38 henny /kernel: Mounting root from ufs:/dev/ad0s2a : :-- :n_hibma@webweaving.org :n_hibma@freebsd.org USB project :http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message