From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 468C3A0C43; Thu, 26 Aug 2021 20:33:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0FCAA41225; Thu, 26 Aug 2021 20:33:18 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id E589F40140 for ; Thu, 26 Aug 2021 20:33:16 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10088"; a="217847105" X-IronPort-AV: E=Sophos;i="5.84,354,1620716400"; d="scan'208";a="217847105" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2021 11:33:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,354,1620716400"; d="scan'208";a="685030786" Received: from silpixa00399126.ir.intel.com ([10.237.223.29]) by fmsmga006.fm.intel.com with ESMTP; 26 Aug 2021 11:33:14 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: conor.walsh@intel.com, kevin.laatz@intel.com, Chengwen Feng , jerinj@marvell.com, Bruce Richardson Date: Thu, 26 Aug 2021 19:32:54 +0100 Message-Id: <20210826183301.333442-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC PATCH 0/7] add test suite for DMA drivers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patchset adds a fairly comprehensive set of tests for basic dmadev functionality. It takes the existing tests that were in the skeleton dmadev and uses those to create a set of API-level tests to check the basics of the dmadev library itself. Once that is done, the "selftest" part of the dmadev API is removed as drivers should largely rely on the standard tests to ensure compatibility. For those standard tests, tests are added to verify basic copy operation in each device, using both submit function and submit flag, and verifying completion gathering using both "completed()" and "completed_status()" functions. Beyond that, tests are then added for the error reporting and handling, as is a suite of tests for the fill() operation for devices that support those. NOTE: This patchset depends on series v16 of the dmadev set [1]. The first 2 patches should probably be merged into that set for completeness as they move and adjust basic dmadev code, and the dmadev skeleton driver. [1] http://patches.dpdk.org/project/dpdk/list/?series=18391 Bruce Richardson (6): app/test: take API tests from skeleton dmadev dmadev: remove selftest support app/test: add basic dmadev instance tests app/test: add basic dmadev copy tests app/test: add more comprehensive dmadev copy tests app/test: test dmadev instance failure handling Kevin Laatz (1): app/test: add dmadev fill tests app/test/meson.build | 1 + app/test/test_dmadev.c | 844 +++++++++++++++++- .../test/test_dmadev_api.c | 24 +- drivers/dma/skeleton/meson.build | 1 - drivers/dma/skeleton/skeleton_dmadev.c | 35 +- drivers/dma/skeleton/skeleton_dmadev.h | 3 - lib/dmadev/rte_dmadev.c | 10 - lib/dmadev/rte_dmadev.h | 18 - lib/dmadev/rte_dmadev_core.h | 4 - lib/dmadev/version.map | 1 - 10 files changed, 838 insertions(+), 103 deletions(-) rename drivers/dma/skeleton/skeleton_dmadev_test.c => app/test/test_dmadev_api.c (96%) -- 2.30.2