Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp556345pxb; Wed, 18 Aug 2021 08:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXHUh167r9w48pJ48wdpXrgIbx94VyE9MnVYBCqkZcjg+saizUpXl/JCCmATpSoQLMvF4h X-Received: by 2002:a17:906:498b:: with SMTP id p11mr10593640eju.295.1629300642020; Wed, 18 Aug 2021 08:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629300642; cv=none; d=google.com; s=arc-20160816; b=bAYGFofLAbA0l6bfBQlVMeXPY0L3kEEW5R3ypqMb+Nx1PP/FBQt5pya1e/6ZwXWCn9 UlT/+SIItxB6CbZYshFhAnxH/yzXsi66UDQ2cmvYGmFIJqYyphzSLhj8F2l2EsOJLbGf iRpmpMl5L/5sZj8RDTRI3MZ4GF8wyxgu7PXuaevMgJpl87PmySyE2vy0dAVmetju0cWO dwbangH+zlQlkEC5zE7meQY+V+4yh/xBPCpJcnVEQFioC7ra6D5JmgrIasnAKvrgf5O8 nUAhHyCSwQpStq04JqcLtKt4u57dkoAjTAqx3NnAQLOA3uEv1WA1ybhwOtNMsOotA7rL jm+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dT+pL+9YhtUImpcGN/cKN8jzBfuzVCiFl8hmF6VGry0=; b=uvC6MQNzTKFRPnUEVfcFs4WxnWJALdTqFRcTEq9q8sgnrJtwPSxjr99ARoqxuxEu4c siYwNpe+BxYwi0o4EG6gHWaI+4dW+rYiz67sxlt11h1vLDTmvVbjE1Rf4BBEjLvEfuUh UCeY7w2EcoXhrQTjVYIHceM4TpIV7RVzPhg+tfi+jv0cfUn4kwyKr9TUxZlNyOgSgHWI bAd5AA1wJ61wqyfKiITaKJ1mgxooGiBffhrxrFcmp40Z0RdhmlxhNTlC2Qz/dwO8eLC0 mP1TOGczAqFJ5NDAQAwvzsE5VMt0Euix5vW13ElvABFKCbfBj7FkPNdT8hJN7jhk9fnI wjVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hD3mxBhn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi15si38809edb.459.2021.08.18.08.30.16; Wed, 18 Aug 2021 08:30:42 -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=@gmail.com header.s=20161025 header.b=hD3mxBhn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239533AbhHRP3H (ORCPT + 99 others); Wed, 18 Aug 2021 11:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238837AbhHRP3H (ORCPT ); Wed, 18 Aug 2021 11:29:07 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876B7C061764; Wed, 18 Aug 2021 08:28:32 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id l11so2022989plk.6; Wed, 18 Aug 2021 08:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dT+pL+9YhtUImpcGN/cKN8jzBfuzVCiFl8hmF6VGry0=; b=hD3mxBhnDdODBl5zrCmekRuyAN49XWYkOcgChl79sRL1WCPUAuS5sDnhh8IeB80ab9 RhOqTw8wduv5KWLenIcV0a0/dMAHR+ewwJYm6xaZpKNA0rHrO7I9GxxJgBl9VgpeTqqT pw0eQQ+s2z4wz11RAu+nyA4UCDz4ooPceIeLdoVYki8A56TaRrjcsNVYt1EVoLLesx/9 u6erXipMKMQkZa1UF3Ik568mL57hskgp8b4OMc/fkl5pT+C9wcE4kohy5Dtp/+hxFNr7 EIHPWWjl8EUmlN3dUD5RLsV6BCSwrmy9vRhhEx7+SgLTfkwFHqwd1OujaiSGaK91V8Hb rn+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dT+pL+9YhtUImpcGN/cKN8jzBfuzVCiFl8hmF6VGry0=; b=AtySR+V5gvPlj3XyXIXFgAUOyk51VvBWDymQdrvF8gAaVq2SuqzmU7fIKa8BXzOfCd B5X1+cs1nEM6/icKPG2zLGFKSuNSyajaixkfy5B1gBk2dvJukccVbX2cfenzM6+2HO9c n31dVhLewIwW4QM3vlXJn7fojEtToz07hPXN8h0bFfGMZbmtp+navo6EO7aV4oOGFZX+ 1I2zCUhsPd9C7dFI32+oRVLtAk+auD4eM+IPzafackJXtfjAlsN5lfsDL7K4LA2r83MC mp6ZTZXlq8BdYKCq7KiBV4yxMToxsRQCFJp5TAknU2DHPd8boAY29NjNov7Kvp1KMvS0 KEPQ== X-Gm-Message-State: AOAM532CYwBuiw1xLtI4D/Ff5wC9CtD+iZdIrJmFqoNG4Da5BSA+E4Mq HwH8u/56Nr14TTFGxfXIlLCDrl27MxqPNQidfY8= X-Received: by 2002:a17:902:bb81:b0:12d:a7ec:3d85 with SMTP id m1-20020a170902bb8100b0012da7ec3d85mr7739762pls.17.1629300511960; Wed, 18 Aug 2021 08:28:31 -0700 (PDT) MIME-Version: 1.0 References: <20210818151315.9505-1-daniel.thompson@linaro.org> <20210818151315.9505-2-daniel.thompson@linaro.org> In-Reply-To: <20210818151315.9505-2-daniel.thompson@linaro.org> From: Andy Shevchenko Date: Wed, 18 Aug 2021 18:27:52 +0300 Message-ID: Subject: Re: [PATCH 1/2] Documentation: dmaengine: Add a description of what dmatest does To: Daniel Thompson Cc: Vinod Koul , Jonathan Corbet , dmaengine , Linux Documentation List , Linux Kernel Mailing List , patches@linaro.org, Haavard Skinnemoen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) Otherwise it's a good idea, thanks! Reviewed-by: Andy Shevchenko > 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