Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3333682rdh; Mon, 27 Nov 2023 11:26:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu4G87d5KxmaEfQl/Bx/QBrHFqpvvBseAgEUGnxRaH/ydpae4cusmdgN+bdxHJOnPdFQ1M X-Received: by 2002:a05:6a00:8d87:b0:6cb:64b7:a3bc with SMTP id im7-20020a056a008d8700b006cb64b7a3bcmr13737784pfb.29.1701113183811; Mon, 27 Nov 2023 11:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701113183; cv=none; d=google.com; s=arc-20160816; b=fmiZnz9W4NaIeWxekUW9BLew2Zn/Z/nlVun2+pZO2+0T7GwOSZWB32RP8BXpJo3nav Br1p4Khtq0kjf5+gwKDEtIrA+iNsMqc3lBxEm+oWBFo+cJcOlIFD7jbruk+U+luRXh9Y WxQjsheuiaNAd78QvrtPH23+mxUDYIVlRhTeEWGzJNNPaDAkOd+RffdMwz5g7ELbAR+V Jjpxpq9Cg4M3IL0/hBS19XmMaTdtwci/WiUny08oVtRnMSyu2JmLGVUKvp+CvADsVn1+ lRr0nSHOsdI3uQE3IwV61xknLfnBPmgoT2TdB1y3RtAuouBk8p3Y4qXEddFQovY8Tx1w xMlQ== 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=H74szbusV38jx0A6DCV99ZC7I2vY0HcvjwQ9UFfiyaA=; fh=hFQOWSSOeaAbficyLRBATLbWyL0dZjVoKFWT1hPTIKE=; b=YGuSJQ+qqikuzuYAFWkTcDbGcUwJEAQeRErnwg4GqEXKRYBA/YUWkbmzqgzI4K4giU 93cTirAVHZ83ZoZfqEZwiNwtZKqkt1FcYRDq0gbPuKwJX3p4m2WwPrkHYGtAeThoWNQq 7jSkaVqn25Jy9FUbRgOTAd4F8NHA2qrCX307Qz+mcgYfaWa8oKx/axw+Tiwp4YsKbV4o m2nyBMbVlUYynkANqMDSYGv5q+4sEsuPtbUHRRYTvDJ8mE16JOsTIUaXgGFf2FlBQ0h7 TVwIzyw6w9n9FiWV4ayDZUmBfqVNG7L0Jf4QJ8jY2jjl6fgsPDEuQKoZ8mRPF3ZSvhzv xURA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=As1AsuEk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u27-20020a63141b000000b005897813624fsi9846223pgl.476.2023.11.27.11.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 11:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=As1AsuEk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id B575C824696F; Mon, 27 Nov 2023 11:26:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232644AbjK0T0E (ORCPT + 99 others); Mon, 27 Nov 2023 14:26:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjK0T0C (ORCPT ); Mon, 27 Nov 2023 14:26:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2033FD60 for ; Mon, 27 Nov 2023 11:26:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84B55C433C7; Mon, 27 Nov 2023 19:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701113168; bh=gZKfaF2aYd71Rx0IiDPFKiGIoAGGkjTyziP8BWTgjZE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=As1AsuEkjH5B2Ue0e+KowLmulndf3k2RJyFnwaP3aeTuICzi+ufdiVjJTOCz5k1Ky 7oVQpKNFb+9HvolH1p/7kyZGJjm8N/t3T1S1owpX6mOgwEVNtwhTGn7pz28c1MTfsU Eo90D/nDfK5kwEnGCJfrvJekHl3WqThpmKhQTu95rCwvm5bQJ4FkW4GdByN42lnAiM pYXmBbywEtffsnfYDNHNMFZ+HBZ8R30Vj/5EkG3Dah6ZBo0L6MLJZJDQNStSgGwsxx llrVsG0EY2hgZX5oN8u8k19paWLCYZhqZ066yszBKkNwzmj0r4QhWrUpYKIe2/Ji2P a2yDKQDo8myiw== Date: Mon, 27 Nov 2023 11:26:06 -0800 From: Saeed Mahameed To: Greg Kroah-Hartman Cc: Jason Gunthorpe , Arnd Bergmann , Leon Romanovsky , Jiri Pirko , Leonid Bloch , Itay Avraham , Jakub Kicinski , linux-kernel@vger.kernel.org, Saeed Mahameed Subject: Re: [PATCH V3 2/5] misc: mlx5ctl: Add mlx5ctl misc driver Message-ID: 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; format=flowed Content-Disposition: inline In-Reply-To: <2023112707-feline-unselect-692f@gregkh> 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 11:26:19 -0800 (PST) On 27 Nov 18:27, Greg Kroah-Hartman wrote: >On Mon, Nov 27, 2023 at 12:17:32PM -0400, Jason Gunthorpe wrote: >> On Mon, Nov 27, 2023 at 03:51:10PM +0000, Greg Kroah-Hartman wrote: >> >> > Ok, best of luck with this mess, I'll stop harping on it now and just >> > point out all of the other issues here. First off, you all need to get >> > the network maintainers to agree that this driver is ok to do this way, >> > and I don't think that has happened yet, so I'll wait on reviewing the >> > series until that is resolved. >> >> As I said already, I strongly disagree with the idea that the netdev >> maintainers get a global veto on what happens with mlx5 devices just >> because they sometimes have an ethernet port on the back of the card. > >I understand you might disagree, however I hold their opinion in high >regard and want to ensure that they agree that exposing device-specific >debugging information for a device that deals with networking is ok to >do so in a device-specific misc device node and not through some other >way that other networking devices normally do (i.e. netlink or >some-other-such-thing.) > >Note, device-specific character devices have almost always proven to be >a bad idea in the long run, I understand your immediate need to do >something like this, but remember that keeping it alive for the next 20+ >years is going to be tough. > 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. To be clear this debug driver (or at least an older version of it) has been already in use for over than 15 years, since the beginning of mlx5, we used to only provide it as external package called mft debug tools [1] which has the kernel parts as well. Now it's time to upstream it. mlx5ctl will keep serving existing and future HW for the next few decades, I am pretty sure of that. as the cover-letter explains mlx5 architecture is set in stone and written in ink, the same mlx5 drivers work on any ConnectX chip since 2012, and the will keep working on the next generations of chips, mlx5ctl will be no different. [1] https://network.nvidia.com/products/adapter-software/firmware-tools/ >> This module is primarily (but not exclusively) for rdma related >> functionality, not netdev, and the RDMA maintainers Ack it. > For Infiniband/virtio/vfio/vdpa/nvme/fpga ConnectX devices mlx5 netdev doesn't even exist, so it is not reasonable to ask that the debug interface should go via the netdev stack, mlx5ctl is needed to serve all users of mlx5 devices, not only netdev (networking). So I really find this odd, that one stack maintainer gets a veto over all others. >In my mind, RDMA implies networking, as it's over a network connection, >but hey, I might be wrong :) > >thanks, > >greg k-h