Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2340260rdb; Fri, 8 Dec 2023 05:34:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IH969UNZVYWIaFCDlwYin2nu5B7d9eFeRQpfvLzSG1IauMQIPArtLfaBTw0iay9eULxY7q+ X-Received: by 2002:a05:6a00:14c4:b0:6ce:696f:d0f5 with SMTP id w4-20020a056a0014c400b006ce696fd0f5mr12512pfu.31.1702042495828; Fri, 08 Dec 2023 05:34:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702042495; cv=pass; d=google.com; s=arc-20160816; b=kX3vBEj6uKeT994lj1Do5VzD71wfWIgnVrDY8oSvKeImbi7ssjw99oaPTtXkeOZQk4 z7jjlhX1JOEtiYrYctNmnlUAw5u7aSrV8gWNyxOtT2sf4mG6NSq+cvY20hWqLHqROFp5 Y75M3/Rfs0k+weYD2zYm8MlEVJWi6z8IXfkWFe8qXkRkqJWFefz/7NhoL/bP+ADyn2y4 kQtAQ+aic6PqsyF7vnb72W30qMea/0Q1KdclcZxCeceEHb0NbNaiOpBTT+667tAUJO17 d4RKTxYYLz9P1SK0D/w7xtxnv4UNFjL0QjA9XDnMbtAMeeCIrMY7cqz+XVqABXVllQqt 8m8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1FaUx4AF90S/ePZ/PCw2vzKAgwKS5kh4sxcjUsqCQ8g=; fh=UP0878E1nhjEmpKaZ6phO0jXqmKhYPYb/drPMkiVsuk=; b=XdFGUjT3J5RinqMob9TdY4OSpCgwBEqtBtydTYTghnHGC89OkkvwmFfVRpQcYa+UX/ QIjL+6nDmsSe2EBfcQBRY4AB5Ms9ZU/cve6/S6cCVtbS6eKxNs84Uxp0RtaVupvbPwOI xAXZAUKOTRoZAaCcMXZroZHxASqfTiGQb57CGU9by6Q47EcV+17Rxd202wYNy4BTXvDU RpBBS9GU2mPZ1CRuktHWeq/v8CTJAHEv+3cskOWjlnyIRRtRL+NFAVjs3RMOLGRuvDjJ YuqZ/56jag7XtcEsa5d3Gwa8LrtwGa6TYGhjPk6RswdRvQ54rRpxylhvc5Mb+/AD4+h3 3vZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=kVBXFL9T; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id gx10-20020a056a001e0a00b006ce82bd93e4si1562217pfb.139.2023.12.08.05.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 05:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=kVBXFL9T; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7225182CC46D; Fri, 8 Dec 2023 05:34:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233588AbjLHNei (ORCPT + 99 others); Fri, 8 Dec 2023 08:34:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233493AbjLHNeh (ORCPT ); Fri, 8 Dec 2023 08:34:37 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2080.outbound.protection.outlook.com [40.107.223.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7407D10E6 for ; Fri, 8 Dec 2023 05:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lKkSO2n3p6FPh09R2pDKFnAOU75IpeKZkiVPs2simSvNq66HbeDWNFUw8Ku2O1ttDmYopgOlsyACOHp7lXiTVjWp8gjqbWjAnPRmWcpmk0/WfTwifzp6sM7/Fz7ehI7ZK72L+OOYSMKa+dHpkr2SNQsnrekgVMBGWVn+B9KcFRI1+HWSDqd4yEST2xuEwRvCaeSbhBMcl4HGCbfDCkvzKCpyaWjqPOaUaf5de76v/ud+A+pnnY/b1fd0IaKhTCH9zi4h4P7vkSA/LATLzKLcfLt35Zl78h+jUvrEnU1wwZxsEEUb1ShCQy+DH3RzM7BCnDNqXt0mMB3n4bPqbhwUcA== 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=1FaUx4AF90S/ePZ/PCw2vzKAgwKS5kh4sxcjUsqCQ8g=; b=Zl5J6uLuQ+ncf6S63Ge9P8zi0qzthb+3sIasReCraADC/rx4gQFk/BIM3KxuGF6ibbmGqi/3hl0JQiAumbs1fDzgAdfs7sJfEiERXshrZlNTpXNWa9KHEkn7LHao29DcuigCgk3bdXzIquqiYNCiRGlsBeavOyx/YOZNpdhnupUN8w+Wc+OTvgiut9xVo8PnUpeuCjPJAvZfU1CbL6KFzSbfAzLEryLt9O+mxlKXTzknxvb6QBHJuq1m6Ozv4z1FDuTWBck3vlQSAxiunutuPC7/1AtGkf90z1TRcBA0IAU0N+78Y/J+YavYpeCQNPVUt3aw1wvuiEsZiMv5QUdWKw== 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=1FaUx4AF90S/ePZ/PCw2vzKAgwKS5kh4sxcjUsqCQ8g=; b=kVBXFL9TIXJQ30Td7IOe0BuOF1ANK+Ms8+m5+lwdtJailOSq++R+etiVbAq6IgwTI5EA7ot0My/PvjIQte7ta+k+zEVb28Bgba9iQnmcfA9JCT8dhX9WcrlrHgrgVMrN/lD9TG0svzfezf5syfr80P4vpgg4f+k5jcCH3X3KQn8zwErfnsAvhonJp5+gml8Ay56VGwguoB9Vc8vaHpj03/4XZ3vN7a9oGTHBJKTDZU34jiZ+WIKrlcACYgH0espz8i/FsPWai0BrQQJg8wWKdL/P4llZRz7Ltq1kSiyCjW2qZuMSf5Zo1hZsDnbcwkH6QrK/XpqjbZHTHyxpLYCr7g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by SA1PR12MB7409.namprd12.prod.outlook.com (2603:10b6:806:29c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.28; Fri, 8 Dec 2023 13:34:39 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::60d4:c1e3:e1aa:8f93]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::60d4:c1e3:e1aa:8f93%4]) with mapi id 15.20.7046.038; Fri, 8 Dec 2023 13:34:39 +0000 Date: Fri, 8 Dec 2023 09:34:38 -0400 From: Jason Gunthorpe To: Greg Kroah-Hartman Cc: Saeed Mahameed , Aron Silverton , Jakub Kicinski , David Ahern , Arnd Bergmann , Leon Romanovsky , Jiri Pirko , Leonid Bloch , Itay Avraham , linux-kernel@vger.kernel.org, Saeed Mahameed Subject: Re: [PATCH V3 2/5] misc: mlx5ctl: Add mlx5ctl misc driver Message-ID: <20231208133438.GP2692119@nvidia.com> References: <2023112922-lyricist-unclip-8e78@gregkh> <20231204185210.030a72ca@kernel.org> <20231205204855.52fa5cc1@kernel.org> <20231207092329.3ec04dca@kernel.org> <2023120832-vegan-trustable-f89a@gregkh> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023120832-vegan-trustable-f89a@gregkh> X-ClientProxiedBy: MN2PR11CA0023.namprd11.prod.outlook.com (2603:10b6:208:23b::28) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|SA1PR12MB7409:EE_ X-MS-Office365-Filtering-Correlation-Id: 295b9fdd-18a4-4e0e-0c40-08dbf7f26d32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZVvugWFzsJiJgJ1EAl+bJP3dg8efmZne12EptDyuVFyXZlQsIyqknrs5VTZG0VmxEOWyxvzqSvW11PHytiZAGRv1irZXty1C5brL8XXD4EMgFoxyOaqugegB2E5nzYDiDtmyYrU5pYjhKsBSqgjpFk9dCM7zBNjMbX7au+UGbzSUfVDaHyXd5Nh+kDiLvwpFG8wj+ka9rSLUz725SnHhhZHFIvXG6i8R5a42Lau0ngWqf7KyzigFEa335th/PokTHDjjE/fdnOHQV5ukAhA2NceujrfPgqMsdDtKboM6znHms6dTP2MWDh+8hBFgq45zzl9i+nwjqmh4GqOH/PPdRzQSWN2ceAsSVfah8H+V6bQVA/wBJ3VNV6Cmv4FunvrFTW485zURjf4dyMxQzRzobIfbMZN++R5gdhER3YrybXhCfNRIG6gxIqVwm869ova0waMGMeFZJlhrJI1Qf3l+t/ki3FDgqSaJeByWWl6uRz2ct7E79RDOUDraAZNZL/5Tn3E0UJSGUn+to2Q3FRN8T2hsWrOutoafs4O5V9hCAcAWk9zGwAyyzWFM++VY/CO8KKSsWJe+fpgNJUkY3zoxr8xqSd6s/KIQAySrgUJ+jmNheLZROdaMiATWujg70/coQKZQcxuXWjo7NNX3IJxfSw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(136003)(396003)(366004)(346002)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(2616005)(6512007)(107886003)(83380400001)(26005)(1076003)(66899024)(41300700001)(86362001)(8676002)(4326008)(36756003)(8936002)(2906002)(33656002)(5660300002)(54906003)(66946007)(316002)(66476007)(6916009)(66556008)(6486002)(6506007)(478600001)(38100700002)(42413004)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?yvhYLSaU2jyblCZjQYQarcCeB7kSnzP4jkQMN7zYWgn9lLQ9YyPZwVKVnaz1?= =?us-ascii?Q?Z6i0F/CpqTzeEVvVx9Dk/Bl6CQk/P/GDvJ9vbEwoWgFSd3ublpLTrR1oEFVz?= =?us-ascii?Q?ojWUIsPlOP70LQHPB5Mwvwoe8t50XQYq2nI10IOnCAlcjqTbywd08wrLX238?= =?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CyPrHCtlPiQBwp2XH?= =?us-ascii?Q?xZF5GHahHWdtfWxipJJR89zD1/OFUyKoZf3vxWpmRe682rS3VJa+Lz6564Yk?= =?us-ascii?Q?IBHUE/hoiECnC9z+5Ce0TwOgnFWz39FGZisQvm5iw3gIq6UsWikiGyX9I+SW?= =?us-ascii?Q?SYcyB4YP+PXhAYNIO4npwZelYO/wgzMqlKLh+fSnPxLrsFC6h/DyCzKYES/h?= =?us-ascii?Q?zJ+7tvNtJp6SuI76/TQBbKmcviXq7TYNb1XJrmY5SI9weJipMxOp2X46vuRa?= =?us-ascii?Q?7lvz101shN86Z4M+n4ZTU/CLSMNrtcGn0KyvXR5KelPGfxqq1io/8LZVNsvF?= =?us-ascii?Q?btZVMqPEhDMr7rlQo3yTy13kB7w4vjwPCMBDNx5aCQYwFMOGUsZPoNDrJ+zN?= =?us-ascii?Q?dba52/ssLcvoLJS8S/nVNx0E+W/LeLpFFMTS7EebhY3hKW+UVUc/z/yYSJIu?= =?us-ascii?Q?sy0zw3sn8gJYtzpc8RPq0fKB5QFJdc1zxlfOUbaW1BEQnhoIIKMY7za/IEes?= =?us-ascii?Q?MASN94cnHxF8OqAM8aHwX0nUt7NeStvD45kKQhEG?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 295b9fdd-18a4-4e0e-0c40-08dbf7f26d32 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2023 13:34:39.1118 (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: 3wAcyKPwQK2tYCkpUICUNPLJWFfyNJueNyejPJOk8JWWmYwKFplQ4aqWD7H80v0v X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7409 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 05:34:53 -0800 (PST) On Fri, Dec 08, 2023 at 06:29:29AM +0100, Greg Kroah-Hartman wrote: > On Thu, Dec 07, 2023 at 11:02:36AM -0800, Saeed Mahameed wrote: > > I would like to add that debugfs is usually used to expose the driver > > software states, as it evolves and changes with the driver code, but as I > > explained in the other email, it's clearly not a good solution to expose > > arbitrary objects of complex devices, that require interactive and > > selective debug interfaces tailored to the user use-case. > > Why not? Remember, the only rule in debugfs is "there are no rules!" We already have debugfs files to issue RPCs. They are not secure and not lockdown compatible. Few users have been interested in this, Aron does a good job explaining the general perspective I've seen in many places. Users want an in-tree solution that is compatible with lockdown. A solution that works for all the mlx5 deployment modes (including Infiniband native without netdev) and covers most of the functionality they previously enjoyed with the /sys/../resource based tooling. This series delivers that. Nobody has offered an alterative vision that achieves the same thing. There have been lots of suggestions how to do small little parts, but not everything together as this does. > Well, there is one practical one, "do not rely on debugfs for any > functioning system properties" Jakub expressed additional "netdev only" rules for debugfs. Read-write interfaces must be constrained to a clear set of commands / settings Which I think is what Saeed is reacting to. Jason