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 BB4BD41D8D for ; Mon, 27 Feb 2023 08:17:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7AEC41156; Mon, 27 Feb 2023 08:17:52 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2073.outbound.protection.outlook.com [40.107.94.73]) by mails.dpdk.org (Postfix) with ESMTP id E524740ED6 for ; Mon, 27 Feb 2023 08:17:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dTfbAnihvJIRU6Fz7GF/Z6DDjG91TPec9josEVAiXfEVe4S+b6bjPWE9aenOCdm61cJ6vazlREU+MGNgoswFVBwjLS0yX/ceHHPfFIBINWro+SFafh2Sq0Ka26O9pGGviVu09mSjRUx56iCTZcEoQCLZXHwO/ritqGzVx576IfZxAvZhrcK1FI5nocIxGKwjQl535dhhp9k616JZMz97vDd2rhLOIrGDgTFCxmAUXPoDmWSBsGElckhp7UwIFGp7j/D0FiJDclz8lVupjHY3mXsVD5vvHOP/fxNJ0ypiWLZpUrgI04Yv1QmI+yrOavsEi5+nEYGO4cZPVPn3XI0m+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZDo3J00vnGeULzBuedJoukNuKVICuEMDlXtWB6DXKb0=; b=BgJoRJsc0XFe4gHBa16I4Hkouu3I/u4RCvX1X9tWBSSCJf9LjxyKrvA6GEwMdZN3v1tpaP0Sis6k64aF72XOp617vfv5qii61HXQFPV9jA7FfRSccA7U2UwBBK7Rn8z9qvNhiIIavxhb9ww994gE63sO53b2G7Df/bCADoYbqvm3U3SAJmHtS6ctDqoXjGtcB/MnXJ3KmDXjjc1dOR0TqrFLKO/2MbHOZppPr3D9DLxRHeFOtt3+VJD7h6kUb8FBGr4iZibQnLTPzVVfiHStZFqY8hFtvRwbsyNo72ybjqwS2Lgz4flO07oPbYj9iAa3wK31nfostzTqAl6gsn+IOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZDo3J00vnGeULzBuedJoukNuKVICuEMDlXtWB6DXKb0=; b=VJWb4/wasMxFzzGWxAW7AvOQZwK7uYRVfZiC7q8QZJCXqNe296lSjqpQi2vWhRnHptG93dFE+/4sPARRlnfjLxhmbRd7sg9GtvlJkVUUxj1F+xnoPgAHyzapNN6U09LD3NUPpKYEjU8YS6bRxUeO1F0KQYULPJvwxuAzS5Ivh3VBa23W7xyIBuaEQrjT7KaerGhwS0DCJyzH7QzrVebaNk3Z3aYys+kKj3en6qjwVOOgtZ6csQEpjUomY1cqzvC/dR+wcYEgTDq45EUKUNvBPWpuvNdvi21sGX68LUc1XLzfWj2zL59dOPJv0X3dEO37TIIFbf1eDRd2RdZ2UJviwQ== Received: from BL1PR13CA0141.namprd13.prod.outlook.com (2603:10b6:208:2bb::26) by SA0PR12MB4543.namprd12.prod.outlook.com (2603:10b6:806:9d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:17:49 +0000 Received: from BL02EPF00010208.namprd05.prod.outlook.com (2603:10b6:208:2bb:cafe::68) by BL1PR13CA0141.outlook.office365.com (2603:10b6:208:2bb::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.15 via Frontend Transport; Mon, 27 Feb 2023 07:17:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BL02EPF00010208.mail.protection.outlook.com (10.167.241.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:17:48 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:17:36 -0800 Received: from nvidia.com (10.126.231.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:17:31 -0800 From: Xueming Li To: Bruce Richardson CC: Conor Walsh , Kevin Laatz , dpdk stable Subject: patch 'dma/ioat: fix indexes after restart' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:01:00 +0800 Message-ID: <20230227070107.15664-152-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010208:EE_|SA0PR12MB4543:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cba77bc-f69a-447b-05d4-08db1892bb05 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: erIjqxEQ2Pl5B33WrGJGTxWOn7U3mjmGIfDSdvYLDNLTlZnyqWXky7i+/Eeld7HKmgneNB2I8Yo3uYqUEDvUEzaqOZLj2PlmNkQGUFfV99qgEUdKXad+2ufEITiJBAcqPB7YZ4VFIT+cJNI+EqQB30xvWfkLgbJKm+qHK1UlOCS7xPYWVks6zLzXDFLLRO9JgSNWQA79rGEMDDhgA7WwrKCm9g8Iv9wFhvh4Rj9xvz5CV6bW6uOkiRs5kRFqD0PAf4c9PGDacPuA7V3UtHN05vW4Ue6aVT/TrBiCfDxRzD3u9zvWx7TX/w1uf0TfFjVbcg8PlialB5raFda9/upDS6Xl9MzrMQ4dbG5EUlyNJoucizDmD2dnPBLWswGcgwAGq7sqVmwz86F/opronk8PuSvYFd1uGM+wOmpY11UjEZPOXIinAwG0D14sxp+AVwX2usyNKBX5UV/nVGYSJPAz7aa5+zVO9G79EaWNmrZKJfLvxyHSRKX4acnWDrTQBuktTYl6Fy4SjKORZ9BHzgGXYv6FJkt3wGxpAVtAt6M9LOz3OWVWt4n+pLTXJbQjNwJCEjjdi3pPujjKBKll6EAZvEIgADwKtYLSG0PjTGjdchveWDGj0MiA+5xwM3hXaQ2401BpxzBq9dnJUc/Nv3FCA80rjQWyJuI9eaCQVX0QTGpSpqSpGkt5Mei1Hufu27ubwD5nuzOHoCdhMORaA1G9GgJVOqyxcUcdx7iRIOLiUjnuHTlHlVJnNNYNsCxq/hJB/RYBcFe0VII1KiQDY6aBY9H4eMnQetFefIqjBfPb9Us= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(136003)(39860400002)(346002)(396003)(376002)(451199018)(36840700001)(40470700004)(46966006)(8936002)(2906002)(5660300002)(41300700001)(70206006)(70586007)(4326008)(6916009)(8676002)(316002)(54906003)(478600001)(966005)(7696005)(6666004)(82310400005)(36860700001)(426003)(47076005)(26005)(6286002)(16526019)(186003)(53546011)(1076003)(336012)(2616005)(40480700001)(86362001)(82740400003)(36756003)(7636003)(83380400001)(40460700003)(356005)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:17:48.2830 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1cba77bc-f69a-447b-05d4-08db1892bb05 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00010208.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4543 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=90ad21e9881ec3231f54801042d179811299be40 Thanks. Xueming Li --- >From 90ad21e9881ec3231f54801042d179811299be40 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Thu, 16 Feb 2023 11:09:15 +0000 Subject: [PATCH] dma/ioat: fix indexes after restart Cc: Xueming Li [ upstream commit 79ab0f29dd9d734d0caf56e7694d7b0c6ead12e2 ] As part of the process of restarting a dma instance, the IOAT driver will reset the HW addresses and state values. The read and write indexes for SW use need to be similarly reset to keep HW and SW in sync. Fixes: 583f046dd404 ("dma/ioat: add start and stop") Signed-off-by: Bruce Richardson Reviewed-by: Conor Walsh Acked-by: Kevin Laatz --- drivers/dma/ioat/ioat_dmadev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/dma/ioat/ioat_dmadev.c b/drivers/dma/ioat/ioat_dmadev.c index aff7bbbfde..072eb17cd9 100644 --- a/drivers/dma/ioat/ioat_dmadev.c +++ b/drivers/dma/ioat/ioat_dmadev.c @@ -146,6 +146,13 @@ ioat_dev_start(struct rte_dma_dev *dev) /* Prime the status register to be set to the last element. */ ioat->status = ioat->ring_addr + ((ioat->qcfg.nb_desc - 1) * DESC_SZ); + /* reset all counters */ + ioat->next_read = 0; + ioat->next_write = 0; + ioat->last_write = 0; + ioat->offset = 0; + ioat->failure = 0; + printf("IOAT.status: %s [0x%"PRIx64"]\n", chansts_readable[ioat->status & IOAT_CHANSTS_STATUS], ioat->status); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:45.732596000 +0800 +++ 0153-dma-ioat-fix-indexes-after-restart.patch 2023-02-27 14:08:40.959237000 +0800 @@ -1 +1 @@ -From 79ab0f29dd9d734d0caf56e7694d7b0c6ead12e2 Mon Sep 17 00:00:00 2001 +From 90ad21e9881ec3231f54801042d179811299be40 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 79ab0f29dd9d734d0caf56e7694d7b0c6ead12e2 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org