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 1F354423F2; Mon, 16 Jan 2023 18:37:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B9DFE40151; Mon, 16 Jan 2023 18:37:56 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 9F78E40042 for ; Mon, 16 Jan 2023 18:37:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673890674; x=1705426674; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KosJeLAnd1Jdrd3AhYKmJOyMtHJu648jbo+VGJneKYg=; b=kuqaf7PqMxzBXM4Hm2PJWMv3GYCeTvwpHOJuEiBSD8G/Jmhgb0BUoDo0 yU3Zjzoj+b8Gw3OC+TrUy6m4y5qZHs0RH4Q4/pqMdVy/+ewm3nfThvN2L xtdMAF6Pn4I9CVxCZtgp6h+ZcpP0x9E3JveRxCiTpQhk7mxrEQPlQhddK U7EHcTvk1yaK3BeYJ/niB4YielxvvZAMqc6v12vcFlkTiaZHUHkfZc7r4 5Mxfz9sFMyLmSzeiZXbQLw8IMCFL2nNFTN5CqtvI16eFn+ifbevvlBZd3 5tGqmnC6OSToDJ47HlnFo5Jh/ApndbvOvBW7C0CPEoMLxalCXgRfejUQo w==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326570387" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="326570387" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 09:37:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="987869166" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="987869166" Received: from silpixa00401385.ir.intel.com ([10.237.214.55]) by fmsmga005.fm.intel.com with ESMTP; 16 Jan 2023 09:37:52 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH v2 0/6] dma/ioat: fix issues with stopping and restarting device Date: Mon, 16 Jan 2023 17:37:31 +0000 Message-Id: <20230116173738.562322-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230116153714.554470-1-bruce.richardson@intel.com> References: <20230116153714.554470-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patchset fixes a couple of problems with stopping and restarting an ioat DMA device. Following the three fixes, a series of improvements are made to the dmadev unit tests to properly validate that dmadevs work correctly as they are started and stopped, and ensure that no other or future drivers will suffer from issues. v2: * extra patch to fix issues with error reporting, as noted by Conor W. Bruce Richardson (6): dma/ioat: fix device stop if no copies done dma/ioat: fix incorrectly set indexes after restart dma/ioat: fix incorrect error reporting on restart test/dmadev: check result for device stop test/dmadev: create separate function for single copy test test/dmadev: add tests for stopping and restarting dev app/test/test_dmadev.c | 172 ++++++++++++++++++++++----------- drivers/dma/ioat/ioat_dmadev.c | 31 ++++-- 2 files changed, 140 insertions(+), 63 deletions(-) -- 2.37.2