From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id E7D314551D;
	Fri, 28 Jun 2024 09:36:48 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id D80A040FDE;
	Fri, 28 Jun 2024 09:36:48 +0200 (CEST)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com
 (mail-dm6nam12on2130.outbound.protection.outlook.com [40.107.243.130])
 by mails.dpdk.org (Postfix) with ESMTP id B32D040EF0
 for <dev@dpdk.org>; Fri, 28 Jun 2024 09:36:47 +0200 (CEST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=jHZOlbihSnfktcPmr6fH/Dmx0Xz9SaQqu7G7/3/ob1mNl0j/nfNUWqOHKrc7myN3JAgghG0Kqyh43pjr1NkOPZjR47VU/VsNOKnoiv9sA1Z7WhmEzQXrfYrLveQjSjMbaLO2eQzWJ+wOqz8BTLCx+eKQ6jfp41qv3dEFCWvkF6Dej0SS1DPJ/X6WKAUgVVXv4rZIwqRJeJ2lIxZSfSioR/tgb4lOM669fyjFf0rn5N9l+3TkCY3Am6cJ6/sD6Dl+lpIcuweXjVMRF3kvInLzndzhFaRzf1azzDA/voE1A5X8vkC7ij8Aru1TXqrV8hOdTSnJRXkSDz4zOaQEercf0Q==
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=BmIfByiuyUQwZ4PoU21D8v0DpCd9rTdDVuxaQSZ28dM=;
 b=lS13z/W8CcDBQZIhpVQ19BwtTDxy6vzzM3rf7SbvllwuibrnUg7qmiR6BJqzMWXqTVfbGkpqYuGjx3funu0djTZLUR7WEL4cS4Zm/bfc2TwdSk4e588+edR4UQ3crBPOdcFvYKf47NiT4HEMukojOPfJK35APf0i9veZrEVx+wctzNXPRazJooBvm+ZwXzvTsNcTRWwJURmuV+8Vj0e6QZpujEqD5MyKx0ThNU4FebqxDc6jWhHxz6eeClvqGiPS/S5vb7nVIK0c9WfNs1jFXnNooU9J+0KiLH8ygCL2V6DS4WldcqezjpjlaDsKaSynCEAN9ltA2jd0hRJM73tEnw==
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=BmIfByiuyUQwZ4PoU21D8v0DpCd9rTdDVuxaQSZ28dM=;
 b=B1F4tyQmM5j/vF5t3oE7nPbxft6tMkrcKacHi3pd/udqFHBdzxjPpthdn+d5iAZLx4f1SaCVqSiuSZju6G2Rm6oW+agGvTSIaLWve+wanSfOhVTWXZgE12zMSKEtjkDf2F6rT4ntWgJX58IglvdPVA6HR0i2qqU6VF1FZaEXvpw=
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 SJ2PR13MB6166.namprd13.prod.outlook.com (2603:10b6:a03:4f9::10)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.26; Fri, 28 Jun
 2024 07:36:44 +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.7698.033; Fri, 28 Jun 2024
 07:36:44 +0000
From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com,
	Chaoyong He <chaoyong.he@corigine.com>
Subject: [PATCH v4 0/3] fix secondary process PCI UIO resource problem
Date: Fri, 28 Jun 2024 15:36:21 +0800
Message-Id: <20240628073624.4122899-1-chaoyong.he@corigine.com>
X-Mailer: git-send-email 2.39.1
In-Reply-To: <20240419032630.1215256-1-chaoyong.he@corigine.com>
References: <20240419032630.1215256-1-chaoyong.he@corigine.com>
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-ClientProxiedBy: SJ0PR03CA0065.namprd03.prod.outlook.com
 (2603:10b6:a03:331::10) To SJ0PR13MB5545.namprd13.prod.outlook.com
 (2603:10b6:a03:424::5)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ2PR13MB6166:EE_
X-MS-Office365-Filtering-Correlation-Id: 36fdd279-2e4c-466d-2cc3-08dc97450f16
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
 ARA:13230040|1800799024|376014|52116014|366016|38350700014; 
X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?OkDERJGEyZGhK5IvTzyLqrnqNze/uMkauDD01ShT16oONVHzJ40tFIOgSWlp?=
 =?us-ascii?Q?I7BPK3A8oEPH8xNc0NyojOIMcYIhm0XsJiOomEg/D5gdWs8Qspntzduh46yz?=
 =?us-ascii?Q?J9jsuQlXM97eT6prJNo+1g9qV4yjaoaFBMObC3s4Ud3GTdVEhodhnPDyBIYL?=
 =?us-ascii?Q?RLF7QYvEHnc/88xgEnXlQl2JnzTtBYDw+MU9BCOKzZpwUD73sWuVTpwnHffy?=
 =?us-ascii?Q?5lQGgS6EuM7HpMWoLztz1cQwIOh+bxuAGn6Mknhl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kVCaF0PPTfo?=
 =?us-ascii?Q?HJQdphIjEZ+mY03Wsl0BV0sw7NSfVMWJhKzPlI23WRN/F1xbupijoWpYDNJf?=
 =?us-ascii?Q?6tEGVtBQRwNm1pJB7lqSO/NkFE0jrxny+0Lf6g1YjUISnfzSf9TrqfshD5ks?=
 =?us-ascii?Q?VsiJHP0MuDfbLdilKTaoJUey0rc9mpX+kfwHBCqHTFG9DUnOTUG8Zr4jQ9MY?=
 =?us-ascii?Q?FLXhqE52vYGK9zuNrtYrsnt/b/MponsKB27qTNsj2IzmogYQ2MuBIpYYtoKt?=
 =?us-ascii?Q?yokx5COrbDgvJK3Kgm6qIBKkjHUu0YhIXl75P7TFPwSVLx7XKA=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)(1800799024)(376014)(52116014)(366016)(38350700014); DIR:OUT;
 SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Q8HAJVmbBYm3mPBD9OLm2cYIbE8y4d37PN51jb1XVriimQrpmkx8oDD1+UPz?=
 =?us-ascii?Q?2+WW8hAWCoB0ZmJFKzKFJsGw2DFSXIoks/B+R+BABbvj+pfogg8iJKXpiO5M?=
 =?us-ascii?Q?S+dnc7vnv0bGJp65o9m+IocNl5PiA6YgUanUkrCR1fzP/OwGo3JUl8nEGxZS?=
 =?us-ascii?Q?vH9gOYZNCw48iA9fb8oprruz0ly6HbCmOmMTXH0IVkINQjZ0LG6wWHvQYSo0?=
 =?us-ascii?Q?kDoHKi+EnQn2XwILeM8ZzXAA89STl5tXR8qD+av0lZYS2PHSRiEo8fjtrPA8?=
 =?us-ascii?Q?75TYslHdLBpzd93GIekk37y5OfxqWZRpKpSMLd7/K45G8JWLb21M3fR3AwqI?=
 =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?I64H9m5RHVG6/6tO5WTMkXMmjEbclQveJHfVEvOlLocBj8uo3JZ8fRFIb/zQ?=
 =?us-ascii?Q?iInFCLycaHYemylNs47670QiSQzVf7rmii1tD4QoOiADyDq1gVzbhGO4/zQ1?=
 =?us-ascii?Q?WYOwMP2j/76do1CPK9pGfC+97d87o35C/CBe2hOK5xIgErMt7x+UMGAH7J0L?=
 =?us-ascii?Q?tUKEerlSn7mHHfkFGXIPOxjKG+TEE6QjbjfIdZlW37nWhYEsoyme799t+lUV?=
 =?us-ascii?Q?X1Ea7RwGQiKkPgyFGqgn1ZcsOxAMUB4H8jXLE+XIfed5J+uNPNCqxDx9YmeT?=
 =?us-ascii?Q?0QfhCXgy5jCBXCquL54pg+mN/qDb1FYkqsJKh1LcbW4V61UkX+UyS+OahW1n?=
 =?us-ascii?Q?ty5JKgdHy38SA57pWcKlZVfIdloWQ99xyowYu2fnsH78z6sRjKtgoYIkALsM?=
 =?us-ascii?Q?mw=3D=3D?=
X-OriginatorOrg: corigine.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 36fdd279-2e4c-466d-2cc3-08dc97450f16
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2024 07:36:44.5136 (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: z8/84UyauHkHPm7xAYfF1ccYLOun89jQT/HitOr11AwEexw87nhk8tz0QP3zEcoy9VSjJMD4kudXdmL1i1RD8gg2CocxxF6oi7LNsX/ASSU=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR13MB6166
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=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.
---

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 | 48 +++++++++++++++++++-------------
 2 files changed, 33 insertions(+), 20 deletions(-)

-- 
2.39.1