[{"id":1773013,"web_url":"http://patchwork.ozlabs.org/comment/1773013/","msgid":"<20170921172126.GJ30097@localhost>","list_archive_url":null,"date":"2017-09-21T17:21:26","subject":"Re: [PATCH v2] dmaengine: edma: Align the memcpy acnt array size\n\twith the transfer","submitter":{"id":8232,"url":"http://patchwork.ozlabs.org/api/people/8232/","name":"Vinod Koul","email":"vinod.koul@intel.com"},"content":"On Mon, Sep 18, 2017 at 11:16:26AM +0300, Peter Ujfalusi wrote:\n> Memory to Memory transfers does not have any special alignment needs\n> regarding to acnt array size, but if one of the areas are in memory mapped\n> regions (like PCIe memory), we need to make sure that the acnt array size\n> is aligned with the mem copy parameters.\n> \n> Before \"dmaengine: edma: Optimize memcpy operation\" change the memcpy was set\n> up in a different way: acnt == number of bytes in a word based on\n> __ffs((src | dest | len), bcnt and ccnt for looping the necessary number of\n> words to comlete the trasnfer.\n> \n> Instead of reverting the commit we can fix it to make sure that the ACNT size\n> is aligned to the traswnfer.\n\nApplied, thanks","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"kVvrNI4k\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xyk6822K4z9t3Z\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 03:25:49 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dv5EM-0006Wn-R6; Thu, 21 Sep 2017 17:25:42 +0000","from mga07.intel.com ([134.134.136.100])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dv56s-00087Z-6r for linux-arm-kernel@lists.infradead.org;\n\tThu, 21 Sep 2017 17:18:29 +0000","from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga105.jf.intel.com with ESMTP; 21 Sep 2017 10:17:36 -0700","from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143])\n\tby orsmga002.jf.intel.com with ESMTP; 21 Sep 2017 10:17:33 -0700"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=WbkwSbkZF8CSOFokursBq61AtsUPGwjj3o9UjrnXADw=;\n\tb=kVvrNI4kPlDZ+f\n\t3RNmHbOXJBI0K3GkMn2Nz527J90hxW3jkeNFQlnbH5PmEp17P/qXPAje6+5JTkJixDXvgIve80F5W\n\td6o1QcBxJT8STEpcSAAQETJhGlSbLr+1wwVvyar1amqKdQIwytR6mg7Ufm5zwHW6vesVmebvlvxKl\n\tG/vqSX+XmA9wq6zjkQ9Q55LkWmQkWttB9aFYExm/JgF9aYQW0HYyDCWsBpQH3SkT0AVlmRaYT4tN5\n\tUg+1iafh0RO0jS66MZ6VsfzF+oxXCG62v1RwDxuW0sgK4AKOg3U0yY7Rnhn+kwMICs8HhWp8+nwUG\n\twscBFGJxOi0Ki1fKEmxw==;","X-ExtLoop1":"1","X-IronPort-AV":"E=Sophos;i=\"5.42,425,1500966000\"; d=\"scan'208\";a=\"137990518\"","Date":"Thu, 21 Sep 2017 22:51:26 +0530","From":"Vinod Koul <vinod.koul@intel.com>","To":"Peter Ujfalusi <peter.ujfalusi@ti.com>","Subject":"Re: [PATCH v2] dmaengine: edma: Align the memcpy acnt array size\n\twith the transfer","Message-ID":"<20170921172126.GJ30097@localhost>","References":"<20170918081626.12878-1-peter.ujfalusi@ti.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170918081626.12878-1-peter.ujfalusi@ti.com>","User-Agent":"Mutt/1.5.24 (2015-08-30)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170921_101758_669431_596DBB8C ","X-CRM114-Status":"GOOD (  10.07  )","X-Spam-Score":"-4.2 (----)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-4.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [134.134.136.100 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-kernel@vger.kernel.org, stable@vger.kernel.org,\n\tdmaengine@vger.kernel.org, dan.j.williams@intel.com,\n\tlinux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]