Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195AbdIURRj (ORCPT ); Thu, 21 Sep 2017 13:17:39 -0400 Received: from mga07.intel.com ([134.134.136.100]:17858 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbdIURRh (ORCPT ); Thu, 21 Sep 2017 13:17:37 -0400 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 To: Peter Ujfalusi Cc: dan.j.williams@intel.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH v2] dmaengine: edma: Align the memcpy acnt array size with the transfer Message-ID: <20170921172126.GJ30097@localhost> References: <20170918081626.12878-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170918081626.12878-1-peter.ujfalusi@ti.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 736 Lines: 18 On Mon, Sep 18, 2017 at 11:16:26AM +0300, Peter Ujfalusi wrote: > Memory to Memory transfers does not have any special alignment needs > regarding to acnt array size, but if one of the areas are in memory mapped > regions (like PCIe memory), we need to make sure that the acnt array size > is aligned with the mem copy parameters. > > Before "dmaengine: edma: Optimize memcpy operation" change the memcpy was set > up in a different way: acnt == number of bytes in a word based on > __ffs((src | dest | len), bcnt and ccnt for looping the necessary number of > words to comlete the trasnfer. > > Instead of reverting the commit we can fix it to make sure that the ACNT size > is aligned to the traswnfer. Applied, thanks -- ~Vinod