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 0E98942606 for ; Thu, 21 Sep 2023 10:35:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02545406B8; Thu, 21 Sep 2023 10:35:31 +0200 (CEST) Received: from BN3PR00CU001.outbound.protection.outlook.com (mail-eastus2azon11020016.outbound.protection.outlook.com [52.101.56.16]) by mails.dpdk.org (Postfix) with ESMTP id AE0B74014F; Thu, 21 Sep 2023 10:35:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SD6mhqNwlQ2W9I4Wn8gnYrmPt4XIrLg5UYy8dYdpZKWAPy9ax3wzx6NvPvFFEJirtix7ARDSA3DgyLi16EVURtJQWO4s/c49DMD1uYncb1uEkiL8rLzuh/2u+u+Kd2L2l42YhP24xU15rJZ7REncbur7fZNpgX0QKV8RewYKnEB54HKQyHMKrJ5/pMla9hhos6DtGlYEFeZcJEFchA81eMNSNCFwWwkWzdszkLEwiLLSFjB85c1KhYr3oYuIUarhplK4aibEWo9kDKlEPYynttewu6G+XhDWMkEk4peDBdv8fwAl6T2bqXurrPcU10im+SBJs3GIwi9M9cLeuuh3qA== 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=kMRfXyR6VK3XVYJ/184goXwnSE2LN9sf/ZsCcdAUoyk=; b=l1n+4cZfZr8yXikPwZNJ8+ffu+23jyns9xxJKSTdpmfEzYONnBWGys9QYHir60HqHhrhjp5FlyX1yDgUEun/v4ipbOhvuAKYnC2dFU14sOoylxe/Duwftxa4XrG5JtldrPi5hyhyBHlOcuH19bo54EIjwE3eBBe6p3NUIXc+BguPNm0YydJcN/2Q1tpFUeRscXjeS7GHyx61RswfA5UuYNCk20npz830abhFitkBF0c2ijJSFhpMUil7iQLdVfOp9I83Auh/gmwkzVec+U61VyxENfAkEHf8SiES+wcLsIK39gA7tk+C+79UiWkstezJPIIb7hGR09la7dl8wSRlWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kMRfXyR6VK3XVYJ/184goXwnSE2LN9sf/ZsCcdAUoyk=; b=KUTQVrO3/ZrVKRDhtQoC5Q63Jk6s6C1moXrjB9v8gN3srprZo3pTSPUqnf2QPIriA07kY9YNxgScAwPwXV/3yyxFqtvjYa+XrUTJ2o9LCfK4qblGSuMG09st7iveEV6Ktdc4G+Ck4LIzyOLtCCZlDeDpEgUkv/1LOtiom9f3ow0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; Received: from MN2PR21MB1454.namprd21.prod.outlook.com (2603:10b6:208:208::11) by LV2PR21MB3086.namprd21.prod.outlook.com (2603:10b6:408:17c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.4; Thu, 21 Sep 2023 08:35:26 +0000 Received: from MN2PR21MB1454.namprd21.prod.outlook.com ([fe80::cbd6:26c1:4d57:b9fc]) by MN2PR21MB1454.namprd21.prod.outlook.com ([fe80::cbd6:26c1:4d57:b9fc%5]) with mapi id 15.20.6838.010; Thu, 21 Sep 2023 08:35:25 +0000 From: Wei Hu To: dev@dpdk.org, ferruh.yigit@amd.com, ktraynor@redhat.com, xuemingl@nvidia.com, bluca@debian.org Cc: Wei Hu , stable@dpdk.org Subject: [PATCH 0/2] net/mana: 32 bit support Date: Thu, 21 Sep 2023 08:34:40 +0000 Message-Id: <20230921083442.2104530-1-weh@microsoft.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH0P220CA0020.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:d3::34) To MN2PR21MB1454.namprd21.prod.outlook.com (2603:10b6:208:208::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR21MB1454:EE_|LV2PR21MB3086:EE_ X-MS-Office365-Filtering-Correlation-Id: e3cd2fcf-6745-4b40-9afe-08dbba7db322 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b8xhIzcS459mmU3YyFiYDVB1N6/dzgK6fX/y1D3v0bHOjBhYSupZ4Pv6bWw4YpneVHRiDcB7GsmCAeXd/9xrEvj6NNtE0wsE6ErehP5DlOshkZkm0Q5LeruI8KAL+Znuylt74vEKUTLEA0Aa175XL6GuU/rSNQve4PIGCBtCSR92OvfVJe8Ry7tDCvbVwsSX9Pdmze2ODrVVo3n4TBUTKVqpvZvDcb4JnF88sGZlkjmIdteFbJPbHPnic1OP236r/5R/KdsrXXt9+nWLABZPiMb+8Cir3BWtRM6usvo9PJJGMfwDHO24YmqwA5w5InSqNfS0/2v6a+gUM+md59iYO8cuBNDCtBWVC52cp43R9/kH4xDB+nly9spHK+uZp7k3Abrh/Haqda3um/8imtMNk1JR4RIJl8oKm+dJw//J+QjfV2amCPrQ16bb2mnkiCZDzyz4pls91UWhmlZ3oNXKSvOopoDUKcUE+BdLHSnxe77riv0DK5yVc6CCnfnWh4kYpTyn687aUcTOCg6jh2/zKvpxo5xe6DsWylI1g40px7vZx8itxmE/tTDn8nTXPnVB+YIPZQGiBjo1O0nbOzSOuMoYzJbXmhnLuO9r2CR5gL5kfLfRFtgM2C8kLLSRcyN9j7xVqV4VftahN6LHNWFIGJVggd4QSL45iuphTAIhyR8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR21MB1454.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(366004)(39860400002)(376002)(346002)(186009)(451199024)(1800799009)(36756003)(86362001)(8676002)(26005)(66946007)(82950400001)(38350700002)(478600001)(82960400001)(10290500003)(38100700002)(8936002)(41300700001)(316002)(6506007)(2616005)(6512007)(52116002)(6666004)(4744005)(66556008)(1076003)(4326008)(66476007)(2906002)(6486002)(83380400001)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?qZ63ws5ZSsE28KqHYmn/wWdorI1qSUrljpO3u9dqj591/+g3xfAhJgkhzaYL?= =?us-ascii?Q?XHqHZ+bthxQCsmff2C7viky24MGATWJZTJisk2iH6dx5+Unq7obm0oIF4p7s?= =?us-ascii?Q?ooKkafSS38tetagWBh3qma5VZw8F5Sz1p6Trjcd9v8ZdZzyROxawH4trPSf4?= =?us-ascii?Q?/18D4J4lpblXjGFovK8YAIe49Md+dmjJLsAfc3l8Wqsyyba6d2DseyqT3gYk?= =?us-ascii?Q?UAKJjtzz5oIDSQeC0ytV24NTdUAQ55hFWwDPXLKaEc1/kNzUwItKoWo9rPTh?= =?us-ascii?Q?09ZIL2e4r/UBrml/o3Jpy6fY/YQZ5zEziaFm1hBATRlsfsx4FEZ9N6M/1OhL?= =?us-ascii?Q?MfPKvE8beFn3mgLNOb3nYUeAEAqBQyt7wJUES1ZbSqFUibpOfC+3zOm0Gwuh?= =?us-ascii?Q?MTTYwnTrUlm2KuNupmXqdAX0YipDCvUlT/3sjbhAH9lsyuZIy+KM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M9bDhyej3uSvYj7zlobmPpR?= =?us-ascii?Q?tLdeH6uPAs21rgxevowj7PBybiqceM1QwcUIwW7CLiF3raCqY8j6oFCW3t7t?= =?us-ascii?Q?oWVeFuBhG+vlfFVEAN3kizpX3EuQu4XhISVjEGL35igAq4R9tWNDjum3c0CS?= =?us-ascii?Q?qqsz6r+9Zo0LgFhSKtgYoIAG/emuUzkrN2IxbfQtgdAzLv/Z8uVKPKkK2HUE?= =?us-ascii?Q?bvi2PsTEaHT2EDfmPZ0zWkO6c1ZNGv6y4Pq6e7cS?= X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3cd2fcf-6745-4b40-9afe-08dbba7db322 X-MS-Exchange-CrossTenant-AuthSource: MN2PR21MB1454.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2023 08:35:25.0139 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DVxfMAlXOdicyBwhiRNiMXW7UdRcT+GBTZd8o0zcNmPptJtWXlCXM6s6FHp3MfbapPk7G3Xd3fycYv7msMRD6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR21MB3086 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 This is to combine two patches into a patchset. These two patches can be compiled independently. But we need both to make mana functional in 32 bit. Review comments received previously were also incorporated. - change port casting from size_t to uintptr_t - remove short doorbell for CQ as it is not supported - add a couple missing ifdefs - fix the short doorbell threshold counting in wqes Need to backport these to 22.11.x Cc: stable@dpdk.org Wei Hu (2): net/mana: enable 32 bit build for mana driver net/mana: add 32 bit short doorbell drivers/net/mana/gdma.c | 92 ++++++++++++++++++++++++++++++++++++ drivers/net/mana/mana.c | 2 +- drivers/net/mana/mana.h | 26 ++++++++++ drivers/net/mana/meson.build | 4 +- drivers/net/mana/mr.c | 18 +++---- drivers/net/mana/rx.c | 45 ++++++++++++++++++ drivers/net/mana/tx.c | 25 ++++++++++ 7 files changed, 200 insertions(+), 12 deletions(-) -- 2.34.1