From owner-p4-projects@FreeBSD.ORG Fri Mar 31 17:37:03 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EF8EA16A422; Fri, 31 Mar 2006 17:37:02 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BECE916A41F; Fri, 31 Mar 2006 17:37:01 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4025543D49; Fri, 31 Mar 2006 17:37:01 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.5.6] (dhcp06.vpn.xcllnt.net [192.168.5.6]) by ns1.xcllnt.net (8.13.4/8.13.4) with ESMTP id k2VHb0r7033446; Fri, 31 Mar 2006 09:37:00 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: <200603310851.42196.jhb@freebsd.org> References: <200603302348.k2UNmDJd096792@repoman.freebsd.org> <200603310851.42196.jhb@freebsd.org> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-3-163184586; protocol="application/pkcs7-signature" Message-Id: From: Marcel Moolenaar Date: Fri, 31 Mar 2006 09:37:04 -0800 To: John Baldwin X-Mailer: Apple Mail (2.746.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Perforce Change Reviews Subject: Re: PERFORCE change 94334 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 17:37:03 -0000 --Apple-Mail-3-163184586 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 31, 2006, at 5:51 AM, John Baldwin wrote: > On Thursday 30 March 2006 06:48 pm, Marcel Moolenaar wrote: >> http://perforce.freebsd.org/chv.cgi?CH=94334 >> >> Change 94334 by marcel@marcel_nfs on 2006/03/30 23:47:36 >> >> Strip-down puc(4): >> o Remove PUC_PORT_TYPE_UART: we always use uart(4) now, so we >> can use PUC_PORT_TYPE_COM for that. >> o Remove PUC_PORT_UART_*: we don't support UART sub-types. All >> UARTs are standard ns8250 again. >> o Remove PUC_FLAGS_MEMORY and PUC_FLAGS_ALTRES: we try I/O ports >> first and if that fails, we try memory. >> o Remove PUC_FASTINTR: we try setting up a fast handler first, >> and if that fails we try a MPSAFE one. > > Unfortunately that algorithm doesn't work in the case of a shared > interrupt > if puc is the first device to attach. The other devices then just > "lose". It's the standard algorithm I use. I expect the platform to either share a fast interrupt handler with a non-fast handler or silently downgrade my fast handler to a mpsafe one if later events demand this. All I can indicate in my driver is what I'm capable of. The MD interrupt code should do what needs to be done based on that and the surrounding environment and subsequent events. I have no visibility over and/or knowledge about that and cannot program for it then. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net --Apple-Mail-3-163184586--