Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp405517pxb; Thu, 19 Aug 2021 02:18:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoewWhnU/gmNC8EwZL4jsx6R38JVRVFDPWmryjPiUnoZ1C994KjPACuZIXVTImrUGK9TWd X-Received: by 2002:aa7:c3d0:: with SMTP id l16mr15239625edr.122.1629364714127; Thu, 19 Aug 2021 02:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629364714; cv=none; d=google.com; s=arc-20160816; b=jtJJ/6aF0x6MFzkOSHAbpMLNtjXypKb3HCor0HQYREPH5IlDd2AeE6n8qAhU43W/Qt j6SPTOpDZeJNbzaAqAR9482/BzuTFkv0e83QO/DbxCIiiLwh+P6a0pbHUkcwLi3eUAmf dDLnIykLVGuPkkKgkSarwmZUDrepia7M4rC9WX5ilULkz1AntBiYhrUd4/uNYHCsWFU4 KolgJQtUdodRsFERE6fontkODrIDPSP8TpzjbQC0FVABiFLV81beSRqZSIHZy8H340jS ixWZ2priFPwu1CpEGEhpEy7kCGwos6Ltt4sGtRCtVQFwRRowejVmm7E/s0wkQqlq/W4E GxJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mu9b4mblc/ExPlSUnMroTgqBzEI9hLYiUrbLs2ZdCaU=; b=fkDqXiuJck7svpcHLPup54Jj7OzXyVm5e+w+DxAMZlNcGwb30AnnSi0DqzsFgijD+x 8N5t6NeJX5i4vxm3MzHmKQYqXzS0Z7Rq8pA/Rc/jrVUsLIOHOg3WPJGK022rwnxIqn9B 2qvCbDf+xcwdg/ORNolzYM8Q70+eVr2hVvwByQK7AeHpl5juF82FqgvMgI+npSmgeAa4 IxqRRAuoUUPitBdEFf+aTXqpM9m2TqRumOitQhJWlGVD2NwktWQRuSQQR8wjiT6UDiCy DekGQ9P7UD1TydiDeJW9eV8vOOMqnOH1dXB1ezD5cxplfz8eLkRU590Y9l/9fs9lo21d xpYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xeqOJFv4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc11si2546987ejc.728.2021.08.19.02.18.08; Thu, 19 Aug 2021 02:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xeqOJFv4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237366AbhHSJOK (ORCPT + 99 others); Thu, 19 Aug 2021 05:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237354AbhHSJOJ (ORCPT ); Thu, 19 Aug 2021 05:14:09 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FCBC061796 for ; Thu, 19 Aug 2021 02:13:33 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id f5so7901451wrm.13 for ; Thu, 19 Aug 2021 02:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Mu9b4mblc/ExPlSUnMroTgqBzEI9hLYiUrbLs2ZdCaU=; b=xeqOJFv4Yk292z5h/hTFjEN/0ui5PwnRO2mKenFqm6I4TTp1INPK3NKzStaZMpmI1J Ysa7qwchiDka9i8OTzaigrmYgdyztKhoA64bp532bl3zJzO+gPBRxYZBdbx+CEOpsWMd WKf4Q6BTwSCzp2Q0GhEBO3nka7Ov+fi0E/JVNMGls+iI2OzEOM0DtyKZDwPf2mn1NsEb pEQPsYSLyBstiPeq2gjWgjbYLRzwZfy2rhS8jH+OZ7NA1gL5zIVklP2lJ7CP5xb663sz c1dvWXtFlyQeSMXIE6IYtlL5Xfcp4eAW430w4l6VnPQrMlrla3cg81rGf43mAgdQuXdl 06RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Mu9b4mblc/ExPlSUnMroTgqBzEI9hLYiUrbLs2ZdCaU=; b=DEKS1VEmjoz/j2rgclh4eE2fIApX3hdNlhtjoy1fL7wx/pTNo8teEDdz+HeZe7z30f kZGCfy3/kS1gfBlsfy0hO6t+E/X4K1npcEr2xDrjaAOZvQgvrFjCUG51vqLTEnNis1lD Hki457XgP0dcDFEwWVcN/7yDT3pVXU4km/yPBLh/UlH9ehdipuF4iwX3gB4sjQOtrdVA EvXysRrIQ0QvRG731BzHAnolN+1B2V7MoBKBP5xElAIDcjXOML9f8YBSs6StOLvEMe1s jjEi5QB/mpi0YMPXN/uc+InmlT+toWu39xW6ZJajip6jxdDFF/72KuAHR/hjK1cUU2wc uxEw== X-Gm-Message-State: AOAM532MsMKusEl5BtgIDfJGQUNTZMD9xV43S3D21ZJ7JAzXms6XFQLm ni3zLtJLWqnEjqtrw+zjQWrgyA== X-Received: by 2002:adf:ea09:: with SMTP id q9mr2498131wrm.64.1629364411576; Thu, 19 Aug 2021 02:13:31 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id s10sm2730312wrv.54.2021.08.19.02.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 02:13:30 -0700 (PDT) Date: Thu, 19 Aug 2021 10:13:28 +0100 From: Daniel Thompson To: Andy Shevchenko Cc: Vinod Koul , Jonathan Corbet , dmaengine , Linux Documentation List , Linux Kernel Mailing List , patches@linaro.org, Haavard Skinnemoen , =?utf-8?Q?H=C3=A5vard?= Skinnemoen Subject: Re: [PATCH 1/2] Documentation: dmaengine: Add a description of what dmatest does Message-ID: <20210819091328.6up4oprx4j7u5bjl@maple.lan> References: <20210818151315.9505-1-daniel.thompson@linaro.org> <20210818151315.9505-2-daniel.thompson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 18, 2021 at 06:27:52PM +0300, Andy Shevchenko wrote: > On Wed, Aug 18, 2021 at 6:15 PM Daniel Thompson > wrote: > > > > Currently it can difficult to determine what dmatest does without > > reading the source code. Let's add a description. > > > > The description is taken mostly from the patch header of > > commit 4a776f0aa922 ("dmatest: Simple DMA memcpy test client") > > although it has been edited and updated slightly. > > > Signed-off-by: Haavard Skinnemoen > > Not sure if you can use it like this (I mean the above SoB) I wondered about that. In the end I concluded that if I had picked up code from an old patch and edited to this degree then I would probably consider it a new patch but be clear about credit and preserve the original SoB. I saw no real reason to treat the contents of a patch header much different. However, I'm very happy to make the credit more informal if needed. > Otherwise it's a good idea, thanks! > Reviewed-by: Andy Shevchenko Thanks! Daniel. > > > Signed-off-by: Daniel Thompson > > --- > > Documentation/driver-api/dmaengine/dmatest.rst | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/Documentation/driver-api/dmaengine/dmatest.rst b/Documentation/driver-api/dmaengine/dmatest.rst > > index ee268d445d38..529cc2cbbb1b 100644 > > --- a/Documentation/driver-api/dmaengine/dmatest.rst > > +++ b/Documentation/driver-api/dmaengine/dmatest.rst > > @@ -6,6 +6,16 @@ Andy Shevchenko > > > > This small document introduces how to test DMA drivers using dmatest module. > > > > +The dmatest module tests DMA memcpy, memset, XOR and RAID6 P+Q operations using > > +various lengths and various offsets into the source and destination buffers. It > > +will initialize both buffers with a repeatable pattern and verify that the DMA > > +engine copies the requested region and nothing more. It will also verify that > > +the bytes aren't swapped around, and that the source buffer isn't modified. > > + > > +The dmatest module can be configured to test a specific channel. It can also > > +test multiple channels at the same time, and it can start multiple threads > > +competing for the same channel. > > + > > .. note:: > > The test suite works only on the channels that have at least one > > capability of the following: DMA_MEMCPY (memory-to-memory), DMA_MEMSET > > -- > > 2.30.2 > > > > > -- > With Best Regards, > Andy Shevchenko