Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2131212rdb; Thu, 7 Dec 2023 21:29:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsFi2PJkFNvlIHBd4ARSiEzYd9BTRkZxABgYTOXyMKNcVgCOhT9KX9fXB0h4y/2jbW5OAS X-Received: by 2002:a05:6870:4c1c:b0:1fa:d81e:2884 with SMTP id pk28-20020a0568704c1c00b001fad81e2884mr3544559oab.22.1702013383848; Thu, 07 Dec 2023 21:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702013383; cv=none; d=google.com; s=arc-20160816; b=e6LYXW8c/dsbjIy47bNXoxl1m/Ni1UbMxy4F1sk7z368WRL5RP/677qdi3P5tlLRXR nCft99bM0Av6Oiv3DWq+3e8ONrhj4msDRbeOTSD4s27tN7OfVB+RtsjntC5Ks0QTN6iB dvFXbeHgv5DFaDd6HNzcdBvDAhvW1IPJA4pbj8ILKQJZLzvT0xwxEf9Tgpui1WzHtUym I+OuN5d/6fRGXKTLk9ghQsJddKRkCd4ByRZCMK7djeMnlHqtzneMu+Z0p8gmBZCgyRIJ 6QCzWcVZUbmtelUeJflM6NL4TheHDDgxns593zK7+95Cw3oLdTYcxu9iGsUF+ZQACRfj QMlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PJK2t1nRHBqwi+opDPw3tmbdAfUu0I78VNC+dWEibwM=; fh=hJgHS5zeJztRo9EJSdJNYfggBxFWKqaCQnXmZErFWJw=; b=Ixa0LH0INCxSQBxO2oVNCmyloWUxVb2v6engG8daaI2onB8MGDTgr1tIDdvasOasH6 dE8EaROxLcl6/CNVjVu3L7sb7Ifpghl4sijFOd937TybxZX0sy35Le4dfXAquEfHcCmi 5XLZXlgHo/7UZZdiEGOY7P8O1RY0wzx/RReQl/jIhVTBgKvya2OH3X+knSlgFsgpWhPy lFlkd3Na+gqo5zzsDeV0vM9sDdSCE+kt2cRf5BskljdVcBKhxFvrJsyO01dcttx50SF2 C//8lj2obrjn0ZDLFUKw7GpNNYI/MJllZ87XDeHo0AqG2xvgLXLWJW9IA8qNHyANHc66 Gv6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uQ4nidSr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e20-20020a656794000000b005c66a9e26f4si908283pgr.289.2023.12.07.21.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 21:29:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uQ4nidSr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 161D2823D9DF; Thu, 7 Dec 2023 21:29:41 -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 S232856AbjLHF32 (ORCPT + 99 others); Fri, 8 Dec 2023 00:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjLHF31 (ORCPT ); Fri, 8 Dec 2023 00:29:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9417E1716 for ; Thu, 7 Dec 2023 21:29:32 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BFB1C433C8; Fri, 8 Dec 2023 05:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702013372; bh=UsILT93r2k6n3TCqbrECLHZ5VzzDB9sDuQ3fq/CaaLg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uQ4nidSrLr3sx5zj4XZhOy/B9Pg9OjuoSqb2SQ3q4Wo7ScYmCdVeIKa4cXOXZvZ0Z yNis7aVc2K7fVoihnX04GXN7iiFPkpNb5jsgHecW1vrBa/DQfuBaYDTYD/cWB3fVj+ 1OpltY3UkFEtus7g52w0YdYMd3s3SdbxqkVb1nWY= Date: Fri, 8 Dec 2023 06:29:29 +0100 From: Greg Kroah-Hartman To: Saeed Mahameed Cc: Aron Silverton , Jakub Kicinski , Jason Gunthorpe , 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: <2023120832-vegan-trustable-f89a@gregkh> References: <2023112922-lyricist-unclip-8e78@gregkh> <20231204185210.030a72ca@kernel.org> <20231205204855.52fa5cc1@kernel.org> <20231207092329.3ec04dca@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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]); Thu, 07 Dec 2023 21:29:41 -0800 (PST) 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!" Well, there is one practical one, "do not rely on debugfs for any functioning system properties", i.e. "if access to debugfs is not present, or something in debugfs breaks, the kernel should continue to work just fine with no change in operations". But that's an overall system-level rule, not a rule for what you can put into debugfs. Have fun! greg k-h