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 8A4AB45546; Tue, 2 Jul 2024 04:20:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 47084402D8; Tue, 2 Jul 2024 04:20:08 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2103.outbound.protection.outlook.com [40.107.243.103]) by mails.dpdk.org (Postfix) with ESMTP id B20474027F for ; Tue, 2 Jul 2024 04:20:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oej+Dlp39vWIfxwIMRrW1Uldro1+Xoe2VP8ijDQPVlAvy8mC0Z60XMBymgwqy0ND5K/ShsZ0PNA2Zdpab+SM8NgmHEYJrdQhs8TlPjneYVNmH/DPLo7anYjIYX3gQlQOIc4lXgCoGQQaOxzJw17RP0LQn/2mG7ytp7RwBGU8bwYK2dYDU5UGoOHGxHfdR5Zql8W/T/CPzLH4wejMNlP5D3E4p9sU5vF78PJVsfnDPl2ysHCQqhPowK8ytmZ889kt+1T+EhL1bRp0OMGI0tANrP9MBX60ymsQdeGzykyi5BsbYDA9+I+6s9mEkr63hEMbHWqSFZKF2Cw1Wdh/SuOkYQ== 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=wokSZ8zCxGHXWF7Q30lq7sX9i4qsSXRJti8BUBPF/wI=; b=j+PY+OD1y3Xeqe1tYR4Xj69xbywZ4IcfoFvDU03IcHxyd28npSSLcBB1Mc7JH+6huis5vJvf9zkGUYHG8/d6HorDQywGX8oTpYt7NcrbokJhycHavgTBo72WcG+hqgpiHOB4zf0Pf3no+vMjcf7jCsRYSnJG010OydWF077aPsIFjrSEewkxu87g7HF3jBq+DPUsYAkk3HzC6mkB/ansBx/6Yfp5p1oOL7tj39ls+GCKDPvoi0KhqRLY1f6gytRi9DZ2FuoFP+kIORUG2PxhePaF/tbaYp2lF7L58Xvww2gW0XoSOtcVkDQD6lnnyozDqHdEXxVV3Ad38Cf5QmI2Tw== 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=wokSZ8zCxGHXWF7Q30lq7sX9i4qsSXRJti8BUBPF/wI=; b=sGIqAV4Fgx3kMWK5R8noKZqVUkjoeozC635g/xx1FCj7A5slmbyDvb3A1gt0EvzXuVhxbsHS2aWEhC5ZZaBnHtMRLAWqMZOPUtbNFfN9enK38cngiN5EkGCXVR437Z4PxU6KfpLMfATkhL3lwC9YrMrLefwx0LV7wL26K28uw9c= 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 IA3PR13MB6950.namprd13.prod.outlook.com (2603:10b6:208:532::10) 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 02:20:04 +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 02:20:04 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v5 0/3] fix secondary process PCI UIO resource problem Date: Tue, 2 Jul 2024 10:19:43 +0800 Message-Id: <20240702021946.4194102-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240628073624.4122899-1-chaoyong.he@corigine.com> References: <20240628073624.4122899-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0040.namprd03.prod.outlook.com (2603:10b6:a03:33e::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|IA3PR13MB6950:EE_ X-MS-Office365-Filtering-Correlation-Id: 07790c8d-8430-41d6-ebf5-08dc9a3d7bb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?uszr26wo3o9ukjT+zEeIBf80ZvI72Re09ZD2R3hd4vY7JN4fRp4hoifQrLer?= =?us-ascii?Q?8oOlftxvmtHDGcogxh5A9Fmm2PkuQC9kwjOaRl2pT6NEN3y5sEp3QtQSYzJ2?= =?us-ascii?Q?qL7VViCWkHdjI49xwR8NfhxkgrngFNybzhgHHyou8CwZ1yvmPdV4Okiiq6pf?= =?us-ascii?Q?0K5tVG4ly7M+qZrsCGaD7tOJex7aF5IrLu3yaCa+SgUDy+rJEcgODdYbP2B1?= =?us-ascii?Q?bb3foRhFHqTjTIXHcCCfkN9OPzqQ8zaC7DeCMRKRdxCbD99rqzW9yWxQB+Ah?= =?us-ascii?Q?4jmct+8ZV7c74c/bX00WFNn0BcKqLObrRHkHh8YHUmASd7fpoW4YTwxuBQwT?= =?us-ascii?Q?jUSS1I1jorTKARhmT6WLhuGQ6EGmDUN3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us-ascii?Q?BSv6kJ+6BcWoFQxqzOAPXkEursp+RTtXs8J0+VhkNaKxNWeU04KPpSFFYXOy?= =?us-ascii?Q?O1bFelts7CRJOhl7sKOuf3+et9siDWEVx1FSRd5kmGgtvIibuoU/6OH+YMjX?= =?us-ascii?Q?xxrsV53+QXQyZdQWoKshGYimGEvuuu7ilKOuCmv05fee42ah/Q=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)(376014)(52116014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?u8nR6EklbQWcTibgGaZEfhJLEioIhawrVyiUI6lf7QOgOo+GlRuU+y/Ofml2?= =?us-ascii?Q?pyHBD+jz9jOsXc2Ftb+Tg1hyuuGZWZckR14a28NgHdbDpWwyO1Dkv1x4zt3y?= =?us-ascii?Q?AIfC/vki7KLdrcz/fOsAmm/LpXbRuKATVfimDXZmFrfIAF76tgTRTWKNbSxj?= =?us-ascii?Q?TlDQ5nMnKFIKg4+w3hZn0PsO/c0E6GAi58w0ahVdqxl7Z9ha6eq67SIB7qU/?= =?us-ascii?Q?WmMkm4Evkes0xzZPMx/aCBffcNRAUWspS4C2zv/x4/fFkVkqfxbWnYPaGvx0?= =?us-ascii?Q?7Yxgh2Ww/ellcEVeNOuj+R8rSoYAd+Bxdn2uT5NwFRIgCGevFq8Fn+rvsuWj?= =?us-ascii?Q?r62rMBhZa662ytZ+ld4GUKFsn7amqUIkj5TksKVUpgggnWAIsKJN0ksvQpy9?= =?us-ascii?Q?p6Kj/PvWTL5Bftiu8Uvsbe2Oso+WV6JV1bUBOhNTX3VHNZl0J1tzUpVfiT3h?= =?us-ascii?Q?uzGEKmZ0Dmk7ng1Wr26vRNYezzH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HcwX1RwruwURx6NG/WIaGKzEkHIGLJeFLZD4WFYC8s/zq7FW7GZL4VJN0?= =?us-ascii?Q?O5VG56XdfztihrNzRXKge8ucgsm85SIfx/l+N3wjbvinnhwr2hGF5KRa4YV6?= =?us-ascii?Q?Sd/3zH00qI0vMKMvE/sdIPbmuRWIL6+8EHV0A8TwvsCOfCTWghgduVkHhMSy?= =?us-ascii?Q?pYzLR3YkVE1oeWYM7RjqVcVvXmQ6Kr+29l8GVhiJrttdSu2/ipUL6KVHYuxY?= =?us-ascii?Q?RQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07790c8d-8430-41d6-ebf5-08dc9a3d7bb5 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2024 02:20:04.2368 (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: zAerS8KZdsWrzNRWJm75lbgwIrWNzn71Jq9QNlLif7hYGABi2KiUN0CftNlda3C9MZhwBQ3iecRXpKfbXjk2mzld0uCfxnD4Z05ftczF0xg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA3PR13MB6950 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. --- Zerun Fu (3): bus/pci: rename the variable in UIO secondary map logic 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 | 72 ++++++++++++++++++-------------- 2 files changed, 45 insertions(+), 32 deletions(-) -- 2.39.1