From owner-freebsd-alpha Fri Dec 15 12: 1:41 2000 From owner-freebsd-alpha@FreeBSD.ORG Fri Dec 15 12:01:39 2000 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id B65F937B400; Fri, 15 Dec 2000 12:01:36 -0800 (PST) Received: from mail.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id eBFK1Th16278 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Fri, 15 Dec 2000 21:01:32 +0100 (MET) Received: from cicely5.cicely.de (cicely5.cicely.de [fec0:0:0:104::5]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id eBFK1jm26328 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Fri, 15 Dec 2000 21:01:52 +0100 (CET) Received: (from ticso@localhost) by cicely5.cicely.de (8.11.1/8.11.1) id eBFK1aF62196; Fri, 15 Dec 2000 21:01:36 +0100 (CET) (envelope-from ticso) Date: Fri, 15 Dec 2000 21:01:36 +0100 From: Bernd Walter To: =?iso-8859-1?Q?G=E9rard_Roudier?= Cc: Andrew Gallatin , John Baldwin , Matthew Jacob , alpha@FreeBSD.ORG Subject: Re: mutex/ithread jitters? Message-ID: <20001215210136.C62048@cicely5.cicely.de> References: <14905.6815.2347.450995@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0.1i In-Reply-To: ; from groudier@club-internet.fr on Thu, Dec 14, 2000 at 10:29:38PM +0100 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Dec 14, 2000 at 10:29:38PM +0100, Gérard Roudier wrote: > > > On Thu, 14 Dec 2000, Andrew Gallatin wrote: > > > John Baldwin writes: > > > > > > Sounds like lost interrupts. Possibly the interrupt isn't being enabled > > > properly after the ithread finishes running the handler. > > > > Maybe it is time to accept defeat on squelching interrupts at their source > > and leave the IPL raised until the handler is run? > > I am not an arch. guy and I will be fixed by jhb for sure :). Thanks by > advance Jhon for teaching me. :) > > My understanding is that Alpha is actually IPL based and masking using > actual level will kill most advantages if threading interrupts, at least > for level sensitive. My probably false understanding let me think that > result will be increase of interrupt latency without any gain in anything > by threading interrupt handlers. In my understanding the reason for implementing ithread was not to get a better response time but it is neccessary to make use of mutexes for interupt processing. Maybe it's better schedule an ithread only if we need to block which should be unlikely if designed properly and keep IPL raised if sensefull for the platform. But I'm far away from being capable of implementing this. Anyway - if the 4100 has a similar behavour as the PC164 had I'm more willing to believe that the PC164 is in reality not broken. I fact my PC164 masked ints fine several times until it stoped which sounds similar to what is being said for the 4100. Another point is that there are lots of MBs in tsunami_intr_enable/disable especialy the dups are questionable - what's the reason not trusting a single one? But I can't see where writing to hardware is enshured - are the registers marked non-cacheable - but then why an mb? I asume 4100 is tsunami based as I can't find any reference in alpha/dec_kn300.c for defining of platform.intr_disable/enable. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message