From patchwork Fri Aug 24 12:15:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seraj Alijan X-Patchwork-Id: 10575291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 44FF8112E for ; Fri, 24 Aug 2018 12:16:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DF002A9EB for ; Fri, 24 Aug 2018 12:16:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 224192B8AD; Fri, 24 Aug 2018 12:16:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DA2F2B7A5 for ; Fri, 24 Aug 2018 12:16:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726504AbeHXPua (ORCPT ); Fri, 24 Aug 2018 11:50:30 -0400 Received: from mail-eopbgr70043.outbound.protection.outlook.com ([40.107.7.43]:53942 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726513AbeHXPu3 (ORCPT ); Fri, 24 Aug 2018 11:50:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sondrel.onmicrosoft.com; s=selector1-sondrel-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dBjct3alUbQuwFIyX3nlUENkrDsKjqiagjQ9Wo683Wg=; b=1C0WGz6JiFy6LJOwbFK8HaTDPO7PXUVG2iTxfz/M/qt1EwOuUmBjDm+Zdslrjt7/JK2srmX5gHEnJz+/m61zhuUPSwFgfZwHSbW+eY3WxnY8InxaRaiIfJAo6PmxfnpHeXzRUfJoAZobWQ0cC3CGfcJWOe7yJFcOUB07HbjhtIg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=seraj.mohammed@sondrel.com; Received: from Seraj-pc.hh.imgtec.org (195.88.9.101) by DB6P191MB0248.EURP191.PROD.OUTLOOK.COM (2603:10a6:4:8e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.14; Fri, 24 Aug 2018 12:16:00 +0000 From: Seraj Alijan To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, dan.j.williams@intel.com, james.hartley@sondrel.com, sifan.naeem@sondrel.com, ed.blake@sondrel.com, Seraj Alijan Subject: [PATCH 0/5] dmaengine: dmatest: Add multi chan and new params Date: Fri, 24 Aug 2018 13:15:36 +0100 Message-Id: <1535112941-7169-1-git-send-email-seraj.alijan@sondrel.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [195.88.9.101] X-ClientProxiedBy: MR2P264CA0045.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500::33) To DB6P191MB0248.EURP191.PROD.OUTLOOK.COM (2603:10a6:4:8e::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3ed9d638-fae2-4798-00f2-08d609bb5afe X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:DB6P191MB0248; X-Microsoft-Exchange-Diagnostics: 1;DB6P191MB0248;3:qBhrjaEEcYzX3WKNswzKucvOJLuLwtQEDZMI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ki/fYJDzyvwxOTsdlEN85CKEDkSKXzsncdCP0USok7CSlc1oBCItscmygPU9gnegvaFECIhFEaMNMv9D7LKCiw2ragjzmKWGRQFUupaHZ2snOr9ertSwM92oH0BK198Zz7UTlsVvggpsrCsm0TEOimvu97V1B797B6KRa2syjnaZANhlnPoEq2vclCRGJ20b5qSAw20Tw8u08ek/WeeMhDTE8OAv1vwSguoEg/1djCjJAIF8LSKs33pCplXgnyElYRvM6H5bLOs03VIo5RmbNndXNgeZw+UiZLK3dJyLrzQ;4:37L4G+ftTZk3mdecOtnVV2kAWTEERBRi4Z4TlSD8kuGWfg08mzbstMWwC4xf94fz/W7X8FfSqNfPUpEs9It1PUOOzcWmu1Hp/2dsRvgSRPsVPbY/BtKVe3M1hf6BKIH/ii9h8VrkWfCzd0G90ng91f1eBARG0Yq4m15BRuodtW48IUfWhwhLqXpk1IAgYoZ9x0EA/NKLAFHMQvSorUSkjp10MOw1Q1ocLqEDVWGVD2pae1Ew/yjDEhhw9C3xha4r5mUdSXIIgSic1InU7zEWin93OxJTk+3sMp5f4gVvi7Mj5rF1HicODsx+3OrfY0x2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699016);SRVR:DB6P191MB0248;BCL:0;PCL:0;RULEID:;SRVR:DB6P191MB0248; X-Forefront-PRVS: 07749F8C42 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(396003)(376002)(136003)(366004)(39840400004)(189003)(199004)(6486002)(386003)(476003)(956004)(52116002)(50466002)(51416003)(2906002)(36756003)(2616005)(5660300001)(48376002)(186003)(16526019)(44832011)(26005)(6506007)(2361001)(68736007)(107886003)(106356001)(25786009)(47776003)(66066001)(8936002)(486006)(53936002)(16586007)(105586002)(478600001)(6512007)(50226002)(6666003)(4326008)(316002)(305945005)(7736002)(81156014)(97736004)(8676002)(2351001)(6116002)(3846002)(6916009)(81166006)(16060500001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6P191MB0248;H:Seraj-pc.hh.imgtec.org;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: sondrel.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;DB6P191MB0248;23:ZM4U0DoxGxI6RcvWMasfm0hN0UAAcPa4yuyreCuXqsXruh77IEWVp7INV0LtKED7lv9FQxL4eExAqB/CQ5/oOg/lvDAy9yoNE+rBKnDSfdHwKSyu0AxPaw03/ASds4a9sjw69ENLqQDTBgmlFR5URfSzyft/3d7DKN9Z4a/Bp17H9dAf/rvg65uuXsZbcxU/NUtdHPophcRRVPfYTOP4d6/tPHAQmrtPP67PzwiG4n66dvID3YVPGtAFK32YdkSHumgAZMiOIhBOB5Ohu9/KFenRAIdPyfSNJ86Zn94aLjBdBr73tXQi4QEGRN3qGlNfBRxmRKofTO2ru9sXbmOCM0nRquOdGt6I6bAuMVYw2U00QFU83mkPBPcMdUTdK85PK5C3pLGWD31ewUsPvHNTW6qyf+uSAejv4bjo6XfjYs/dz3FBypm7ciAmt6ljjHt2O/iwDhSe7oBOw28nMHeGQyz1JP9QNzn/hg/slBJ5O3THSI7Wya/NkaJAO3FXiM6SfpaYneg6eZ5FvIGT1qNE9WfGi9x0f41ngMA+WyLUFsdyI6Xuy8K4GCuDfd9NLYE4e/5972ZO+dtWuz9oxxsdtZtC2J+VxhUAgJKrkfmwd56V6Gu5FLnN2GOy3JDnsLMiGiVSQMigm3zxYfhgccVwDgbooKVOWrpT2gnQXaROqmMYCid6+CEiDDyoGN18O8NAE4YJYDWrpQP2c8dPvvcZHC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E3TKBETSdkud3bP12jGyW+hgRhxZrooHqvz1CVCB6HjdHMvjW8zEtM2WWN8V3n70yKTdmUficp2b2/Ws8g5QZkSp7SEeNnbh7ZiNowaqqTIjzSywfTF3ameD8W5zTuEvn/6stOnuH/BHKYPexWiU3J2pV2r5Lm4CriBS9+4JN90rNbbez/9kDOnpi7nl07D9M931jYHf71rpx/RjwZrhNVhV60N2zwjOKt3+fYmDYXHuarQDbGxhVpLpp9CuifiAr+AKaxl7LhY76MpbJBak15wyXSp/AstQ==;5:pmBFXLg5Res9uPdKjvgOMm+YM6ffrUIzfNzjRi+0t713o9s10r4g/ohYUqfdeHrMzsLM7uh2Xa0iYOqdaviG6mDgLJJdBZy4WOBxp6P0KDoqgGLvsAwLFxGo5EfjpUGwzpXxOGHTZdzq+3nBy8eAa6qGe4GzuHuxeyG/qsa+U8c=;7:xH9BEsVs3RQQ5GFsh9oST/SZ47p5FNDyjEs/CpLMgA1DsD2HKgb86x26yK7qtQ8KztExpeel28Lt5/6Ha2lEnIr3MNp1sigJdHqlXoQbE/S2Y8iFCitmED4xCRRLvodes3t0rGmSbBlfk3/O7RjCOH/VUvuQOubEpBqNb8K3D22tPoJ8NG1RXfdcyul9Pox8JMWyqMQaRgFbWnG+s7w8lfMeZRCx51HYlawrff4oDmRmVMSNy/v4C9A4P8yFN2j/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sondrel.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2018 12:16:00.3408 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ed9d638-fae2-4798-00f2-08d609bb5afe X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4faa3872-698e-4896-80ec-148b916cb1ba X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P191MB0248 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch set improves the dmatest module by adding multi channel testing capabilities and new parameters to allow more explicit control of the test functionality. Multi channel testing is added by the first patch to improve the process of testing DMA devices with multiple channels as the current driver limits testing to one specified channel per test run. The second patch improves iops results reported by the test for operations that last for more than one second as the test currently reports an incorrect 0 iops for long operations. The third patch adds a new property that allows configuration of address alignment from user space, and the fourth patch adds the ability to specify test transfer size without relying on a randomly generated transfer size. The fifth patch updates the API documentation to reflect the new changes. Seraj Alijan (5): dmaengine: dmatest: Add support for multi channel testing dmaengine: dmatest: Use fixed point div to calculate iops dmaengine: dmatest: Add alignment parameter dmaengine: dmatest: Add transfer_size parameter dmaengine: Documentation: Add documentation for multi chan testing Documentation/driver-api/dmaengine/dmatest.rst | 27 +++- drivers/dma/dmatest.c | 174 ++++++++++++++++++++----- 2 files changed, 161 insertions(+), 40 deletions(-)