From owner-freebsd-current@FreeBSD.ORG Fri Jun 13 22:49:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA7E337B401 for ; Fri, 13 Jun 2003 22:49:09 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 7788C43F93 for ; Fri, 13 Jun 2003 22:49:09 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 46191 invoked by uid 1000); 14 Jun 2003 05:49:11 -0000 Date: Fri, 13 Jun 2003 22:49:11 -0700 (PDT) From: Nate Lawson To: current@freebsd.org Message-ID: <20030613223701.D46185@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: LoR with buf system caused by pcm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 05:49:10 -0000 Looks like my mp3 playback tried to acquire UFS lockmgr lock with the pcm lock held. Also, got a LoR w/ Giant through a page not present trap. Only the backtrace() is hand-transcribed due to it not being in dmesg. My system appears to be working fine and there was no crash. dmesg ----- pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff irq 11 at device 31.5 on pci0 pcm0: Acquiring lockmgr lock "ufs" with the following non-sleepablelocks held: exclusive sleep mutex pcm0:play:0 (pcm channel) r = 0 (0xc37a8a00) locked @ /usr/src/sys/dev/sound/pcm/dsp.c:146 Sleeping on "spread" with the following non-sleepablelocks held: exclusive sleep mutex pcm0:play:0 (pcm channel) r = 0 (0xc37a8a00) locked @ /usr/src/sys/dev/sound/pcm/dsp.c:146 lock order reversal 1st 0xc37a8a00 pcm0:play:0 (pcm channel) @ /usr/src/sys/dev/sound/pcm/dsp.c:146 2nd 0xc039a0c0 Giant (Giant) @ kern/kern_synch.c:311 Stack backtrace: ...witness_lock _mtx_lock_flags()+0xb1 msleep()+0x6c4 bwait()+0x70 spec_getpages()+0x1d5 spec_vnoperate()+0x18 ffs_getpages()+0x4bc vnode_pager_getpages()+0x77 vm_fault()+0x8f3 trap_pfault()+0xef trap()+0x3ad calltrap()+0x5 --- trap 0xc generic_copyin()+0x32 sndbuf_uiomove()+0xe1 chn_write()+0x10f dsp_write()+0x85 spec_write()+0x190 ... write() syscall()