From patchwork Fri Aug 31 11:03:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seraj Alijan X-Patchwork-Id: 10583609 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 6E99E13AC for ; Fri, 31 Aug 2018 11:04:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A2222B486 for ; Fri, 31 Aug 2018 11:04:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B8AD2B55E; Fri, 31 Aug 2018 11:04:16 +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 A34CB2B486 for ; Fri, 31 Aug 2018 11:04:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727730AbeHaPLL (ORCPT ); Fri, 31 Aug 2018 11:11:11 -0400 Received: from mail-eopbgr70057.outbound.protection.outlook.com ([40.107.7.57]:65309 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726990AbeHaPLL (ORCPT ); Fri, 31 Aug 2018 11:11:11 -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=accMqBwb513Mie7RRheKzM5Jd7jgXNIBmeqBBLrQgxg=; b=Q+nk2vbJGAikVgxQ4rpzY6oHO2PXNVVvaVTxV6fbPfJUJ9NW40fcIyiLK4h64ytYAJhx+TbBXTbAYOpm0C3Wjd5gORrSKEORduNECplG8KT0Ig5D8XyyQi3qr9W17iWLv/e2wvHXk4hoOxJTWO1UyH+uTwPmGJrmrrVUshhOMYU= 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 AM4P191MB0243.EURP191.PROD.OUTLOOK.COM (2603:10a6:200:67::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.14; Fri, 31 Aug 2018 11:04:09 +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 V2 0/5] dmaengine: dmatest: Add multi chan and new params Date: Fri, 31 Aug 2018 12:03:39 +0100 Message-Id: <1535713424-11322-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: VI1P195CA0048.EURP195.PROD.OUTLOOK.COM (2603:10a6:802:5a::37) To AM4P191MB0243.EURP191.PROD.OUTLOOK.COM (2603:10a6:200:67::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f26b35ca-1276-46ab-91c3-08d60f317a9d X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:AM4P191MB0243; X-Microsoft-Exchange-Diagnostics: 1;AM4P191MB0243;3:ikcnpKehocBZ/WdnPtShOfz6IkFH+aUyhMiNpl7AQcoy2dV3rJnYXphsaFun6wADXnMaUbheirkUGAb6+WTpeNdXDxCUjKPuc6eP7FSe+w9LYNGlu+K3aq/191ke3+csgbT6R37MCbmewYEDshduky3RoEd9xuMDlwhp/yM3cWqU75vGGJf+8JuC1HJOB/DtCuANiy/uR2pSoHhsHOfs6CAKKp5t2yl5axDEQj+lM0X2YEl3pFF5enMU4yorwznt;25:iYH3B7vWD97u2MGZ555PqcpzIJX4108vKejg5/OkxZDTxmrKsyv1ct4Oahm6EUmfEuBz0RcyhKzFLDOm0SUSL5lVgOwMmQUtu+bVA+lMpTyf/Ui+ReQnYbGyh/sxf3Vh+/EAUvCAlj58CPC/FQMS5OLHRaAEvpF31GdyxKg3Bg58ZhP84hqJBZOjCpsRYT+LRX9B9vZs8W0f/+R0R5K8aXAiAjQK5XAd2O/mg2CRNe08+jNPTIjyW62U0ZowsHm88IH4XGLjROinjKLoO3AAdWcU1eZosX4W8WL7BTMvlN8bFbdk04E/GODS+K84SUioGhXI287cqy3D8Eo1kYaFPw==;31:tZzj2kSa2ge/81qnUX/8qGgdFsj4peGSP140fr5gqTaYu4EdEOeyp0qp3+ud+4DXyqjpDM+czsM0Ktd1+BIIZw82OcknxkaM26ScqkM7FfI2hCRf6yFAO6g6rS19oADqyjMyLML30uS1ao27ek7eaXafoeA5J42uJ8uAtZMKE2694Z75YGBpXNg1/BnUPZ1wV8kgAoCDQl19yK9y94AOGQli7UkDO3ic4V/FiGaMVBM= X-MS-TrafficTypeDiagnostic: AM4P191MB0243: X-Microsoft-Exchange-Diagnostics: 1;AM4P191MB0243;20:4W6v67Fpp3FFub5XTVNM6lzr6T+W93tJRXQjPKBKGO86W2HGoqA1jR7LG5lVzclIFiFKE2CKhkPogJmE/YgGrAJI+SpBqyf1j6nqZZm1q1VEstrDGPwXM/kQAqjH2V1obmptmoF5ike4oeMUys6QQNhZtfYMaX8cX2PW8MxzPXzaAjPoRnByf9G3kBqj0EEKvogZxUFRAfByw0UxIHFA660YXyb7TRjXGfg6GATPJvTpWTN90LNbZkMZ7Aq0wk/nA1NUfywRABQjBt3tz//vISJ6/vGTwQNSJl3OwJvYw3+Y8cxfu3Th5kVobJ1qYJux3K8z0XA8S2YLL4+Ra2EWJqD41L/On5CEV7KRR5z7c3nnMcsjZfjdPd1SoV1V7whi5hOjVRTXLm3ZSN9QdlVSrhkaiCl9j0CRZul9bOLanwjmwrxVBO12T98IgPZfArMDrIeGyYOgfGJ8Rj8YPfx5pQc+wakHiJfA74J/97bJE4zoqCH/IZTWvi/X0eHzZKWR;4:tp4bPclM1ngm8OG7wBJyZUt4TssGNgiNUyuo/9LNtCQZsFY3azAjX2oMg8ZXjk83P9jVe+ZB7zZP1/+x3lM11Vdh/wr38jjX7ZZITGiF7/5GgtrsmZwlUUAS+p8FNrRq9egCHvevO2NThNmsx1oks7xw1b8440DBNdW9Tb+YQlM2zcbWpOEsU9gtkySdsD0ThJpJ1OA8koGW1q86ZV4JEETE5f/7jsk0xOnGqPTbv9smxK+kYOliG8YYPeni0qumuOPUn+QnHW5uIq2PHlkJ9VhgGz9FD6j3RaiF6OopIO7tcpQymzhvQM3CG5IPG7RZ 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)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699016);SRVR:AM4P191MB0243;BCL:0;PCL:0;RULEID:;SRVR:AM4P191MB0243; X-Forefront-PRVS: 07817FCC2D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39840400004)(396003)(346002)(366004)(376002)(136003)(199004)(189003)(6916009)(6486002)(386003)(5660300001)(6666003)(53936002)(478600001)(6506007)(4326008)(16586007)(6512007)(25786009)(97736004)(305945005)(107886003)(52116002)(51416003)(48376002)(7736002)(50466002)(81166006)(36756003)(81156014)(8936002)(3846002)(16526019)(316002)(66066001)(26005)(2351001)(6116002)(50226002)(2906002)(106356001)(68736007)(186003)(105586002)(2361001)(486006)(47776003)(8676002)(2616005)(956004)(476003)(44832011)(16060500001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4P191MB0243;H:Seraj-pc.hh.imgtec.org;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: sondrel.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM4P191MB0243;23:x/mKeOj8rJRk90BmFPpMFIMl9Bz2bLUTwYKJKBaJ4DIdoepJsHVklZulMvXxXKOrDRP8FsYAnpNBmS3yr5QQi+HDbKHcJiSuE/5y1KKipPuZLZveiotHj1Hl8mN3W6v60x2/vKFj01u+o77SW1rsiXmYJ1uPfzXF36ubS9SAvtrvfekdO2x2ICPGLVQ3d1wfWrXyjCSBzRwgZPElrDqCUtJDHJSV5DXso1VCdO6xh4v3PSJz+mYIhdXbxUcapAtAmGjxqYz5vLbAjiujRNduQijS82yyL5d7dBBe3eDsC18D8DUiR7Eez4m4P9G/59v/oj+jszJlmQfQQJe9O/4UMy5U2DaYzYpmfgzHSzyW3O6BfzM8Rvkie32RtdXcRx5Gk4PdvjPTrc4SFrQyPeHt5bEPW3RMmehcjW9YLLICaT9xDinaRIEzzKooLy2EHBC+QxamwYIaCr0fdl5rsNpj4jf+Q3kQZbUhY5wOtTSbIMXNMIBzOq5F4oDE5oKICArR6IvFo9PnbnpQzsONGXBSggycKLdTrDegpm0bUgkuBASWWGuJu4LJRYlWyCj+eZ+XTyb1VVMqz42esLoUXUDtfm0JUebhwy4jFYkUM9WcmXlvIOj2Lnfbl/F3KvOrDV4ShRcf1PxYxQZtPaShp9jpXg+k8cYmDuvY8MW1C6VFLnErpmEkPBiXnGQUOLVS1G5zvL+ajIDK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t1JU9jYU8Mz4yT7LypRqOrFGnjxkox87GOD56HmPts7HVC0jhlglrVvRkm5bAWq75SZO4ko5NiKktnWzcfhAfiYdZf4bVML/SwzWZ90vXFKqrKMa4l40M5ucm1mRU1blCqaFsErnP5j0isNOeFkPpkSDQJfwNUm1aOtG8bG0V6d1xcoQe+xgc8GmtTAm2HDIBpJKc+JjqK5Hin8Za36mCie3MvoE/ZWd+zCRXD5+QFDw0Qat7e3ZOnyLHlpN3gLH27+yoWWYCMGudLllH2XU6z2qxVyFXr3GPIMbpNcUFE2K7vh8rA==;5:pqpPNpygHhKfCshvcDFdMZDHL+DlJRsOeKodnADaSY9qfPrXUGSVI+KE1XFXvNI0C++cTxWz+giUrvrC47qjkDrsPjarZ1/WnJHkohERsR3d4lNupcdJg0BxabaM9MgAd77YFyJe0wtT8ixLjzbRz4GqapvmciHNv/QmOSAeGYc=;7:wRr5cExeGlFpJNx4piSipWmgpb4fJX08wJZx+CFoS0NsjaPVEwlbrhqZoQjx1iHRezfbLW2eQ6zd+d3kkJKBCkt99eFEwAyu91LC35ISCSvQ851BKa7hJmAbRB3QI2mZX1v9SJ0+MwwRYH+yXmcBK+omq3zdMSK5+vNGGn5z1QUQN9M0Yr6lowQvMp8dvKH1ZCxqQM8+/3tv1mqbI0dPJk+DZiC9oDyW+ShA4PwNnfhKNccMtTj9P7djMZYzKp3N SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sondrel.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2018 11:04:09.9777 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f26b35ca-1276-46ab-91c3-08d60f317a9d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4faa3872-698e-4896-80ec-148b916cb1ba X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4P191MB0243 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. V2: Use do_div() instead of DIV_ROUND_CLOSEST for division, otherwise the module will reference __udivdi3 which is not present in 32-bit kernel and cause the following error: drivers/dma/dmatest.o: In function `dmatest_persec': >> drivers/dma/dmatest.c:457: undefined reference to `__udivdi3' >> drivers/dma/dmatest.c:457: undefined reference to `__udivdi3' >> drivers/dma/dmatest.c:457: undefined reference to `__udivdi3' 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 | 172 ++++++++++++++++++++----- 2 files changed, 160 insertions(+), 39 deletions(-)