From patchwork Fri Jul 19 10:01:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142540 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 D44264564F; Fri, 19 Jul 2024 12:03:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C4D842EA2; Fri, 19 Jul 2024 12:02:23 +0200 (CEST) Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011051.outbound.protection.outlook.com [52.101.70.51]) by mails.dpdk.org (Postfix) with ESMTP id 0A89B42ECB; Fri, 19 Jul 2024 12:02:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QfbV3EgbBnhneOnMBfWTvqqwxFDzzCDqj8n4pbNfu3QzZC8EgOkDdZAsClIaieRZUpcgsoqvPN2b90Mb62LGJrQDBEBIFS5at08qqH0GOml0j1aVKcgC2OuMJfDnq6rT9x4ZzAxjJHkruP+XfDwKVfSNSxBd95lyPm1UF01Fqytq3KN0G5YRAG/7mp2tKfgdh3FFSDSAdFuV4LYEgxV4h8JjTD95/HALxSP6AmWhCCDSdP4E9GfyO3/4DLaKTWgIz1ElKErSqnEm6NA+vdGeGb5K+xMCTKLqdCL6usWhVnkiOHdEAtE56uT9gNT1NMv4jR/YY9tNxOJWIYQMSQjHbw== 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=yVMLJP8nljmvZjqc+EQ8XQmyNHRIysEHDRb2DSZ9kJaw9kdjZGYQHnOiZ0II7PRfQvIlz8v63xvy11YdPCDN1pW539BRGazCynHQGkf9+KtiD/oU6M6oj1LvZ3LNiCBQRLJf87VSe0gI2aHsHfcI3aFN0nkqef/iCBfZMxnJLSxtek/REARCRUGiUL2tWWItDNtYBD+u7OoBPvzom9XZ0NlouLnh2Ejl9cD/WpRLeO3Nm1XHBuFqsG0sOwtaCQnjK7Rlv5L3L3KQ5doBazDxv3RRCRamAlujTrraWwGB2VTfa5/aUSfADmkqtbM6j/AYfXKpFnI2YRwh+1QDyMTT2Q== 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=OIcTN1JgzCbG/Hp5dvAVPxbA7CgVz+FF3VcgzaqZ6bvYdrZyY92wziQ4n8swT9NjhCDG7XznUg7iBcEAcByIIEGhaFRHjKzUvhRgVVVOLT7WlsGdENAfacx4uwLrmquRTTp9JqUBJ6nFyogpoqac6upRWIQARo4sMlwZ+NOh6xc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8205.eurprd04.prod.outlook.com (2603:10a6:102:1c2::20) by DB9PR04MB8345.eurprd04.prod.outlook.com (2603:10a6:10:246::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.19; Fri, 19 Jul 2024 10:02:05 +0000 Received: from PAXPR04MB8205.eurprd04.prod.outlook.com ([fe80::7633:884d:5973:174f]) by PAXPR04MB8205.eurprd04.prod.outlook.com ([fe80::7633:884d:5973:174f%6]) with mapi id 15.20.7784.016; Fri, 19 Jul 2024 10:02:05 +0000 From: Gagandeep Singh To: dev@dpdk.org, Sachin Saxena Cc: stable@dpdk.org Subject: [PATCH 14/30] dma/dpaa: fix job enqueue Date: Fri, 19 Jul 2024 15:31:10 +0530 Message-Id: <20240719100126.1150373-14-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240719100126.1150373-1-g.singh@nxp.com> References: <20240719100126.1150373-1-g.singh@nxp.com> X-ClientProxiedBy: SG2PR01CA0184.apcprd01.prod.exchangelabs.com (2603:1096:4:189::9) To PAXPR04MB8205.eurprd04.prod.outlook.com (2603:10a6:102:1c2::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8205:EE_|DB9PR04MB8345:EE_ X-MS-Office365-Filtering-Correlation-Id: 0be7605b-4ef3-4399-04be-08dca7d9d79b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|366016|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: tbXs1c4oHDXxr4Hz5iZncVBfZjHwslstzl3IqT+zKwibusgoaZxfRwAE6DjIWcVnUgZBWW2IdgazzrqesS8fbkVFPw1ZGs8uhNPeR2SjcI5hGvdTL1Bzt8P2PvUKhLpDW6SidOTWlxGiECiPKjfLwxOZFH1qB1J3AfUlWCw7V4MfvbHfJT9Aqr596PQQ4IMFn+aTPdXDGLskdw0tJ+6zztgzsgOS8FdQt50PaycxFcli+6qv7oPLH0D2nTCmo3f0rC8cu0Qdd1/aLwQx16AGiJia5pydREKV6F43+KTJcRGJP1X6xuOvCOGP78KzH/RfjB313sjEhz6mI3y1VYZHd65kNK9RBR1B3wcQBYrKqfmmToBPRBCG3pl+ZxYZd3dRH6FVJ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CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8205.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(366016)(1800799024)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sNv3EEpRWWM0GiM+8Zv8RsPdRj80JdyawcRufWpFDYZk79T0sKGDKlfPuQNYhPmdhhxdzmJsBtgg5ow4Y+8FoHP6EJSJUJ1ks8ik2WCGMlBR7wtm0zKLAPAeVvyQvDc/NVNRueJe/rcNpuTNIssfzu74lzYuqeoHSL+h/qqfcnxmpOZ43g24nMtfumXtI5GVr5aMzRi3Wtyiqxosg75jl4keYtLAXzHBR0HoNIBDDH03w8AosCfbW54BpTKyOUlBKVzSRlIfgGZcNzaZfhVegvNXKKBKLo7Mw7qtS1OKUvmGyIGqRaLjbHwt+5AjzSWBr8nV0ueIozTMtnJ+ru1AZ572N/a0dnsE8eNwZzLq+ihseitE7cTu2k6jVxwjxmoIKVylqWkPHwdG5kr357Ucs0idX1YIcYSxQwYW+v++Pa9oVvGKaVMb2Ai3k7gvDz7bPPGA9qJqISEZlhSXVrP8buCmE1exvJFQ+ofXjlONdq8MTJRYMSIDkZJgRt62j8mBqwMTs2P+0tzFoxwygZryH/+Vmpw/8CrLrTe94iwV/o4gpotGmnuNFrAZtdjkNVh8ATyx2w1F+kSRhzKTEhmdgeEAIXifApiyQZWPsbUi/OkSjfojwy7FG9Z5R+Rlnstqvo4dhxEFMT7dYx3HPrdf/tKDfn6HnZkFhzTJK72SKhHeT3Wi6WTvSMX4v5BOX91EWG6Q03gZ/f9IIWVPBEi6gATm1fxx+mvbWdVd6dpz6ZNb4ddrR5L07Ov/CwmbWjKn+T+IqtDpr/yjRMaN2ejr247ZAd0HO0CvEKHa93QuVoBpbLB6W3oQGT9Kg+swYifZ6S8yeH3z14ykZfdDBNEvhQ97DvXf3zGM3QCBby3AbAH6SfFlmKDPmLrWrU6xZqLF5fVEttVp78tpsXunBlmzvxID4TDEshW4UcgTHHO/6UQ+rC+I8QDNCctfJDwyNJVVPpvBJFaS5ey1Rq1X3NrNJ/uFPPiLOMoL8NZMwCBN/q8JGHHjJpuYmoMQuZvGo2uG+5kbGHjayY2dzdcOa4eCc/onxmTzeZF/B3+3UQSKc49qpAAKW4sy45RIvggbFvLuZ13Kx00V0yYgVHhxQ1jewRldj8/FcCudRtRUDxV/0m3cB/k+lzPikUgUqOmJzc0n0KFkQ2IEvWaNsBUnbJ/uQYD/dyBjlwQO0EoLttlr468cggkwgJXJ+NjOl9K9W/uosjXhUwIyefGvcXaWztQtpzPpnNoH1taGQryN4C0pTZIoS+45j3LE2cai7oyO780xm09WR4BoqQyDfD8fIMWbwliZ2Sp6iSWd0JtuAIIEGYIlJZEZkEAjaTvfEHT1fEkjk3mocVPdFTFBIBP13f/RpzLbwvweXI+YvkaubifRTCBW3CiEOQ2kCfe3DNgAPGTYWrsFvTTDZ/DbrWbSKhqN5Y9NQO7+t6fPnuH/p5Pwvp1Yp6iZQs6Kck0XoZ7xUVHPN+qnknwo4czkH3+WcvUoOEhQLXxUdXr2hvaRilyufh6GtTBbfngmVVjI+9rEpIpkCah1mVOCgvBEtbaDDNliLIJwbGHvOrOw/459614jENfqKJtDfk/YQ70C2Ir+ouUP X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0be7605b-4ef3-4399-04be-08dca7d9d79b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8205.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2024 10:02:04.9679 (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: SDrwEipvEfI8ISeIUpCKpmjpBE8ygdShWeJkKLKOjL2v9EqbY+fnlpOjk93ubCUq X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8345 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));