From: Takashi Iwai Subject: Re: [PATCH 1/2 v2] ASoC: soc-cache: block based rbtree compression Date: Tue, 03 May 2011 16:07:42 +0200 Message-ID: References: <20110503094319.GA27833@sirena.org.uk> <20110503104701.GD1762@opensource.wolfsonmicro.com> <20110503110205.GE1762@opensource.wolfsonmicro.com> <20110503130259.GK1762@opensource.wolfsonmicro.com> <20110503132420.GM1762@opensource.wolfsonmicro.com> <20110503135117.GA2893@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id DEFA9103821 for ; Tue, 3 May 2011 16:07:46 +0200 (CEST) In-Reply-To: <20110503135117.GA2893@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Dimitris Papastamos , alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, Liam Girdwood , Liam Girdwood List-Id: alsa-devel@alsa-project.org At Tue, 3 May 2011 14:51:28 +0100, Mark Brown wrote: > > On Tue, May 03, 2011 at 03:32:47PM +0200, Takashi Iwai wrote: > > > Hrm, then I don't understand why changing the cache management changes > > the bulk I/O behavior as you described. What's missing there? > > If we can't get the data laid out in a contiguous array in memory then > we have to gather the data for transmit in the I/O code which is > painful and wasteful. But it's just a matter of CPU usage to look for the caches. Well, what I don't understand is the text you wrote: | > So... when the low-level stuff updates the registers in a block | > manner, it'll update caches of several registers at once, too. | > If I understand correctly, the patches help for reducing the CPU usage | > because the registers looked up in such a case tend to be adjacent. | > Or am I missing other scenario? | | This isn't about CPU usage, it's about I/O bandwidth which is a big | concern in situations like resume where you can be bringing the device | back up from cold. How does the contiguous memory layout inside the cache management reduce the I/O bandwidth...? Takashi