Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3491255rdh; Mon, 27 Nov 2023 16:07:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFA3rqK2W0hprKjitgzoYfeK3ipPUeLG+puJ/hhc+0pupcZmvMhEmgqP9Ra6USiB9OVzEZU X-Received: by 2002:a05:6870:e99d:b0:1f4:ae36:d8db with SMTP id r29-20020a056870e99d00b001f4ae36d8dbmr13306189oao.23.1701130060888; Mon, 27 Nov 2023 16:07:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701130060; cv=none; d=google.com; s=arc-20160816; b=EKbIzpii0dtXHVtBTkNUMCfOXU057MOK0jDd12+/q+mbot+in6dlUcGhFDXgLo2/7b F8Op8qtoDe1esR43JpA4iOyH1FwgihRxshLjujMHOqIbpFtK8iVPJuSUuKF9Ln46WoR0 iUHR01JWcr/0BI883XkhaHZ/2WEZu6A/hQBi5jqrhGcRiHSNjGbcg3cuzc9BSN9nhQjk Mw8HqLwboG9fayVL2l4Oz8rP7TKjHmq+qnXs6RjUVqG4GN00+2TF/vkWsIKpFO5N1M9/ solTHwtOxo4+QQrNQRhzodmdYQYsXbV/wdKGK922MTGo++VpQkvqi8AmPEaEVQO+QBVz KKrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=e5hhzyFoN0OZVZoWp9rypU47yapbwwoEHbmjoLKrvgY=; fh=hGrl0N17LSNoSBGW/vRw3IhqwQPwYhz0ve/ailMxIBY=; b=OYMTosOFFX7rsAbR5rVelD4PS5OBsc5z206ThhtoEjs5t23Sk7dWLcbo39i+/IUWCd euEKBCS1WlvDNl2Oc2vN2ehQu0mQQ3341qhSsGOPksT0afYVHY0Pd2TxgHJbIacPPh0P 0NVPDkb6JyCQizVUQNzRDi2pNX3igPResbSwefWmVo5+5Te7ENKUKaB8EadKvAaFtvub BYPNIROLtrEJKtcmRQOcpjtFfqKkavH3Yw/w/3AGUMyztIdl36n6QwFHB4U0x60gRnRn SGE9JQUgbnxxNVgiOhvO+/kEknmqa/Aw4bW4ntDCXv5Ple+0cDNUlIGqI9CruNcFMU3y yLYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TIx0v/y0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id la13-20020a056871410d00b001fa319d0086si2104565oab.187.2023.11.27.16.07.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 16:07:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TIx0v/y0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 530AF806AFC0; Mon, 27 Nov 2023 16:07:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233895AbjK1AHP (ORCPT + 99 others); Mon, 27 Nov 2023 19:07:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjK1AHO (ORCPT ); Mon, 27 Nov 2023 19:07:14 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 243C1101 for ; Mon, 27 Nov 2023 16:07:21 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55F4BC433C8; Tue, 28 Nov 2023 00:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701130040; bh=yjF7KLT1rCV9GqA6p3repObpFG5GNsH7iCXAw5Ejt+w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TIx0v/y0C5+w2KWs22IsZSWGFIu8KquE9PewQZQ7aJoduXSqUjRHXKj/vdJQ+Drd7 +vIBy62enzQiDwtit6SVh+sCk4t0IQ4ZFsDHeHWbygLj28T11DkUjdkGHuSpyhRxvN RppPZLEq8dxiX0PeoR1t6EJZ6Gzc1BDyFzrzdiOzIKMjlpL0Zwc+2YQ7yPvSSg2gbh GHou9O/h9Wq6n+8RVvFquyjr1mwbPmehF4f4GjXCXStB59RRwsTi5QBVlfnjMNBwW1 i40GhvZV4brc+u6E0m+53zolTLSUUENq3e7bgiwI0QfaYGkj2V59EpWQPzAriBqLNW 0L2iW8sLw1lcA== Date: Mon, 27 Nov 2023 16:07:19 -0800 From: Jakub Kicinski To: Saeed Mahameed Cc: Greg Kroah-Hartman , Jason Gunthorpe , 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: <20231127160719.4a8b2ad1@kernel.org> In-Reply-To: References: <20231121070619.9836-1-saeed@kernel.org> <20231121070619.9836-3-saeed@kernel.org> <2023112702-postal-rumbling-003f@gregkh> <20231127144017.GK436702@nvidia.com> <2023112752-pastel-unholy-c63d@gregkh> <20231127161732.GL436702@nvidia.com> <2023112707-feline-unselect-692f@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 16:07:31 -0800 (PST) On Mon, 27 Nov 2023 11:26:06 -0800 Saeed Mahameed wrote: > This driver is different as it doesn't replace existing mlx5 drivers, > mlx5 functionality drivers are still there to expose the device features > through the standard stacks, this is just a companion driver to access > debug information, by driver and FW design mlx5ctl is not meant to > manage or pilot the device like other device specific char drivers. You keep saying "debug information" which is really underselling this driver. Are you not going to support mstreg? The common development flow as far as netdev is concerned is: - some customer is interested in a new feature of a chip - vendor hacks the support out of tree, using oot module and/or user space tooling - customer does a PoC with that hacked up, non-upstream solution - if it works, vendor has to find out a proper upstream API, hopefully agreed on with other vendors - if it doesn't match customer needs the whole thing lands in the bin If the vendor specific PoC can be achieved with fully upstream software we lose leverage to force vendors to agree on common APIs. This should all be self-evident for people familiar with netdev, but I thought I'd spell it out. I understand that the device has other uses, but every modern NIC has other uses. I don't see how netdev can agree to this driver as long as there is potential for configuring random networking things thru it. All major netdev vendors have a set of out of tree tools / "expose everything misc drivers", "for debug". They will soon follow your example if we let this in.