Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763601AbYBNTVe (ORCPT ); Thu, 14 Feb 2008 14:21:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757841AbYBNTV1 (ORCPT ); Thu, 14 Feb 2008 14:21:27 -0500 Received: from nat-132.atmel.no ([80.232.32.132]:53778 "EHLO relay.atmel.no" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756772AbYBNTV0 (ORCPT ); Thu, 14 Feb 2008 14:21:26 -0500 Date: Thu, 14 Feb 2008 20:21:28 +0100 From: Haavard Skinnemoen To: "Dan Williams" Cc: linux-kernel@vger.kernel.org, "Shannon Nelson" , "David Brownell" , kernel@avr32linux.org, "Francis Moreau" , "Paul Mundt" , "Vladimir A. Barinov" , "Pierre Ossman" Subject: Re: [RFC v2 5/5] Atmel MCI: Driver for Atmel on-chip MMC controllers Message-ID: <20080214202128.245adfd3@siona> In-Reply-To: References: <1201630213-31900-1-git-send-email-hskinnemoen@atmel.com> <1201630213-31900-2-git-send-email-hskinnemoen@atmel.com> <1201630213-31900-3-git-send-email-hskinnemoen@atmel.com> <1201630213-31900-4-git-send-email-hskinnemoen@atmel.com> <1201630213-31900-5-git-send-email-hskinnemoen@atmel.com> <1201630213-31900-6-git-send-email-hskinnemoen@atmel.com> <20080213220646.081583d6@siona> <20080214093623.78d3baf3@dhcp-252-066.norway.atmel.com> Organization: Atmel X-Mailer: Claws Mail 2.10.0 (GTK+ 2.12.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1786 Lines: 41 On Thu, 14 Feb 2008 11:34:03 -0700 "Dan Williams" wrote: > On Thu, Feb 14, 2008 at 1:36 AM, Haavard Skinnemoen > wrote: > > It's ok to use PIO for small and/or odd transfers like "read 2 bytes > > from this SDIO register", something that the mmc-block driver would > > never ask us to do. Using PIO for huge block data transfers will really > > hurt. > > Except your testing has already shown that running out of descriptors > rarely, if ever happens. It just becomes an exercise in tuning the > pool size, and letting this simple fall back mechanism be a safety net > for the corner cases. True...it's just that you normally expect _better_ performance when increasing the size of the transfer. I'm just afraid that someone might start tuning things elsewhere, only to find that crossing a certain threshold gives a drastic reduction in performance. That would be completely counter-intuitive. > > I think I'll try triggering the mmc tasklet from the DMA callback for > > now. Scheduling a tasklet from another tasklet should work just fine, > > right? > > Yeah that should work because you are no longer under the channel lock. Right. And if we insert the interrupt descriptor somewhere in the middle instead of at the end, we should be able to submit a new batch of descriptors before the previous batch is exhausted, thus maintaining maximum throughput without any pauses. I'll probably keep it simple at first though. Gotta save some optimizations for later ;) Haavard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/