Received: by 10.192.165.148 with SMTP id m20csp3028156imm; Sun, 22 Apr 2018 22:20:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49pIdjv0rlzWdyloU9xwubCdnGERcJuZSUoIJvkw7cE6bpa5xTE6JZuXa9NBcWZcvKQhtTD X-Received: by 10.99.158.85 with SMTP id r21mr15924498pgo.312.1524460852364; Sun, 22 Apr 2018 22:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524460852; cv=none; d=google.com; s=arc-20160816; b=xASXefCKKlT3Hf/Bvu3+0YPK1HufZu8rAg1aT2Jh9Gj1VD4XppCBR+hKzFM+9Cb7ud 2kdJ4imMB2KTHb44hSKreZ8geqT0vb2dYNzUZVuGW4ibGVliuEa8Fx8lHK5aOWHxWtjp 0aOkQypLCivgNsXINo1A+absRSwsUkIbQWPEwsM2fBtlQ3mR7PVuS7GWED5LJSMkd4Jw YPQCT6XeaRYybvz44Thnfs7B4DTjb+jtx6NufNALobfIsPquX0FU5bBIvwc+pcuJfMoJ PmGMco5V6JkQReimUXy5U/11jnnGVaSlU0x+0XKgitF1G1drgIsuRk/Xrtdoam4vNHut 9Iuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=aadWEUGuFbvReb33mXHme5p3WbypSjKdhxRKje+hpWk=; b=e+G6CUiwHOi4lemI8sivWuJchyxhAqbGyZbnTXb2lg/XACyrGVhKdq2VUUhIKSvFm3 s/2pU8EXa8EdWwCUv+OW3SYPEpajaA2iw9SLAil7XI94IYU0sUkKgkQ+vCD37lXzm/HL VzO+jYwCFawflLUus55GIZwGv5bq4vs3rE+Lig1BDODdjv1PVQMRR8HGvHDZo+gqfDka +Nn4lDgyPlVDt7EY2FRVzAxkcOoiMPtlVN9Xadd9JoHro4ZYfIBjBrqRtGwSjw9O6DPP dBwS+IFAINqCANbwG2J5TufkLkpj6UJN+jFR80GhS9KteqyCKf5zaILiNsSLmD3Qm+GT BzYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12-v6si11632174pls.542.2018.04.22.22.20.26; Sun, 22 Apr 2018 22:20:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751368AbeDWFSm (ORCPT + 99 others); Mon, 23 Apr 2018 01:18:42 -0400 Received: from mga14.intel.com ([192.55.52.115]:14688 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbeDWFSk (ORCPT ); Mon, 23 Apr 2018 01:18:40 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2018 22:18:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,316,1520924400"; d="scan'208";a="222540900" Received: from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143]) by fmsmga006.fm.intel.com with ESMTP; 22 Apr 2018 22:18:37 -0700 Date: Mon, 23 Apr 2018 10:53:17 +0530 From: Vinod Koul To: Radhey Shyam Pandey Cc: "dan.j.williams@intel.com" , "michal.simek@xilinx.com" , Appana Durga Kedareswara Rao , "lars@metafoo.de" , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "'RADHEYCS@GMAIL.COM'" Subject: Re: [RFC 4/6] dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit Message-ID: <20180423052317.GZ6014@localhost> References: <1522665546-10035-1-git-send-email-radheys@xilinx.com> <1522665546-10035-5-git-send-email-radheys@xilinx.com> <20180411091102.GZ6014@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 12:28:52PM +0000, Radhey Shyam Pandey wrote: > > > + if ((seg->hw.status & XILINX_DMA_COMP_MASK) || > > > + (!chan->xdev->has_axieth_connected)) { > > > > why the second case ? That is not expalined in log? > In the current implementation, delay timeout is enabled only for > has_axieth_connected usecase. For ethernet, we need real-time processing > while still having benefit of interrupt coalescing. Example: In RX interrupt > coalescing is set to 0x3. Without delay timeout, DMA engine will wait for > all frames and then issue completion interrupt. In ethernet usecase, this > can introduce huge latencies. Delay timeout interrupt will trigger if delay > time period has expired and we can notify dma client with received frames. > > The second case is added to keep the previous implementation as is.(i.e when > Delay timeout interrupt is not enabled - move all active desc to done list). > Sure I will add a description for it in the commit log. That should help, it didn't seem to have anything to do with log or other changes, please keep in mind again that changelog should describe the change and help ppl review... -- ~Vinod