From patchwork Tue Jul 2 07:40:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaoyong He X-Patchwork-Id: 1098 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 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> 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: 2kn6VLM2gVdyzQrLzxwW5N6CkSxp8u0D6RLUSNyeMjWMAQ1jAEUMNh0ZPNnI0Twuif1U/sqvD80OZi43YrfVGSQSn163xQ4ki88W/8M7eG2n6sx7JrZnksyR2GPT6+epKeW6L4snk2oOyoRTu9+nL4Ksi096IPJdUxy+rW9wGiOzlUyy7bPtlLxmHJcWU1948N8eFjrFLV1mnp1M6htSy7gL9jb3E01FB0/5PNst+R3Ft7p2a8lzjwGSk3BzNRhJDRp1Y/uzxRYa89EXn8Dhy4QbztGGkAq+yM8fFSWhDIht0ZRxRuK0bx5snWLZWt7QWE2hf8+m3AmttUNHN3X8vo4rzoeVbv59jJJH8ULJKtcaTsDjx1Udhrlgj6chJqO9bfP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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: Rlytz60x8gOA1DMuaFYZVh9YI3860ZJq7yNmYHDzlE6CLDKU3DmsRORWaOBGXa7PE/DE474RIOgeZGzOAPPDzSTC8i2I1lLCuVGhSn4OiB3/VneEM93gU8VLWJpMjMwbJf11K6UuR/EnIYi4K28lChLvw3Kijv6dS40+zGmCPPzMGq/vcTvTcOY0RJHvRPu8EQA/kRjN/yvGbkPbsQK2cXZ7EMtVmzFCCffjwl+ZRx+r77RAN8B1YmtAwrK5FJHFnEqza8qwzbROKMgxuGmdcRHwQpGTrRTCfHRd0h3I9vcImnPLtaETmzg8GUoy34YjICE/IjgTwoiWIH0iqyyHjJi4Oviz5hxGCB2ntfdDmhnpq8gkVJ2VyJLL1Sc2KYbFIek7cGfCN+dH8PiT2MrGmX3lDKwLGgnPOIxHv2CNxM09ljsDJXV8L4k8A/qVjAj6r3Hv1do6uNTnyTQvBKE9K8dfYbW7Zbgtom1AGHgEFUhFnSnwj/ypg7qmAQZj0Yv+22iymqBQdTMb0rH/0aTjXFVhNH+NY0XSZcfpo3OmoTiKAV1Xcg8K6sn/zu/VytlXkjmnWc0CyafNXyM8m4XDy36dEhzQyu+WUFlw2nR0vxjjbNnoNUIwPfCcaUUQr4kK1XYpn3bp8cvh0uSHlUq9955T8scr66VAbJiHrz7QpSRIn/QStBhTDjjlLyrn9pQmslvZzLGoHlqpdAScVRzrkmD2atn3ViBk61GqldKo+JPKWjm5sydGYo/rYEQVgrafaZJ3QLxQZds1XL+YvX55ZHv4hPlrURy5j3IK8RpFkYjIOmIdIyf+T61n9o/iSIEjCbYw3t2i598L9L0Gvo5UxF2k0auyKC/rgJl/LOREv3uGE5fpl6+bvMNWiHqcc8aN68QbXtYF+4XSRZENkQHg+cI3G3Z1hUmLunuCYdptz4gWnsL6cPAFYIx/E0ZZVjvYb3VSw73zuHTg7q+q6+D/aXcEFxO24K2J8Q7nVsLkO6RHMIQlCiXEp1G6Unl5v1+Pg7+iRzEnU8rB4tr5mylblb/09LseY/blcOh2JwEY9iQJZnI4HTW9uzSNrGQN5MKlVhF5iAQgXoYgEGxl+4SOk74f/Y297oQIP/BGY4DqeH43CKT5vYBvS3N5cSeM2d+/tLHEFJz8wlTXyLta3mlyX1JUF31sE9ocTspJYQ5X11JKHHeyxGNU2todcv6n3dqiiUC+Eu5tJu9I0HCDi4um9nS+X9gEljODcSKoqTQr97rRaBKEt9RhZw6r55kUAWytr+K5e6YG2DGUJsDQCcDI7mbM4IEiFv5Yx+FEzPLXGQpUnQeol5b0ePsI1zskAOia8rb1oJ1AWQlmDmy+YhnA65pNBcD2NlQw1MgnC0QSnMpinJ91qtV/Ftp97GG3wBNtG4/xb/Rk5pD/4LUqL2KkRUPnMmtEjibBhP/Md840in9F7EEGX23chAYqWai2CtDxTJVEqm4iCzwpMZYqgN9DW5u0JoCqQkeJDtC/sQzYoUlvUBfLPRU1mmZqgQ9KQdodhRn/aV5Ukg24ZkaRu3xA5qPIrYiSOoOK6adNBeSzlFy8nSXcHTWYNbAXY+I2ZLTMC6jDiQP1m0Z4PAmkenJ5zA== 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(-)