From patchwork Mon Jul 22 16:39:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142633 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A49745683; Mon, 22 Jul 2024 18:41:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 60F0E40E68; Mon, 22 Jul 2024 18:40:15 +0200 (CEST) Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013006.outbound.protection.outlook.com [52.101.67.6]) by mails.dpdk.org (Postfix) with ESMTP id 8A6D540E1B; Mon, 22 Jul 2024 18:40:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jhc77rCend8qHXcuky2G+YkxYI0JhtiswbZ8xEJVajGpusGxDNAywCk4DB+qC+lldQi7IZ1uMVmOIa9ManacYjWXAp7KxLM4afg76n1DiKka3C6fXxTcsnZ1zAlNoyalwbsS2AG4xHg2sy8AB+L1TK8xVo4teMb8i3knZLPsHy3HtCmvuWKwDJ7a6yYQP57BY2hnJFLGkxYqHtlS1aG9QN8+krspYtefq0Ut5QCvKfu4Cx8zYDchLdnZYJKUh3+VNMYsxOt8pD0C2HWFoaCdZ+sYGdQTu2qrS8ZspSTG2quUhfoaqhGPFmw9Clzuij2HvucF2hLkv08IjZR17URTgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zx9hCaRsbM0Q/MQ2d5i0P3eAIyrrDJNW3zcZErewB4w=; b=aUFgDJNeBXebf6RwZDnEUicvfZP8a8mXXggsntq7D346fTYEG20MMdRbOus5ErXRssTfCIGe8uDFd9CfsckheKEQiHoqW8vK7KCbOk1nxUMQhqObtSzBLl4bJFoIZ1/OAd0xOZwRgJJr6nwbE9cEH0lh0vWBwHrbFijv70+fr3CDWJ9iMaAxRsW7OTv8gxitQD9nee27Gn3f1m7B1TIsO0wq+h3+WDCs8x+1v+jbmRxbzs9VoHu5HRDlbIUN9Wdw+x0fvE3gqDJ9v1cOlRxOBEeu75BikTUaRz3AEcehgg5cjC5cxorkmlFNisSkFDsfGaLS03JGAA6zUeEVE5psUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zx9hCaRsbM0Q/MQ2d5i0P3eAIyrrDJNW3zcZErewB4w=; b=qMwuSN6KX+gcoQQzoCBJXF4IFiKbelxucIWMBPOGznUKjt2473kzakxvAptukjuz31A6e55oKljNEFz+suepJItBlK6F4dlNZem1IXVTfm4jsswHNps+C14IOz6LP2RCZrKDZ/CRP3jndYMeucwvhdNBTsuEqy73jQtKwncSyp4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) by PA1PR04MB10652.eurprd04.prod.outlook.com (2603:10a6:102:491::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Mon, 22 Jul 2024 16:40:11 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%7]) with mapi id 15.20.7784.017; Mon, 22 Jul 2024 16:40:11 +0000 From: Gagandeep Singh To: dev@dpdk.org, Sachin Saxena Cc: stable@dpdk.org Subject: [v3 14/30] dma/dpaa: fix job enqueue Date: Mon, 22 Jul 2024 22:09:14 +0530 Message-Id: <20240722163930.2171568-15-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240722163930.2171568-1-g.singh@nxp.com> References: <20240722115843.1830105-1-g.singh@nxp.com> <20240722163930.2171568-1-g.singh@nxp.com> X-ClientProxiedBy: SG3P274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::26) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PA1PR04MB10652:EE_ X-MS-Office365-Filtering-Correlation-Id: 3621e7a5-1a81-4334-94e9-08dcaa6cf418 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: pOSX37IJDPyOCd6pO5qXtfW2fqjIBMYKVuxi20dIGtuglpvAmy/H30CLi5GJmA6mrVfYR6sLsBY0bBcdGoF0B0s0MiKG4lnbHLhcMn6hDmRTMUxEN9Kxn3IaYZftIbYbn7I6ldnp+tNenYoWd1f4SY2Ea2JueWHwHJh4rD43O0ua7EjS9pFMSoSwc3DqPfYQRK5BHeouebdTqhtoKzgeUhyjFQJSHbgtLiQP8hKte6ZXWTG0nvm/bDmqAWwh3zVwdru8zwWLciAlg2Xuv5YbdFfkYGygmAeG70AxLWMK2Zs4uDqYNYo5PwtIqkmoHl1iOo6wmmnvLnV56hY//cfk9hv1ueu8s3cIXeVglsklke6F1O1tuiRA3QH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255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8SPR01MB0024.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rO3lZqlTTcH3Q2SvKpIEjk2NWDh5Q4ISfdMZ7H3We8XkL5s+1ZL+2jX7nD29y7LzF2UcHDkSwBIg+03ldu36PN+dUt73TPO0Y5jrAX3BvFk7ffHPlFgVMhsg9a/Jxpdh/WzjBqX1tXTPJVda5svbAvn6TOe7UEm+gsQZikPOMtWS/vOfZZKVt6KcgP53KriAVfUKHaePrwm6K01W7pCC3LwMqp/MUVW2SmdOC/IzXtMsMf22DvmLaB2xkarisQCEHNxjVMlQxPCninSYyKKEZGyP/NnZQl737gol5wh5Nux2R1W1phcQLOE7khONSiaXnRzqlBKHIhnTfS4kauPcZpqjcaXQ/PwRk7ckCHwDO54Lwyk4JZsWsJDdYVmIX2vEmZoUb1qYsgSgSmAWBbXLccE8YzDlp557LywHh1V8mM99tYT0Vz9ke1XA3nVBtT/FqBoP00xvwO3GCzHLm9psNRMEdDd/ZJXgr7ROUOwdU9FoS9IK+H/Ky6hjCFSH1IJ9AHpRdo7qZQS8wB28xggd2QiiE8ch8QKhfx2gjWmqgaBjxEVeXKhVFAaU0IaFpfcubuGHdEra50aTWJsGFFe7qgmMMnCB4kr/eN0G5Pwp+zwmEJe4UhZjVOh+TQQMCIUEfXCj7aRZIsPNhhLQ1y48wy0FvHjgLcA3v8Z7ZO25i3IDUITo9vk2ijXJdm+9+FGQHx0EpJbCQTvyAL22Fgc/Q6SYZdkZBv2b0W0YC0ke3AhXVi2Fq7414pIt2fc5g4QBc41TAkcP34VSoxREbZw7YcvcIgFPLlc+DkO3zWSBBsra1WURqYv8fc/ipVWTnaBepnsAz2Twt6qXWKeamGbcoqTm3r4k8Av+BGn3uoQpi74+IRyoPQVQ7RJDNs4WfprCTT3vd2AnDVGeFQiFeYsr7YlPTnE1hT4bPK2XJXZRjo1Z6BF7u4hQFl27pgt81nUy6xsplAW3FHm60jIVNU6pg7KYL5Ss+t79Bwz4rt7WqwYtxJp6z1BIQ9DAUaEIGcN948aa5gUB92c21OjvGAxJn3tzh+GWRVjmL/vsFFArcsyjSAKui7J9UJ0kK/C650wENNpnjaFaDHSlW0B6asjJJPV1MAFw58sjLN1S+yOS7Jiw0aK8rTX8dF0juujhrRkquvnGPiyDc9OJBTL+MOdoH+xArXv44TXo5eJfBAExON890yKZ746TYZP08zMz1YPSvQVVOp0zVSrVhXybJVRaQltgsp5JG4cmxc0iI5QsLHDQYTBN/T0xP4mAjMgKARpCtXHq5qqb/LRH8EhUxKNqCvDyypOGdx+qsNbkhFjpUfXyFrDE7g76+e/2juuVg4w/kn5VSV1yubeKfgOCKCM8nr3m9tDDdqR90ZE82aAqyDaMUlqp132wJBjsOLmyH3P1H3tHo1BF6Ws1YEjrIld+uWLOEF8HkRbJCKuTOgol3YXIKq3EMWg86FeUFPKshedoAyOqRrFso8ViWnxiYrY55vAMQSi6Cvka40DLmkXerO6xJBkcxzhtQmub6/dM5O3+2NvmDoHwvYuek8vdddVm+zU8fFv5JON7rrShbkps9TCN+G65hn3Tj3E5bOF1wW0d X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3621e7a5-1a81-4334-94e9-08dcaa6cf418 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2024 16:40:11.1165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9/vApwL+eQFsOUuAdf4Tav1D5QjcJhFXAaC+qXMr7sfDXltmX3vebB64TWsxQ7BQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10652 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 The check shall be end instead of equal. Fixes: 7da29a644c51 ("dma/dpaa: support DMA operations") Cc: stable@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/dma/dpaa/dpaa_qdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dpaa/dpaa_qdma.c b/drivers/dma/dpaa/dpaa_qdma.c index 24ad7ad019..0a91cf040a 100644 --- a/drivers/dma/dpaa/dpaa_qdma.c +++ b/drivers/dma/dpaa/dpaa_qdma.c @@ -615,7 +615,7 @@ fsl_qdma_enqueue_desc(struct fsl_qdma_chan *fsl_chan, list_add_tail(&fsl_comp->list, &fsl_queue->comp_used); - if (flags == RTE_DMA_OP_FLAG_SUBMIT) { + if (flags & RTE_DMA_OP_FLAG_SUBMIT) { reg = qdma_readl_be(block + FSL_QDMA_BCQMR(fsl_queue->id)); reg |= FSL_QDMA_BCQMR_EI_BE; qdma_writel_be(reg, block + FSL_QDMA_BCQMR(fsl_queue->id));