From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv1vv-0007JW-Py for qemu-devel@nongnu.org; Wed, 08 Feb 2012 02:27:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rv1vq-00041x-8N for qemu-devel@nongnu.org; Wed, 08 Feb 2012 02:27:15 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:33893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv1vp-00041b-W1 for qemu-devel@nongnu.org; Wed, 08 Feb 2012 02:27:10 -0500 Received: by bkue19 with SMTP id e19so26925bku.4 for ; Tue, 07 Feb 2012 23:27:07 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <201202071128.45180.paul@codesourcery.com> References: <11ee1a59f2bffdbdf37e49911df0428635cbb36f.1328594621.git.peter.crosthwaite@petalogix.com> <201202071128.45180.paul@codesourcery.com> Date: Wed, 8 Feb 2012 17:27:07 +1000 Message-ID: From: Peter Crosthwaite Content-Type: multipart/alternative; boundary=0015175caebeb3830104b86ed2a7 Subject: Re: [Qemu-devel] [RFC PATCH v2 2/4] cadence_ttc: initial version of device model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: peter.maydell@linaro.org, monstr@monstr.eu, edgar.iglesias@petalogix.com, qemu-devel@nongnu.org, John Linn , duyl@xilinx.com, linnj@xilinx.com, afaerber@suse.de, john.williams@petalogix.com --0015175caebeb3830104b86ed2a7 Content-Type: text/plain; charset=ISO-8859-1 2012/2/7 Paul Brook > > Implemented cadence Triple Timer Counter (TCC) > > It looks like you're implementing a periodic timer as sequence of chained > oneshot timers. This is a bad idea. In qemu interrupt latency may be > high, > so you're likely to suffer from significant time skew. > > Ok, I could implemented the wraparound event as a periodic timer and the match events are kicked off as seperate one-shot timers when the wrap around occurs? There would still be a small delay on match events, but it would get rid of the integration effect of lots of little delays (over many wrap arounds) add up to a significant skew. > Paul > --0015175caebeb3830104b86ed2a7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2012/2/7 Paul Brook &l= t;paul@codesourcery.com>
> Implemented cadence Triple Timer Counter (TCC)

It looks like you're implementing a periodic timer as sequence of= chained
oneshot timers. =A0This is a bad idea. =A0In qemu interrupt latency may be = high,
so you're likely to suffer from significant time skew.

Ok, I could implemented the wraparound event as a periodic timer an= d the match events are kicked off as seperate one-shot timers when the wrap= around occurs? There would still be a small delay on match events, but it = would get rid of the=A0integration effect=A0of lots of little delays (over = many wrap arounds) add up to a significant skew.
=A0
Paul

--0015175caebeb3830104b86ed2a7--