From owner-freebsd-arch@FreeBSD.ORG Thu May 27 03:02:42 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A63A106566B; Thu, 27 May 2010 03:02:42 +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 710FE8FC1C; Thu, 27 May 2010 03:02:41 +0000 (UTC) Received: by fxm20 with SMTP id 20so53538fxm.13 for ; Wed, 26 May 2010 20:02:40 -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=IivUXyPhL5Amc6HmdOJDtoGQgsO/7bKq2jxTjYVEsMs=; b=vQoqN4cL3hWcQCOn956mnt+DEAOpI6jhErq3KaCnxVCDClDgod7nWfuMV2+DL3+tg/ LA+50yGjhdrqRKGYhVKspzYN0fxWOUJWcKwiM4Cb+u7TiU4skyI5KYwPYjqy4PBq5YxR cLkTYdlWksc2pf1Eh869t0jmUZX21KgOWSdtY= 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=s/U9/le8kVpi0tSroNlEVzOVvRrzsBUa+pDejtoB5Oj9syJzAAIhWYVaQ+nG118o4r xsE/aWCxMQ2OvuILD8FHmU4YjoKx7julW8InXwLVwPEP7WQMsuEy/cPNCP/3Pir9uGn0 PGzqi5qwDkW3NKYvW9H0R+EjV9qHOWscUzJDo= Received: by 10.223.161.211 with SMTP id s19mr8423983fax.47.1274929360262; Wed, 26 May 2010 20:02:40 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 7sm3432151far.18.2010.05.26.20.02.38 (version=SSLv3 cipher=RC4-MD5); Wed, 26 May 2010 20:02:39 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BFDE0BD.707@FreeBSD.org> Date: Thu, 27 May 2010 06:02:21 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Brandon Gooch References: <4BFAA1F3.1070206@FreeBSD.org> <4BFAAA47.5060802@freebsd.org> <4BFAB0C5.1020002@FreeBSD.org> <4BFD7E35.9070901@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Andriy Gapon , freebsd-arch@freebsd.org Subject: Re: Event timers X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 03:02:42 -0000 Brandon Gooch wrote: > 2010/5/26 Alexander Motin : >> Alexander Motin wrote: >>> Andriy Gapon wrote: >>>> on 24/05/2010 18:57 Alexander Motin said the following: >>>>> I have defined several points on that way: >>>>> 1*. clean low-level timer drivers from unrelated stuff, >>>>> 2*. make some common code machine-independent, >>>>> 3. write common driver API for event timers (alike to one we have now >>>>> for time counters) to make adding more drivers possible, >>>>> 4. add support for HPET as event timer in addition to time counter, >>>>> 5. add support for timers in one-shot mode (LAPIC and HPET). >>>> I wonder how much you have progressed for 3,4,5. >>> Not really much yet. Learned existing code and hardware specs, have some >>> thought and ready to proceed. >> Here is first approach to 3: >> http://people.freebsd.org/~mav/et.20100526.patch >> , - created common API, heavily refactored attimer, atrtc and lapic >> drivers, written simple and formal common code. Now it is possible to >> use any one or two of these three drivers for either hardclock or >> statclock by just changing weights or disabling them. Tested on i386, >> should work on amd64, probably broken on XEN and pc98 for now. > > From my (minimal) understanding of the timer issues in FreeBSD, > restructuring in this area requires a bold, fearless developer: > > Thanks for taking this on Alexander! > > Are these proposed patches made available for user testing, or mainly > for developer review purposes? Now mostly for developers review. It is not finished yet. Most of features interesting for users is still ahead. -- Alexander Motin