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 010044554B; Tue, 2 Jul 2024 09:40:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E43AD4066F; Tue, 2 Jul 2024 09:40:30 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2100.outbound.protection.outlook.com [40.107.212.100]) by mails.dpdk.org (Postfix) with ESMTP id 9AEC5402D2 for ; Tue, 2 Jul 2024 09:40:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eMP1NTHxl2NhT0IMPR7CjnSdSdJ5O1BesxFo3RpnAlV4NaW8HeYwe7afXvLTgP4mUuUX7Atdz3KJVuGgxS69PHCh4gkWlVA96uwcJZUS7ZIfJ5qwO1I+eEsRQjv0tzi/FgR+f6fbRvlyYO7oWZXndb4ehavdNVhHI3PtV7DySM2Te2mjVZ5be89Rp0iFRtlpH5x+sOQbf8rxk9XppqyOzL1H2re9+WhlGD/SwKp3Unhp5MFAeoFNGQLtWCmh6slKHM35iKF2p53/MJrlqaPo4vFiax1xeLI07FpKR+1OhtqbPzjNL/jQPoC4/Tu5nHKOfF5fmFBfRDkmifzNIAGr9A== 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=GpjI0IvLZX33dxkoaiZpQdqRxotYQdP9nfkFxTg8mSI=; b=ZTQH1BomGpgtRUwzVGDeZ7UV4exzsDkcAG5Iqv4Urkq8W5AxAG26EF0/bwm78RJrb5FwU22dUcVFMEFPYOxFERNTpXhoiyF/jWBhyJaQR/cb4Prrr8fh7O4pALvgIPM2GYjr4r4TuL8tdhdLoDlvSM5BdQj488C43VKctLwBLPbcA6qJz2/dwpi2z43y4p3I2VpWj6mfOi+DTpp0cdfG1lXjLcnPMSENFjD/xCsfUdXoUyo8tWnnpI+lAyzkFmumtSxBviec6xG6fGYnV5oqGvdI/IG8YJaohvKLAv/wH8NF2LkyUIAUtssO4e05LktnjuURBpzKyxXJ5t2vJGDNqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GpjI0IvLZX33dxkoaiZpQdqRxotYQdP9nfkFxTg8mSI=; b=Gz6tjjMdqMGRvjvMR/WThScHLO6TvFWGZPmQ0R1YyyI7jXqy9Oc0LbhEeGZuqg02gYzo3WNCiRRZltKN/G4KCkn4WxDul7WpGntLe27Flpyb83UOHeryAtEpj5If91NFqpFZVJFJOFpbJEjBondhO7IJzi7vvIw82E61pvfOsSI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by MW5PR13MB5439.namprd13.prod.outlook.com (2603:10b6:303:196::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.29; Tue, 2 Jul 2024 07:40:26 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7719.028; Tue, 2 Jul 2024 07:40:25 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v6 0/2] fix secondary process PCI UIO resource problem Date: Tue, 2 Jul 2024 15:40:05 +0800 Message-Id: <20240702074007.1547-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240702021946.4194102-1-chaoyong.he@corigine.com> References: <20240702021946.4194102-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR04CA0023.namprd04.prod.outlook.com (2603:10b6:a03:1d0::33) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|MW5PR13MB5439:EE_ X-MS-Office365-Filtering-Correlation-Id: af213823-c9a1-469a-bc40-08dc9a6a3c9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?2kn6VLM2gVdyzQrLzxwW5N6CkSxp8u0D6RLUSNyeMjWMAQ1jAEUMNh0ZPNnI?= =?us-ascii?Q?0Twuif1U/sqvD80OZi43YrfVGSQSn163xQ4ki88W/8M7eG2n6sx7JrZnksyR?= =?us-ascii?Q?2GPT6+epKeW6L4snk2oOyoRTu9+nL4Ksi096IPJdUxy+rW9wGiOzlUyy7bPt?= =?us-ascii?Q?lLxmHJcWU1948N8eFjrFLV1mnp1M6htSy7gL9jb3E01FB0/5PNst+R3Ft7p2?= =?us-ascii?Q?a8lzjwGSk3BzNRhJDRp1Y/uzxRYa89EXn8Dhy4QbztGGkAq+yM8fFSWhDIht?= =?us-ascii?Q?0ZRxRuK0bx5snWLZWt7QWE2hf8+m3AmttUNHN3X8vo4rzoeVbv59jJJH8ULJ?= =?us-ascii?Q?KtcaTsDjx1Udhrlgj6chJqO9bfPtfMJMtG60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LXQ9oHS2KcQtg6xzLNu1fON1ot3fCo4fZOP4mj20rklw?= =?us-ascii?Q?iYqAbhmMywlATUSyCGP9F2daaLVAqfTI4drJ/wjHjjVFB8n8nZSok8rLWmuE?= =?us-ascii?Q?OCp6CQnehNbbKwelM+ECuh3h8BVVSB/tEDXgdt4vkr//G2MQEg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Rlytz60x8gOA1DMuaFYZVh9YI3860ZJq7yNmYHDzlE6CLDKU3DmsRORWaOBG?= =?us-ascii?Q?Xa7PE/DE474RIOgeZGzOAPPDzSTC8i2I1lLCuVGhSn4OiB3/VneEM93gU8VL?= =?us-ascii?Q?WJpMjMwbJf11K6UuR/EnIYi4K28lChLvw3Kijv6dS40+zGmCPPzMGq/vcTvT?= =?us-ascii?Q?cOY0RJHvRPu8EQA/kRjN/yvGbkPbsQK2cXZ7EMtVmzFCCffjwl+ZRx+r77RA?= =?us-ascii?Q?N8B1YmtAwrK5FJHFnEqza8qwzbROKMgxuGmdcRHwQpGTrRTCfHRd0h3I9vcI?= =?us-ascii?Q?mnPLtaETmzg8GUoy34YjICE/IjgTwoiWIH0iqyyHjJi4Oviz5hxGCB2ntfdD?= =?us-ascii?Q?mhnpq8gkVJ2VyJLL1Sc2KYbFIek7cGfCN+dH8PiT2MrGmX3lDKwLGgnPOIxH?= =?us-ascii?Q?v2CNxM09ljsDJXV8L4k8A/qVjAj6r3Hv1do6uNTnyTQvBKE9K8dfYbW7Zbgt?= =?us-ascii?Q?om1AGHgEFUhFnSnwj/ypg7qmAQZj0Yv+22iymqBQdTMb0rH/0aTjXF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3wBNtG4/xb/Rk5pD/4LUqL2KkRUPnMmtEjibB?= =?us-ascii?Q?hP/Md840in9F7EEGX23chAYqWai2CtDxTJVEqm4iCzwpMZYqgN9DW5u0JoCq?= =?us-ascii?Q?QkeJDtC/sQzYoUlvUBfLPRU1mmZqgQ9KQdodhRn/aV5Ukg24ZkaRu3xA5qPI?= =?us-ascii?Q?rYiSOoOK6adNBeSzlFy8nSXcHTWYNbAXY+I2ZLTMC6jDiQP1m0Z4PAmkenJ5?= =?us-ascii?Q?zA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: af213823-c9a1-469a-bc40-08dc9a6a3c9f X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2024 07:40:25.7908 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AdU2nQ2TmDGhhS/vK54AtwtPIuQjaLNoqy93ZVvYZT0Tf0hUpEuqWXyYCUgtzS2Pu9fsCwUO8YuICcVsPNvIBF4XsvymwjxKn5QQBFPCsuI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR13MB5439 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 This patch series aims to fix some problems in secondary process PCI UIO resource map logic. --- v2: * Modify as the advice from reviewer. v3: * Modify logic as the comments of reviewers. v4: * Split the commits to make it easier to understand. v5: * Fix the unmapping UIO resources probelm found by the reviewer. v6: * Drop the variable rename logic. * Add the 'Ack-by' label. --- Zerun Fu (2): bus/pci: fix secondary process PCI uio resource map problem bus/pci: fix secondary process save 'FD' problem drivers/bus/pci/linux/pci_uio.c | 5 +++- drivers/bus/pci/pci_common_uio.c | 48 +++++++++++++++++++------------- 2 files changed, 33 insertions(+), 20 deletions(-) -- 2.39.1