From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754554Ab1IEPPZ (ORCPT ); Mon, 5 Sep 2011 11:15:25 -0400 Received: from mga02.intel.com ([134.134.136.20]:60061 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754292Ab1IEPPX (ORCPT ); Mon, 5 Sep 2011 11:15:23 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="45216154" Subject: Re: [PATCH] dma: shdma: transfer based runtime PM From: Vinod Koul To: Guennadi Liakhovetski Cc: linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, Dan Williams , Paul Mundt In-Reply-To: <1315227964.26251.68.camel@vkoul-udesk3> References: <1314282386.1606.42.camel@vkoul-udesk3> <1314283286.1606.52.camel@vkoul-udesk3> <1314292850.1606.88.camel@vkoul-udesk3> <1314619909.1606.130.camel@vkoul-udesk3> <1314622113.1606.134.camel@vkoul-udesk3> <1314698257.1606.159.camel@vkoul-udesk3> <1315227964.26251.68.camel@vkoul-udesk3> Content-Type: text/plain; charset="UTF-8" Date: Mon, 05 Sep 2011 20:43:16 +0530 Message-ID: <1315235596.26251.201.camel@vkoul-udesk3> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2011-09-05 at 18:36 +0530, Vinod Koul wrote: > On Mon, 2011-09-05 at 10:10 +0200, Guennadi Liakhovetski wrote: > > Hi Vinod > > > > On Tue, 30 Aug 2011, Guennadi Liakhovetski wrote: > Please dont top post... > > > Sorry, I see it differently. I don't use any counters in my patch. I'm > > > only checking for empty queue, i.e., I'm just identifying the first > > > descriptor submission and the last completion or termination. > > > > > > > You juts need > > > > to call _put/_get at right places, which IMO l;ooks lot simpler than > > > > current approach > > > > > > If we didn't have to check for exact symmetry, then yes, I agree, this > > > would be cleaner. I.e., if we indeed had well-defined entry- and > > > exit-points, which are guaranteed to be called exact same number of times. > > > Like, e.g., with file open() / close() etc. But since we don't have this > > > symmetry, and instead have to add flags and iterate lists, this doesn't > > > look natural and simple to me anymore, sorry. > > > > What about this one? Would you be prepared to take it as is, or you still > > think, that a pm_runtime_get*() on each descriptor submission would be > > better? > I think I will go with your current approach. Let me review again and > check it. If I get time it should be in my tree by tonight This patch fails to apply for me, can you please rebase it to me tree and resend, I will apply it later this week -- ~Vinod