Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp545680pxb; Wed, 18 Aug 2021 08:16:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFA/DBTer6hnF180jIkg7Q19L41QzPhOnvPX+14sTytXJ5lhYNPCu1/aSAg0jOsukDLK3v X-Received: by 2002:a05:600c:414f:: with SMTP id h15mr9048390wmm.66.1629299782387; Wed, 18 Aug 2021 08:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629299782; cv=none; d=google.com; s=arc-20160816; b=u7i00T+ru6SGrcxF3+BthrijBbQuP59xY4sJmcZ/7tC6dxEegoRl1S25mvt7SGZcv4 SxoKbSTaYoMWGaXHk/L6ViNDDihnF5K8q5YzkwkcKEUKlEpGwOoTp1lwI7jaLRSSPcMH 1zuTZnkZcFS62TQoYFygvvbwi8UKkMaCAd26gflFLGwjAUSgPA7z8PL9ZMsqjSOE4sp2 Sy0t7pS4gHCbohN/4pR8ba097UelocwUzaAbJBsbS3EZTSgCxqvScvRXFM3PyIWxagj4 n+82G+QOhRqQzHvQQXFCQbbEb+GVE3SFWD0DstgbeGBBIZE9zhFGhAN8gM3zGLujduBt ZHCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nbMWlithtc3sWWU5KtkiCkqIKx2WyKuGJ2d75kfkDHg=; b=erszOgeQqF0psmBP07SX2FuqF3lLMkouKEJ9kx5o/11mQwULCbH1/AtxjLp96un/QJ USSPKB8b+o2B7AWfE8K8VFVBPezyxGeFuBQI0p5PKdBpz/QAn51nB91NREyq4ZDPWfti 2GvC+bQ7v0Ejq/FV1WMVHpvchY84K/6D6Dlex6I1J2hX8At0A8d5e+USv1Uls8yA0DG2 t3dDdjuIkhKMvFSeHmtzRZOHK9/s4+pTfwIpgWYhp5/A1DWpIktaKaOFxq8ydICiWW87 8+/xQv8z16RG6rSaDZXNb/Myqb7MmZZz0RxUsmdfxRx0QE/yB8zgdmMGhfe5KJNNvBHJ /+hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iPW/OHiA"; 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 bi15si38809edb.459.2021.08.18.08.15.57; Wed, 18 Aug 2021 08:16:22 -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="iPW/OHiA"; 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 S239839AbhHRPOa (ORCPT + 99 others); Wed, 18 Aug 2021 11:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239752AbhHRPO2 (ORCPT ); Wed, 18 Aug 2021 11:14:28 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00F89C061796 for ; Wed, 18 Aug 2021 08:13:54 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id f13-20020a1c6a0d000000b002e6fd0b0b3fso3011704wmc.3 for ; Wed, 18 Aug 2021 08:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nbMWlithtc3sWWU5KtkiCkqIKx2WyKuGJ2d75kfkDHg=; b=iPW/OHiA0R+DD07D59x4R67evSpX775MqwnnwhDmKH0Rj8MGJtnYtqbDAat2iQ5Pg0 ufww3qxEhh1jfOzdSFlExrha/KqIGiZusIW18AwTyBve+4z6NC11esVI3oJrNckU4/yH 2PtwdmvPqM2YoglDRtnwoTnxJEzyuMuCGhukjqVZKVq8n9n9wHCdVyi/IF4TVedfaKC1 KeGet4oNy+Cb3Obp+DCj+fp2pWSbZ7SmfMtVU8VYZIJGk8nK/a4XRW/ugpifwDwOeYZE M9dlgnyAwJL/xlfm3TaaGWBIBSExvF7Nyi/hbXxi/GoqvecFfrGU2Je/RStaPw16JLAR Er1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nbMWlithtc3sWWU5KtkiCkqIKx2WyKuGJ2d75kfkDHg=; b=TU9limu6rA8VxJW6dur/YHOwj+29g3MbKlKTIdqRzdli7uijwhhlwBq3MkmEDBivaA rzrz9TbcgKQN8yh3sbdf9EvrszsixqGBPbP2P3lCTN4hMbUn5rgynJVHtzW7QYbyxLjm IpACjb3Bg6mQ7OqaEhQgy/dZt5OsvmWgaXYCouW6O3us/q6T2v9pS/sGENJlrtVu3R5h xqMnPR82gtu9SVc1QoVT2dXrKNQX0KVdorBRMr/d9+IhjZWAwH7J27x7WRuyvo/2TZPP EGEez7CThTDGbNsdVBlIn1RL279QRAFvvrUG7xx9QHIfoe/BUJPtLIbbKbDiP5+KrmBh qtRg== X-Gm-Message-State: AOAM533JH+Fd8xcFvCHv8GXCLFGLAhfGmb0YSU3nOANHbGGtEk7KVzyD CAVg2QdbZOY+iQY/1QrrrtvCtQ== X-Received: by 2002:a05:600c:b51:: with SMTP id k17mr9039289wmr.149.1629299632593; Wed, 18 Aug 2021 08:13:52 -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 l21sm101829wmh.31.2021.08.18.08.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 08:13:52 -0700 (PDT) From: Daniel Thompson To: Vinod Koul , Jonathan Corbet Cc: Daniel Thompson , dmaengine@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org, Haavard Skinnemoen Subject: [PATCH 1/2] Documentation: dmaengine: Add a description of what dmatest does Date: Wed, 18 Aug 2021 16:13:14 +0100 Message-Id: <20210818151315.9505-2-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210818151315.9505-1-daniel.thompson@linaro.org> References: <20210818151315.9505-1-daniel.thompson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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