Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp235845lqp; Thu, 4 Apr 2024 11:33:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB1VtIJ284pL+eLzQdIpaw6OIbxjq1nopSnrXsU1tmyWxLvUZaCgWkj1R8A4LZTe2aFlkcS7JV7y1oyVgmV7cU4qVl4djBgSXFPQzLbA== X-Google-Smtp-Source: AGHT+IEgDpWQlnLbzIZE1yAp0dkvd+7hVqz9XtiZvgflNzrAl2Tnim7K3r/vwicx/NcdIEzVu1ng X-Received: by 2002:a05:6830:1355:b0:6e9:eaf2:8985 with SMTP id r21-20020a056830135500b006e9eaf28985mr481873otq.35.1712255608636; Thu, 04 Apr 2024 11:33:28 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c4-20020a0ceb44000000b006993a8b9d5csi723035qvq.344.2024.04.04.11.33.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:33:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Dl6MlKag; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-131960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4CB431C22EAE for ; Thu, 4 Apr 2024 18:33:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2CDE131199; Thu, 4 Apr 2024 18:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Dl6MlKag" Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2137.outbound.protection.outlook.com [40.107.212.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD98A1CA82; Thu, 4 Apr 2024 18:33:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.212.137 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712255598; cv=fail; b=hpyHE5InAAtY44h4KPcDAZiiEu1Fvph16Q+gO+PnFBFrg0VVtuqYCgwI7A2vkiZd2WUOqJDdZ/CsKGkrG7tfP0qPN9CH/W7E5C8w/3gRmET5pXu/vVWN0MoYZD/5jZ8fpHBKoqZ0NN/PIK0wilN5FVpU5R6hMOYJkFHeeGZAImU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712255598; c=relaxed/simple; bh=b47ajAoofn12jK98r2eD4s52F7FUCDRlsmtvKxdUtPk=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=C1UeMdV/AW9meosSGCoBFl/0tutbKW960auWRr0iVDiLqrHGEekUTMrKufMIPIQ000VgiJ7DHDzlctZvc6Iobzwl+zNUgIUU/GifbyNqpGeVzTeeso88LyZNuvDqsppteRVXIpWw/YZDgoLIyu3CSqFBVG8uXakAegpYBt10+Aw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Dl6MlKag; arc=fail smtp.client-ip=40.107.212.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H3sCvsyqpKlSgNhKkFI2IkN6mKgMlgkVx3RRC/kH8c8x5otcsxgedD10tjyBMo2KyDCouDRq3HC+JaoN2oOGS4CMhR2IClkO0c7GU59m4dK5ThfdEa1KvZlBSwJMYnQOSuWNra5CaUl9GrLaBk8npj4l5jFRy/q30gKOu+v4uzvBDNYxQF0yRUNH8CsK7NBdgH6TeeHCVI2h5xdtPXsXk0CTPf1xTCsNui7dyCDxWjgLtKFSuto3uV1DWKJM5nNNLvPMwZ2BvuzBW4ozp69noh18JXsN0jH2vIu25XNMsTKvw9NppezOgn5JRXHdh3Y+zi07UGJZUzZl24UCMUjx8w== 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=gEJCFw0ZLARzppUUYaf9rVhCorwAR2UdkOr2T8kVmX4=; b=nJfsrgfYj5L4+S69MfxCzu2uVE7vGniW+zhR/tu5f4hLV1R+wmMjuuLMNjWUAakPnjA0AtKj94HVeUqeUed2Hpj4UpeBcUZIA4jhNbbd+CduU6atAsO7yWzWFXTemFMyEQiP7b36AMXYkw/YBBfnZ/80S/dgygzhQceko9jTIy3nQyH4MPMN8XHGsI4afZBTpkKtYDeEKKA9Ragb6FDgCmDyomVr5jaTmjLPmJFKmlCc7JtHbtcOQJN9m+bIkTNAAKhlhjoBnQoGEEgNFTqNUa8YSn/Z9xvR1CwcWghg5+1AABXwjgUJKWjL6Uzf46L+XPMlJ0SxIYfaxm81nF4M8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gEJCFw0ZLARzppUUYaf9rVhCorwAR2UdkOr2T8kVmX4=; b=Dl6MlKag7TrStFowUn3xIKU3rXEyjtQBecW6eBXBVRkRrhrfue7+D0NQowFElzmjkg7XBHalgfdl4lITqmF9JlEqYyI71T8iIPxDGxfeTLst6hTrIXCNRzu1Hvcuef1AeXbQ/nZvvNamY6Rp0a/+Ty56+FASMr3ELg/bHfMtopCroBOSHWtqRMU9ZtncAlYGPd6illoNJfqPPVrrYButZz7Gq08GSziq6RM8Sv8AEmVP/+eT0uub8u/utm944jj5fE10q+f7W3m46kV3AcqjKkwel9BwTc6kzXjxymxvxi8N+YqK71lShihiIGRS8paAMqTzbqKDrPYyeo0tckkl7w== Received: from DM6PR12MB3849.namprd12.prod.outlook.com (2603:10b6:5:1c7::26) by MN0PR12MB5906.namprd12.prod.outlook.com (2603:10b6:208:37a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 4 Apr 2024 18:33:10 +0000 Received: from DM6PR12MB3849.namprd12.prod.outlook.com ([fe80::6aec:dbca:a593:a222]) by DM6PR12MB3849.namprd12.prod.outlook.com ([fe80::6aec:dbca:a593:a222%5]) with mapi id 15.20.7409.042; Thu, 4 Apr 2024 18:33:07 +0000 Date: Thu, 4 Apr 2024 15:33:05 -0300 From: Jason Gunthorpe To: Edward Cree Cc: David Ahern , Jakub Kicinski , Greg Kroah-Hartman , Christoph Hellwig , Saeed Mahameed , Arnd Bergmann , Leon Romanovsky , Jiri Pirko , Leonid Bloch , Itay Avraham , Saeed Mahameed , Aron Silverton , linux-kernel@vger.kernel.org, "netdev@vger.kernel.org" , Andy Gospodarek Subject: Re: [PATCH V4 0/5] mlx5 ConnectX control misc driver Message-ID: <20240404183305.GM1723999@nvidia.com> References: <2024032248-ardently-ribcage-a495@gregkh> <510c1b6b-1738-4baa-bdba-54d478633598@kernel.org> <20240322135826.1c4655e2@kernel.org> <20240322154027.5555780a@kernel.org> <1cd2a70c-17b8-4421-b70b-3c0199a84a6a@kernel.org> <0ea32dd4-f408-5870-77eb-f18899f1ad44@gmail.com> <20240402184055.GP946323@nvidia.com> <83025203-fefb-d828-724d-259e5df7c1b2@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83025203-fefb-d828-724d-259e5df7c1b2@gmail.com> X-ClientProxiedBy: SA1P222CA0163.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c3::22) To DM6PR12MB3849.namprd12.prod.outlook.com (2603:10b6:5:1c7::26) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB3849:EE_|MN0PR12MB5906:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z9h8SosH2Hfu1HbqBqs/9iUx8aOnhnjTykzp89J+gY6MTb3iQbGTdFRag0K2Z8twipHlVNIonTOWXDyC4cB8VHGv/hY5ITLHG7+fknxsZG1Plk/C2Lu68qrJhxD2/7mUcRFImaUXMh1Qjb2b8Q1dckh12NADDtsnlyOC5KjJeckM6gw3mpXOqauDNTul4NS5+3w8Hj7Z01tYRUUechzOG0L/whe9nA3pXYtAS4TMPny2tHfGVBAqgqO7B5Fx05JZsBl0pAdIWASRAIxifQ9lDbs7iZa921BmetMyZNJsja0F+0HcIyY10E5sHKxZBnCVpRVgborHN6juWYO2nLKm6Kn7qwOy8lAa8l93x+hseTXqv3WOs4omoFd34jk+0wxaatJ0Q+FsQG8DAEUPL0uwRVchE68sgL2MZ3t6rNXa0yuq7K72Kzyi5L9go7dqcOu2O9/98eMVdsrf7vXUgk7tIcmYNVGI78Q9Gs7uFc20VXa0iyknEd/VivYuPiMTnBMp2DlhDrSi0SMH7/vj9xQAohAY1rthivi/p8tdavTeH3g0iSJL3duztmt5LmDT0YMkrJ9Rv4lLV+s9ZIF11rNwZCvfS7RE4wOLIr9Jlt8tpJo2BLWV3v9HfVd/kIHCit6cszlFGsbHYEJGPGQK+qniqULVG4wjIpmIVeMwyNvBBLk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3849.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(7416005)(1800799015)(376005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WG1LRVYwaTJOZ1hkYnhlZVFQUC9waFhUMGpNTUJiNVpDQkR0Y0R6OE16dFMy?= =?utf-8?B?Wk16a1prTFlmTW9PMnZZMjBVeEhOTjRQbE1OT3AwYUZINGdDMEtBejQyYTd6?= =?utf-8?B?ODZkUkhEQnhRdzM5RGxjd3VwQnZKcU5ZaVpQY2JqME5YbEY4Smx4VFM4TStJ?= =?utf-8?B?THlQTDI0ajlMdDJCRmVhVHVIekhCMFQxUlh3MEQxMjJhNCt5OFZRUnhoK0RM?= =?utf-8?B?OFRIaTcrckk5SlY4cUJxQWVVUkd5OVVvUWpnZFRWV2hzak5pZ2ppc0EvdHRQ?= =?utf-8?B?RkFkRHVOQVpBMXk1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j?= =?utf-8?Q?waAX6BO19edWjoT3JClECxPLx?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97bcbd45-0ca5-4b41-8185-08dc54d5abe0 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3849.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2024 18:33:06.9847 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wjYWqRA3gbk7Adhcfc1Qjur+H/ut1aBA/tC4JHLxX/YgkI2C3bZpIHEPxdl/UVJC X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5906 On Thu, Apr 04, 2024 at 06:35:04PM +0100, Edward Cree wrote: > [ Again, I had better disassociate my employer from the vitriol below, > for which I alone am responsible. ] > > On 02/04/2024 19:40, Jason Gunthorpe wrote: > > Uh no. Alot of this configuration stuff is to serve niche customer > > interests where the customers have no interest in publishing and > > commonizing their method of operating because it would give away their > > own operator secrets. The vendor's created it because their big > > customers demanded it. > > > > eg there are configurables in mlx5 that exist *soley* to accomodate > > certain customer's pre-existing SW. > > So it's a single-user hack, why do you want support for it in upstream? > Oh right, because you want to be able to ship single-user hacks to all > your customers while still getting the _cachet_ of being An Intree > Driver with the implied engineering benefits of open source — despite > the actual feature implementations being obscured in firmware that's > not subject to the review process and thus doesn't actually carry > those benefits. Uh no, mlx5 already has an excellent in-tree driver, thank you very much. The configuration is not changing the driver, it is changing the device. Consider, I can ship unique devices pre-configured for each site's special needs. They still work with the same inbox driver. In fact that happens already for certain large customers. It is why Jakub recently pointed out that Meta doesn't need any provisioning/mlx5ctl/misc driver. They just buy different devices than everyone else. So, it is really some kind of extremism to say that allowing users to configure the device in their own system in a booted Linux OS instead of in the factory looses the "implied engineering benefits of open source". Further it is really rude and inappropriate to say that some customers should not be able to enjoy intree drivers because of your aesthetic opinion of hacks in a device's design. > > There are something like 600-800 configurables in mlx5 > > So because your engineers can't design clean, orthogonal APIs for > toffee, you should be allowed to bypass review? Sorry, but no. Overreach. The job of the kernel maintainer is to review the driver software, not the device design. > > Where is the screaming? Where has keeping blessed support out of > > the kernel got us? > > Well, clearly *someone* wants you to supply them an in-tree driver, > else you wouldn't be trying to upstream this. We already have an intree driver for this access, it is built into sysfs. Tooling exists everything is deployed, people are happy. If you had read the thread to understand the issue, you'd know this is because the distros have turned on module signing, secure boot and kernel lock down. This disables the ability to have an OOT driver, it disables the existing sysfs scheme and it forces everything to be in Linus's tree or it does not exist. It effectively breaks the long existing ecosystem in this space. Arguing that keeping things working as they have been working for the last 10 years is somehow going to wreck opensource or whatever is absurd. Jason