From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v3 1/4] Add correlated clocksource deriving system time from an auxiliary clocksource Date: Fri, 4 Sep 2015 16:28:27 +0200 Message-ID: <20150904142827.GE18489@twins.programming.kicks-ass.net> References: <1440183128-1384-1-git-send-email-christopher.s.hall@intel.com> <1440183128-1384-2-git-send-email-christopher.s.hall@intel.com> <20150904081122.GA4201@netboy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Hall, Christopher S" , Thomas Gleixner , "Kirsher, Jeffrey T" , "hpa@zytor.com" , "mingo@redhat.com" , "john.stultz@linaro.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" To: Richard Cochran Return-path: Content-Disposition: inline In-Reply-To: <20150904081122.GA4201@netboy> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, Sep 04, 2015 at 10:11:22AM +0200, Richard Cochran wrote: > On Thu, Sep 03, 2015 at 11:20:37PM +0000, Hall, Christopher S wrote: > > In addition to the network interface, ART will be used in the audio interface as well. > > We need to support the case where an audio co-processor will control the audio device. > > In this case, the get_ts() function supplied by the audio driver will be very slow > > (several milliseconds) and the result will be out of date by some fraction of that > > amount. > > Why does it take milliseconds to read one audio time stamp? So what I suspect, but please correct me if I'm wrong Chris, is that a DSP will buffer and process audio signals, and only later wake up the main CPU. So by the time the CPU is made aware of the data, it's 'old'.