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 04A6E45D42; Tue, 19 Nov 2024 11:40:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5AD8427A5; Tue, 19 Nov 2024 11:40:04 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 527F640268; Tue, 19 Nov 2024 11:40:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732012802; x=1763548802; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=Br59wDulolANTI0bS4TjeiR2NBihvSNq4PvhpEY2Ks4=; b=fQMZHET76KAAdqUKKd0/Or3MSUv5DugHapLhbpkiNbMcQ93wc7gpFioI 7XHi7yg/ckps3DFHwC5N+Qgg9SE6HPCruoMO+SZG3V0tRybMh6HtWjLrK lJv/u5cBupc+afmzgmfrxr+/j6BjelmsXbbWR6NZB8jYPYH9jZBZNrLsr LcsDtPhxqtRX/Tm0QrSm79IjFBeXFFKFq3nKhiK92yyQxguSsUuMSx+n8 xfH9Vr3VHO5NpvOziB28QdUwHYT2J5m5g3LuY8HPqLFTfMMdXxwGZoMdm kOPP08d84E0l2782kKulalWfsdxaJqv6QRsc/X9DvS+/PMHtnlnXHbaDk g==; X-CSE-ConnectionGUID: TCvmQcstQ0qPmusoCY/BIA== X-CSE-MsgGUID: 41e/bdeXQZmX5krCAT2lDQ== X-IronPort-AV: E=McAfee;i="6700,10204,11260"; a="32249754" X-IronPort-AV: E=Sophos;i="6.12,165,1728975600"; d="scan'208";a="32249754" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2024 02:40:01 -0800 X-CSE-ConnectionGUID: nqujQr5hQ8mOT0g5HANFjg== X-CSE-MsgGUID: mVCvLC6jQX2x3fddsmdK5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,165,1728975600"; d="scan'208";a="89680629" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Nov 2024 02:40:01 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 19 Nov 2024 02:40:00 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 19 Nov 2024 02:40:00 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 19 Nov 2024 02:40:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G/BZRaPf/5dPQkTiTtK3HRTrYHxwYarRy/REriEoqQVQbYP5xG+P1j4V8mNxZkAFQ1f2zlUe6PYtlYADRFezSbIvmdTzVehNiL9QtgVttEHs9uJ3swBzpAvvFLREx9G5wkLnj6hlMijwJOyRY6WIyg5uF+9cK49cwFoRbN3lA4ouVqLeVTBwUXdf8Mu7ouNETiY7WodaNHsyUkB64ULgZNHnKGP62qql8KdZdbmPSuAV2n4Sx/mxta+x1fINlo1dNkATk0fb51eC7tl+zZMWdYnYhD4vdsa6HI9ZeyKeiHLnoDNe/HgNCP7fg9+oJElI7SyFP3ybcjlk4Nc0QTs48A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KvixrUusEUf7CewTTYltWffSsl+EhDsJJlIwW0n4I8w=; b=Y9maMtiWv4kDiTGZuLRR8jJbb7tRfn/+lUzifvo47U0g7y+J7NHkqkxFE31Qd7tPlN+dgnAmusReoa3hhRgY/9+NUiC6n2ZAfHzPiWQG1XOWMDuopOy3DujiF4TUtOyiJl0RwExjqL9Nb1zTh0BjkM45+gMIFb1iahxOcA0HAEDnU23O6u1KEVx2Kfmb13cYZ37Kz+IJf20asVkFxEqdlRvEct/FV9bUr63U8kKrGCaphRJ/TknA5fJ6ulofsdBvpqVUmXUT+OKxegMSN+Ksz/Elssbnwfacyap5T4eAzWMm5rKwpS2vOooLV8i3ONqEa+ryw+NE2C8Czoa/wblXKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO6PR11MB5569.namprd11.prod.outlook.com (2603:10b6:303:139::20) by CH3PR11MB8773.namprd11.prod.outlook.com (2603:10b6:610:1cb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Tue, 19 Nov 2024 10:39:51 +0000 Received: from CO6PR11MB5569.namprd11.prod.outlook.com ([fe80::5e92:7b53:f0be:a18b]) by CO6PR11MB5569.namprd11.prod.outlook.com ([fe80::5e92:7b53:f0be:a18b%3]) with mapi id 15.20.8182.014; Tue, 19 Nov 2024 10:39:51 +0000 Message-ID: <1cc2b9da-2c61-4fe5-84c0-2ca023ef6535@intel.com> Date: Tue, 19 Nov 2024 11:39:43 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] bus/pci: don't open uio device in secondary process To: David Marchand , CC: Chaoyong He , Stephen Hemminger , , Chenbo Xia , Nipun Gupta , Anatoly Burakov , Long Wu , Zerun Fu References: <20240829085724.270041-1-konrad.sztyber@intel.com> <20241011111533.20746-1-konrad.sztyber@intel.com> Content-Language: en-US From: Konrad Sztyber In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB7PR02CA0018.eurprd02.prod.outlook.com (2603:10a6:10:52::31) To PH0PR11MB5578.namprd11.prod.outlook.com (2603:10b6:510:e7::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR11MB5569:EE_|CH3PR11MB8773:EE_ X-MS-Office365-Filtering-Correlation-Id: a57784a2-09c0-4e80-493e-08dd08867ec9 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dU55cTl3Q3pGajBQd1YwaE1CRTI4MmxwUlM0cFdKYmUvQ3BVeitld0Q4R1BU?= =?utf-8?B?KzB4RXQxbnQ0NmUyMmtrZExwcUN5RkhRS2tXQ2grZCs5eEVMbkNNS1VEYVBJ?= =?utf-8?B?Y2c0ZytUY2oraWNMRi9oTXFpTXpCZWxFblhjSnMxWldtUzdLalcvenMxMzIw?= =?utf-8?B?QkFzUGMwU1RSa3Z6bVRQTGNZL1VHRktib3J2Sng3SGpGZUs1eWJRMTZNLzdP?= =?utf-8?B?ckpoeUdnMlgydTE2S0tBdG11cXgxVngrUmtmaE1KeUJLY0s2eHhyT2E4elU4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KajRQdm5CU1B3?= =?utf-8?B?LzAxZzVKOWkvMjNiY3lnaXc1SWRVM0pUNTFJdnk2MlZFT0ZSY1FmRnNzdzdy?= =?utf-8?B?L0o5SjR2TEZWYTlyalVOSFpYWEVuNkpvMFFJU05jdGorbVBUN2c1eDVkSWJp?= =?utf-8?B?OVF6aXFZUkg5MGZZaGg0bXJuNHBLeGhLakRUYi9NYlVUQ3dGemdtYVJFYWJU?= =?utf-8?B?dkdtWlpqZEdvV1l5Y3U3RGJYdTZoUVJCemRNRUlPSlFQWU5oRTQ0OGppUFJn?= =?utf-8?B?S3NFdWhQbWdsWXZ2QmN0bU5aSTVKYjVjWWs1bW1ZM2N2Ti92TCtGUCtyUmRL?= =?utf-8?B?a29sQlZ3VG1HWjZpb3NKaGhZeGpQODI4OVphblhyUHY3WFkySEwycEw5SUVl?= =?utf-8?B?VjVaVlFvSFdqSDRNZnhlTnFtWXBQemllejBMUnl5R1hCYUsrNXZoOHVXUEFx?= =?utf-8?B?MzJiby9xQjFHa3BpTGtzT0NPQzRsZlVwdmU2UHFONkZtRk9EN0U2MzFnMkpM?= =?utf-8?B?b1JQcFJqNENXZzBUUUsxSVBERjUyemNHaWRncjgvNUpvTjBvYlhlZmRDUjlM?= =?utf-8?Q?D4IYYSgXdsSEWOjBn5EhT9JAA2q9uL+KDcKyOLb?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR11MB5569.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NzBwZzJKUGVSeW9KWTdONWk0bjVkRHMwSTdFVUIzL1BhOW12dFdnS1ZjU3ho?= =?utf-8?B?dSsydkFoRVV3MXlsbU54UU54dUlYZ0UyTm83cUIyNFcwWkpoN0hvV1RiVX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cjVLbFcrOVZSdW1O?= =?utf-8?B?UWplaEZKVVh3REFjdyt0enlvcitSU1FsM3pQWi8zaTRjbkVsNHRKaE1SWUUv?= =?utf-8?B?V09ld2ZENlRlWnBiMzlqanZHSVRrYStlYzFiR2YvcHFNdU9wMk9lbmhodUhm?= =?utf-8?B?dDNJdWZEazgzcEJ1bmpadHNqWWpLcnFqS2hGWnFwSXZBbkcrU1ZEZWRTZENJ?= =?utf-8?B?Sm1WSEJ5N1dPZi9zWStKNUVGeThpWFJaSUM5ck14TlZlYjhRdzRJRFpqR2tu?= =?utf-8?B?aWc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: a57784a2-09c0-4e80-493e-08dd08867ec9 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5578.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2024 10:39:51.1215 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FXGE8grEzMNfBq6+faU+F+bKihAJDa2F7/YrkAff59yJbxeey6Y9oxGPbUT2DuJ5h396GtQWhsbC1y4VEhjA2ySxRw6u1uaFHF+FhyPYQ0w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8773 X-OriginatorOrg: intel.com 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 On 10/24/24 11:05, David Marchand wrote: > On Fri, Oct 11, 2024 at 1:17 PM Konrad Sztyber wrote: >> >> The uio_pci_generic driver clears the bus master bit when the device >> file is closed. So, when the secondary process terminates after probing >> a device, that device becomes unusable in the primary process. >> >> To avoid that, the device file is now opened only in the primary process >> and the secondary gets it over UNIX domain socket via SCM_RIGHTS. >> >> Fixes: 847d78fb9530 ("bus/pci: fix FD in secondary process") >> Cc: stable@dpdk.org >> >> Signed-off-by: Konrad Sztyber > > Recheck-request: rebase=main,iol-compile-amd64-testing Is there anything that's required of me to get this patch merged?