From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751618AbdGRQXU (ORCPT ); Tue, 18 Jul 2017 12:23:20 -0400 Received: from mga01.intel.com ([192.55.52.88]:26308 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751380AbdGRQXS (ORCPT ); Tue, 18 Jul 2017 12:23:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,378,1496127600"; d="scan'208";a="1196865739" Date: Tue, 18 Jul 2017 21:56:03 +0530 From: Vinod Koul To: Sinan Kaya Cc: dmaengine@vger.kernel.org, timur@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Dan Williams , linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 2/2] dmaengine: dmatest: add support for memset test Message-ID: <20170718162602.GW3053@localhost> References: <1498789858-18583-1-git-send-email-okaya@codeaurora.org> <1498789858-18583-2-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1498789858-18583-2-git-send-email-okaya@codeaurora.org> 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 On Thu, Jun 29, 2017 at 10:30:58PM -0400, Sinan Kaya wrote: > Introducing memset test into dmatest. This change allows us to test > memset capable HW using the dmatest test procedure. The new dmatest > value for memset is 2 and it is not the default value. > > Memset support patch shares the same code path as the other dmatest > code to reuse as much as we can. > > The first value inside the source buffer is used as a pattern > to fill in the destination buffer space. > > Prior to running the test, source/destination buffers are initialized > in the current code. > > "The remaining bits are the inverse of a counter which increments by > one for each byte address." > > Memset test will fill in the upper bits of pattern with the inverse of > fixed counter value 1 as opposed to an incrementing value in a loop. > > An example run is as follows: > > echo dma0chan0 > /sys/module/dmatest/parameters/channel > echo 2 > /sys/module/dmatest/parameters/dmatest > echo 2000 > /sys/module/dmatest/parameters/timeout > echo 10 > /sys/module/dmatest/parameters/iterations > echo 1 > /sys/module/dmatest/parameters/run Applied, thanks -- ~Vinod