From patchwork Mon Jul 22 11:58:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142592 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 60EE545681; Mon, 22 Jul 2024 14:00:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 640244042F; Mon, 22 Jul 2024 13:59:36 +0200 (CEST) Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012009.outbound.protection.outlook.com [52.101.66.9]) by mails.dpdk.org (Postfix) with ESMTP id D84E4402E6; Mon, 22 Jul 2024 13:59:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VbH9wBC2TJy3FtPZ0lxIXDsQRUpX0BN7fdHvb9W99Oiaco/1cKS0pUOiNnvuSe/eFX2qpbe5E0iBA8rcbF1xKBBI5kgD0CMcdydLyunbjDnZCvP39Iy10PKnT3CRBF3CjcprUrfKr+Aucp1peD/P04d7YAXHfpDjbKIaFumLQYtJvCKLIf9YyL6giGo0iasBUrGWY8mALLSD+huKxdGcO9bVGVJX59cwhA5/NB3lPmJMxpVVZJYhKz1la0zRH4LiT16Ch/XSQt3uB99F4dJl7AU8nP6xRHQXHiKRPtm7705WjgyuMqVvN6YmznFRG5R7hsk5L6PPbs1+hIRWAqLWkg== 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=GGsXtNuk38m+ySODQBMN1WhQzPuGU3NWGVAbm7PC2d6/QI7djPq1fGl5AKvCbvFm0nVTtwJlKarWTQh7XAUMQu4Fbf9dnbGkgbsRmUsRgxVCiftGP+OF+CyEUk6JM+mEtmkb0KxjjAhzHkEs0WH4MCJa/FMhD2R6IoGP6P7MRXFTF2AhM9UuLRfCEP7dxzLOonnNu+8haB/75Nt/w3E/Jaz0F+0QLLpzsjdgq+Z6mRQ1l9/PU+5bn/I3QgSQVXNcFNKWZgreBOVbFppUBjukbOqjxDsn/fUdE0p9R8+D8e1heLc26FunSQP497B+IhTT8krvtBHVaDsM3uF2Ht4wLA== 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=lllh6UchrwhkvSnNlPs3B+H1fjRan50uXGHTd0kQYGNCaUOUGmLfq0eIGijCFVZ/7jHeYqEmNzcnMe28oGNhPHRBo8n2IucXFLQ4nsWjQ0IcyazRMMOKfv1CTGQ/GxyQQ/4dNdwGEcnnhGAIV4vyiAS+u0J6Pk9fmtVjLb3Wuj0= 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 AM8PR04MB7970.eurprd04.prod.outlook.com (2603:10a6:20b:24f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Mon, 22 Jul 2024 11:59:27 +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 11:59:27 +0000 From: Gagandeep Singh To: dev@dpdk.org, Sachin Saxena Cc: stable@dpdk.org Subject: [v2 14/30] dma/dpaa: fix job enqueue Date: Mon, 22 Jul 2024 17:28:27 +0530 Message-Id: <20240722115843.1830105-15-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240722115843.1830105-1-g.singh@nxp.com> References: <20240719100126.1150373-1-g.singh@nxp.com> <20240722115843.1830105-1-g.singh@nxp.com> X-ClientProxiedBy: SI2PR02CA0025.apcprd02.prod.outlook.com (2603:1096:4:195::21) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|AM8PR04MB7970:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b5eaf59-34d3-402f-0624-08dcaa45bc9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: GS70e1bY9/+Wgysk5DOSexSUiqq4xET2gSkzYD/NZtxPMN0e4cqFCIE7VIG8LP1NyTFrnCKukqF3uK6GZur8b55RhHLzc1VfZtMb67/0/I14fozPa7LK/kAwlPKd6Ez8zrzzVDqJ5y9cC/hHroc8C9lHkdNphGJNioEu9XQU1Sm6loU604hbHY02NriSG1wyotUGFUG5jboAORzfbN8y62nSTEg+3TAEmLd2+oYZ9/vVORFOeTdP9gFOahoFda7NHyUEWrV1tlWnVeGfqWbiDFsW1fet2NQHKCnBvJjmt+bGuHFMCA5uJwD72b1Pz+HDv8dXagoQO7MFM2I1Z2dOvLVxjR3KFv/Bpb+W/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Forefront-Antispam-Report: CIP: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)(1800799024)(366016)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TLCFtRwZpGMogwJES6u532y9rBEh8l2UOqWYiJAPTQgPEAftPBVyxeiHBGATZLw6qls94UCe6vtGCMFgISQtECCYFghiZEdOcveo+v+Oc/i1hWhowlJyLHTOwXjTzE7oVchBy0Va6RquhSLffYgxGnHocYUizbiMNhvN79XGBjQo48nOwqUB/kbFfXVgHRZW6zs/ToEV0vVwx3ShEWNFonW4n8OMG+oYn3cXHilRZqbD0IiBzKanmcQtW2Le7VhDMHOSqHp2WNho3JDCxBzFfsKO55CuCYfMKQpAy/q5NJyloiURqI6pmshR2OyjKHKTwKm0JxU84iauKn5yFrRFcUhtgfbL6zn+0BItSCx2ZJwJrrjWceJX4L146V4u+rH6gthpbPHeG2nxbeSJN2/ig9z9QHy120r/d+PYUfdNsXUzPJpseZTVFtrndTKFSWeYH7lc4p1AWCeYLBtEnF2BXcNR8T2njshH7Ellqpi6V4f4QoIv2iiE+y4D9RPxABE3WvTp1HEJ86yxG+uWkWhmB0wsOFtoBYvHuad0jEHQkVBQZH5q2OOPpkXH0O9aIlghAyHU/NHpvEcS7C32md2OE2fuaQrSenDDCbsONenstTWtr7M6KxsHIKdnOOynJgB68oqE859hVCnvLBWHJ3U6OvYU0z1MkbN8JVSp3FvfogyQxIG5J4yPtAuTgulSum84G5eTPWCduAYkQM8ygYsfeA3421YRO+64vbNmL0QneKWli+9Ll8xIIJ1D8XT7aHgeMZIda0B+myiH57ro9+Jx47ZWIWmvuW96gHvhWs/kCscAWGkHq23CcYiKU//rVmpSWO9QfH7iJk1Mn9b4I/Dy2PQpLxpnfnU9Fu8mOlYKhFX9CY3Rtx8C4KrN2gY5xnwvZy61poGxgYCBGrzhKRPlMmQVd7IHE6XlywGMo/fsmxZ6C5XydJ+Ti5nGDcWsG2KhajIe4x9ANR6LMXt/TF+AbNixnkLb4K++7RpnK3MueV2POB3tfsH7JRTyxDnbP7/zqH/dV/NtiKPvbSiPnPSqyfbyHWyc7BqkAQfeUFXQsQzeG8yM0Ax4blpv9rqXv2APe8ieW5D0nhQSi59QBfVjFeDFGhEtsoXdWcrCBAlR2bvtBB1L5e6XK0hBGXEM6cHWOjUlZWKjIsDjrek8NDS9A6ELWcnbgezlRXdBBB2ZnFwd1pZp4ajrv6EPb4h7fyZLemi4FrExHurOT5mTjGPm4VT3yLEI02GlPWZErH+/0btGsXkTrCOjRuAQq96VCRG5MRcKV1eQjDB1O7meP6/eEhaRari+yrjaNVokzh1Xgfu1gUeWMObnLuq63g4wpS6aFiWu3eu/4Gg94vN/gwxqThzEnEmqrHXYkRHu8ir1mZCYKqdzVahrBnUTwyCndHLkJkx+IOtAs5ZUyK2LMfTvBzf679E5ywslXdr4X2PXV4tCDO25w+jFHxjkk0JuxkrRcWCSU6ITHy2KyAN30o5RYlTb2C0edJ3X+nx3P0YGDX38AkIuqHQU9gahDBZAiTvp71INTR6Ppk+aIvF9Cznow/yiZPwUEtnOwI3AAWRcwEX5+Df88/ccRLibWyxQ/h6G X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b5eaf59-34d3-402f-0624-08dcaa45bc9a X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2024 11:59:27.6482 (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: br+RGj1VaUD4lsLuiFYBCM/iK+VwVmQRFiikHmKmFDEMv1st/5FLesr9XaQv41t6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7970 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));