Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1352805rdb; Fri, 9 Feb 2024 21:01:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0TMB+lfld4fyVqG7DqYW+JJXMz8l1Tq1PWOkh4cfjWZum5TD9uZho2MOYU/ICoi4yHurz X-Received: by 2002:a17:902:a585:b0:1d9:cded:4ef1 with SMTP id az5-20020a170902a58500b001d9cded4ef1mr1462824plb.13.1707541305517; Fri, 09 Feb 2024 21:01:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707541305; cv=pass; d=google.com; s=arc-20160816; b=dVrVnflFbagklEpj5swDTeTbl+P9tJ1ZBM5JusjEtivlgKRQ/hYjU+swQrEsHKMAsH pntLFewHZt40dJOTyXWC0+ai352vKktj18EBlzkMaCePXlBOS2BPQyERp656fw5tmd0U +pct2uX1LYRm1DfzjQJ83QUO3rNqATCQdB1ylKH4nHAxKJYBrvLx1EiW6u5kvzVfAAPS 3kiDNFQzKQ6u3BUH/5hK2IcXtUKXmX+goye9cV+f1gBwNKmydWUF7n4mlilTHygbEUDs bp3QyDqN7ST3PzbxP25NVVT4vrWspLQRXZ3e6XWoqgZRXhUlPVgOKMbKfl3Rv2Eg2IpP VQzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BsPnavU9vnFaV6ZB0j1g6DpE+OUCnOk5C3zi3gE8V7s=; fh=4tT82S+23o25CF0HsLvhbR+rzf9M+2+DEV5jhikkt/U=; b=rvadj290LXhs/IYrrMM/imetkVNfTbpfSR+Vo/mnQM38W4/VdmZLtefYTRDQERlM/P 7fMp0aRQccGnzmwo4Xkg48O1206sNnV+Sd3G3WQZ55CZfKajyEvNFpzLAjcKZdFelGQT UaUgP07qtDJV4PJx4oObRnFO+2pBJQ9l3j0cCT0kOPk5em0hRdnbLlyhUwvTNKebwJeH dFFbKJpFoMNEUTWfZ1VMbR0oXI6mzaOoN+dS1r689lcd4PHDMk2ETfjScCiUsGJdaaoo ei9pbs0rp158l6XKx9ZEb8PZo/K+zoH5xvILLNSu5sPEw2g+pfNfJJBzpJJChPPravAK wt3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oJWiDHWM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWreNynEiA1EOpPbmfXHnbRdhJAbPXPT7Uip0VSSE1/ghnzxrZMivwQ+2QQ5iR4tNtaxeli+y7eCzPpMtxSj3LqfaOr63pF3BzeE7H/oQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h6-20020a170902eec600b001d9374b44f4si2680015plb.653.2024.02.09.21.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 21:01:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oJWiDHWM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 28F3628BC66 for ; Sat, 10 Feb 2024 05:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDEAF125D2; Sat, 10 Feb 2024 05:01:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oJWiDHWM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0A3AB63B3; Sat, 10 Feb 2024 05:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707541296; cv=none; b=KrgqQpZR4JQ9iP/Me5kGufKb9sDlFUvqLEaVFYfruR2yHLW/eEKUrDD0aF5Y666m+whaxTdD7pmOI4HoI1K3WfQGgV4oJ4K8ymR5glnfMxyvbISmr5PYMMwUO2TLW3YcbIM626b2tsKAXHpAcVuC9R/SZXWRE8Kf892agV4ubpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707541296; c=relaxed/simple; bh=yW4SvVrA+uehcZQFBiIcKyOq0EVCxgF6A4J8ysbpmiA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fmjGr4OKN831LZiDEdFu6wmaQYHwxEX8+MXPuMW/HB3VjXRBkxjk0w4FFEzYiXYvXkrS/4aJkak6krkcL2VvFlJdJw0277lJSoYVOZDX82UIY38u1Wz3STp9ekN+JYRAGyVJM3z1HZkq7ML5c/o4zwGLcFtRD+J9DkXKnrQhdI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oJWiDHWM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE721C433F1; Sat, 10 Feb 2024 05:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707541295; bh=yW4SvVrA+uehcZQFBiIcKyOq0EVCxgF6A4J8ysbpmiA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=oJWiDHWMZ0LfZy1Zfi2dBv4UYV01xbt7wXuSND3b8/ImOt3cxgcVeqomVQTtFn5UB p8pI2WeLidOtXtg2LKs4P7KZoJ24uxYZWt4tt1hA8RMad4j9qxKnlKY+JpW/frjvb1 tZPA9WaN2pu/Lb8TgiKQbXEwU0s1DxqhaF5NzJwScFJ2+IwNICWPXikpwLRAuzRuWs IKwmdCUh7eJjb/6ADqlrUUjkL7pzAimfTQMLIObX4NTgAJwGOm8NunT+1pSvNjitoJ HQswCLOwClV7Bgp21pg8870MRvQcXuyxgVB1NMFdqQJXGg8G7LJTZZ3AExjh8VM40d bmwVOgMefYDQQ== Message-ID: Date: Fri, 9 Feb 2024 22:01:33 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V4 0/5] mlx5 ConnectX control misc driver Content-Language: en-US To: Jakub Kicinski Cc: Saeed Mahameed , Arnd Bergmann , Greg Kroah-Hartman , Leon Romanovsky , Jason Gunthorpe , Jiri Pirko , Leonid Bloch , Itay Avraham , Saeed Mahameed , Aron Silverton , Christoph Hellwig , andrew.gospodarek@broadcom.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20240207072435.14182-1-saeed@kernel.org> <20240207070342.21ad3e51@kernel.org> <20240208181555.22d35b61@kernel.org> <2bdc5510-801a-4601-87a3-56eb941d661a@kernel.org> <20240209145828.30e1d000@kernel.org> From: David Ahern In-Reply-To: <20240209145828.30e1d000@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/9/24 3:58 PM, Jakub Kicinski wrote: > On Fri, 9 Feb 2024 15:42:16 -0700 David Ahern wrote: >> On 2/8/24 7:15 PM, Jakub Kicinski wrote: >>>> I was in the room and I am in support of David's idea, I like it a lot, >>>> but I don't believe we have any concrete proposal, and we don't have any >>>> use case for it in netdev for now, our use case for this is currently RDMA >>>> and HPC specific. >>>> >>>> Also siimilar to devlink we will be the first to jump in and implement >>>> the new API once defined, but this doesn't mean I need to throw away the >>> >>> I'm not asking to throw it away. The question is only whether you get >>> to push it upstream and skirt subsystem rules by posting a "misc" driver >>> without even CCing the maintainers on v1 :| >> >> Can you define what you mean by 'skirt subsystem rules'? That's a new >> one to me. > > I mean that Saeed is well aware that direct FW <> user space interfaces > are not allowed in netdev, so he posted this "misc" driver without > CCing us, knowing we'd nack it. The argument you are making here is that if a device has an ethernet port, all patches must flow through netdev. Or am I misunderstanding? There are a lot of devices that toggle between IB and ethernet with only one (ignore roce here) active at a moment. MLX5 (like many) is split between drivers/net and drivers/infinband. If the debugging capabilities went through drivers/infiniband would you have the same stance? Maybe my bigger question is should drivers that can do different physical layers, or can operate without a netdev, should they be split into different drivers? drivers/misc for the PCI interface, drivers/net for ethernet interfaces and its APIs and drivers/infiniband for IB and its APIs? Generic capabilities like this debugging interface belong to the PCI device since it is generic to the device hence drivers/misc. > > Maybe the baseline question is whether major subsystems are allowed to > set their own rules. I think they should as historically we have a very > broad range of, eh, openness in different fields. Networking is pretty > open because of the necessary interoperability. Interoperability applies solely to networking protocols, not how a device is designed and certainly not to how it can be debugged. There is a clear difference between standard networking protocols (packets on a wire and its headers) and device designs. > >> BTW, there is already a broadcom driver under drivers/misc that seems to >> have a lot of overlap capability wise to this driver. Perhaps a Broadcom >> person could chime in. > > I'm not aware. Or do you mean bcm-vk? That's a video encoder. If that specific piece of S/W is a video encoder, why isn't it under drivers/video? Scanning the code it seems to me to fall under the open channel between userspace and F/W which is a common paradigm. But I do not want this to distract from this patch set; really I was just browsing existing drivers for any overlap.