From owner-freebsd-sparc64@FreeBSD.ORG Wed Jul 21 12:11:50 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F00C1065674 for ; Wed, 21 Jul 2010 12:11:50 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id ECD248FC1C for ; Wed, 21 Jul 2010 12:11:49 +0000 (UTC) Received: by fxm13 with SMTP id 13so3802753fxm.13 for ; Wed, 21 Jul 2010 05:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=pfIvaVjPk/jESfzrhYvi74iNwIymzGgUrlC8mACnP2Q=; b=tJPjgdSIq2fL7VEjey98lcQ2ilMw4ovmunQMvKUfGyQVU4fNNXAHnfjhork7Ld92EF Nu7/0Pzjri92UAIgIlGQyv1GusZJtBNwSuQirR6d+toqRg8c4HmsVgjc990HBOTb41wK tcxKzcseG49xyAtfpKYCKExUIkQkIP8bbxz7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Cnfq6Yvjtn6vXhqqlIQ5LcFzyQNWUbTdYpXz1r+tpaM93htioar2F6fvK8VKINtH7j 2q2vx3lcyE7/sGd4/vYyJIH44m3qNGAsXeS0fb2g4KRYLxLZV4WzvBTOf8B6nbPi0bXv GQfi0dVzwEkwfKWkfaXfCLPEMg9t11/11x2Co= Received: by 10.223.119.131 with SMTP id z3mr55785faq.61.1279714306548; Wed, 21 Jul 2010 05:11:46 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id l12sm2868351fan.25.2010.07.21.05.11.44 (version=SSLv3 cipher=RC4-MD5); Wed, 21 Jul 2010 05:11:45 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C46E3BB.7060204@FreeBSD.org> Date: Wed, 21 Jul 2010 15:10:35 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Marius Strobl References: <4C404018.6040405@FreeBSD.org> <20100716213503.GT4706@alchemy.franken.de> <4C42A5B9.7080901@FreeBSD.org> <20100718142101.GY4706@alchemy.franken.de> <4C433391.4080808@FreeBSD.org> <20100719122423.GA4706@alchemy.franken.de> <4C44694C.9040108@FreeBSD.org> In-Reply-To: <4C44694C.9040108@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-sparc64@FreeBSD.org Subject: Re: [RFC] Event timers on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2010 12:11:50 -0000 Alexander Motin wrote: > Marius Strobl wrote: >> On Sun, Jul 18, 2010 at 08:02:09PM +0300, Alexander Motin wrote: >>> tick_et_start() status is not checked my MI code at the moment, as error >>> handling in that case is not obvious. Do you like panic of printf there? >> Ah, I haven't looked at the MI code to closely. No, it's not that >> important, a printf should be sufficient for now, I just don't >> want the check to get completely dropped. > > I better do it MI way. It's not so difficult. I am just thinking what > better report from driver: allowed divisors, periods, or rounding function. Here is updated patch for latest HEAD, which should handle this: http://people.freebsd.org/~mav/timers_sparc4.patch I also added support for STICK timecounter. For this moment with lowest priority to not use it by default, until it is tested. -- Alexander Motin