From owner-freebsd-current@FreeBSD.ORG Sun May 2 10:17:47 2004 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 8D2EF16A4CE for ; Sun, 2 May 2004 10:17:47 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F6A543D3F for ; Sun, 2 May 2004 10:17:47 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id i42HHeZJ023526; Sun, 2 May 2004 11:17:41 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 02 May 2004 11:18:15 -0600 (MDT) Message-Id: <20040502.111815.74057370.imp@bsdimp.com> To: bde@zeta.org.au From: "M. Warner Losh" In-Reply-To: <20040502130027.O1806@gamplex.bde.org> References: <20040430102504.477152ce.bm@malepartus.de> <20040501.162455.37300016.imp@bsdimp.com> <20040502130027.O1806@gamplex.bde.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: bm@malepartus.de cc: freebsd-current@freebsd.org Subject: Re: sio: lots of silo overflows on Asus K8V with Moxa Smartio C104H/PCI 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: Sun, 02 May 2004 17:17:47 -0000 In message: <20040502130027.O1806@gamplex.bde.org> Bruce Evans writes: : No, but siointr() doesn't go near the tty layer or almost any other : layer. It uses pseudo-dma and schedules a SWI to transfer data between : its buffers and the tty layer. Fast interrupt handlers cannot call : other layers because they cannot reasonable lock other layers or : vice versa. (Even the call to the scheduler to schedule a SWI in the : current implementation is a layering violation.) So it is also safe to call the tty layer w/o giant held from the SWI? I guess that was my question. Or is the SWI wrapped in Giant when I wasn't looking... Warner