Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp363784rdh; Wed, 7 Feb 2024 07:04:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGbo3cw6rpn9yS2PWZzgAVtHvcASkbmN6oPffUTqM+gflcv4Re5+1pYpXjqFeuqwYqFX+X X-Received: by 2002:a17:906:c2d2:b0:a38:2bee:7a7b with SMTP id ch18-20020a170906c2d200b00a382bee7a7bmr3402676ejb.1.1707318240682; Wed, 07 Feb 2024 07:04:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707318240; cv=pass; d=google.com; s=arc-20160816; b=b5AAWaTBlAWHLUhL+9IkmJDSeFzGeIHkUEuFlnxlDFEtJ8ful56LQVohmiyu+9/ozt wu+hXOyh8GeZSsj5OkA/dsrumP0Iu7EDPq0BuKtDK9WMbJ/eDPTZqfP6hTzjuXnol0UD ACFmQLXtyS0uJYKXbAKj7SKfRH5bnQk3Vav08r+DYlWkHOg40faAKGpLoeYe5j+hRrfE xYFkcxn59i38Hr9Weqj2Pa1sdL11s3+b/e8nFm5N1nC0mAo3SmvqzmUuSrxO2VWWjqmA 2FSxCNvRFGgGNMuGjq622LDkxESMdR7jt5dKAWpJMzAUHu6TcUhWvwUfBl6EBSCR9oZ6 bo5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=+g5xcLognFcFC9SNwTqqmbGkQYGG3DC3cY1g8NSUKH0=; fh=pZZPp9JzsU1hLSG0m9ekKKzBv998nAMo/kG8h4Mwpyo=; b=RzcR5evkf1C4SMruaxUWfDaAXVXQfuVazWsLStkucluyKZl4XoxmScTm/ymlT3oKTs VbPefKfAgnr5MLoR/25ose8ZM4v9a9a8xF2C5ARJqeinySitBcY8OGhWOVfCPKi2AZkO 9MqjDThhw7xHndunAT+az4h8kzpmDOntKd3IZPkOp8uWtRV2PdWMzhlRqPZFZG7JnB1i X5NJoNByqdqNhbelkaTokgT/qIK75GCzDefFjRsZecIPqh4gzaMyW7XumyFr/7xyEOKk JbCnXeo6ZzDs0Jydt14vhNQ6gzV5a3OkoI9vNtywB9JPp+PNfBShK0zgV+2z5S+tkTs4 YTYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="F4I3/AT4"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-56686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56686-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; AJvYcCXIuNgmyJ1Jg57XsQdbVmaxKOBmWLd1iaV7IoXrm47OzfO0yGHVqqoZ1WvMndJcoWrZ6ZN77ohaGilH5sFqM2ztYSUl/+UnJTWODY7ONw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id xo19-20020a170907bb9300b00a35f232e5cfsi1047034ejc.758.2024.02.07.07.04.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 07:04:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="F4I3/AT4"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-56686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56686-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6B59C1F224FD for ; Wed, 7 Feb 2024 15:04:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E63317BDD; Wed, 7 Feb 2024 15:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F4I3/AT4" 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 78E425A118; Wed, 7 Feb 2024 15:03:45 +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=1707318225; cv=none; b=WzKhQsOsuEtQ1Q6Mx4WuhDfjKxXu300C+OiKpV6suRju/bR25N1ZfiagC8RRy9inogCh1Eo4PegzDdCiH7IjcT5kU4pKlCBD8TVO5ntccZ9febQvjAweWAXfSwtvMdda5oqxUmtgp674ySsz2HIOybU6v1JOl5lX8QOq72bhTRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707318225; c=relaxed/simple; bh=HgWvn5bAM4Im/qqGraSiL8Ix3OSmzKgABaZhyzWAiKg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CBt8NjLKudW/H1QkrN99cBxZhyf+m2OnXsxkdEPOwfIACb1ulHulAuvL7kjx5P/U6UB4mL38CTk7rP35Gv3NLH7/Lb5uxvOeMTYGIyY9kUpDm6F7dydoy7REHGDbTGICtiNk3S7MAsQg8QWbxDbsygxEGGWKK+oTf6azjpd5qms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F4I3/AT4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C766BC433F1; Wed, 7 Feb 2024 15:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707318224; bh=HgWvn5bAM4Im/qqGraSiL8Ix3OSmzKgABaZhyzWAiKg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F4I3/AT4d/5kejR4u5TiWh8m1He0YasYGQJiNftNfXfbHjKkuYGUtVpL6iPzskJOQ r5dX6Vfsb0rEERFPG+F+RNbxMrstoUDJURRCTulxaBfnpYES70bWWf747850ptkUou JtjqARFRlU/52AW0t/4rHZWfQfAMCecINeS6OsNteqpx1d29yjOBBmz6DY9mrn1IEF bTByxUceRMOrpgWd5sRsk8RqV+KOuj4f9GnzyG385X0yq46oWSUPBGDHH95tsvbnLY 6fHEmH7tiZCzxUMhLEKdIyVwP/+CT/afS0ZRH9v2PASWXpqQX5Ten9/8JOP79fA4wx pc0oMmfXOEa3A== Date: Wed, 7 Feb 2024 07:03:42 -0800 From: Jakub Kicinski To: Saeed Mahameed Cc: Arnd Bergmann , Greg Kroah-Hartman , Leon Romanovsky , Jason Gunthorpe , Jiri Pirko , Leonid Bloch , Itay Avraham , Saeed Mahameed , David Ahern , Aron Silverton , Christoph Hellwig , andrew.gospodarek@broadcom.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH V4 0/5] mlx5 ConnectX control misc driver Message-ID: <20240207070342.21ad3e51@kernel.org> In-Reply-To: <20240207072435.14182-1-saeed@kernel.org> References: <20240207072435.14182-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 6 Feb 2024 23:24:30 -0800 Saeed Mahameed wrote: > From: Saeed Mahameed > > Recap from V3 discussion: > ========================= > > LWN has published an article on this series aptly summarizing the debate. > LINK: https://lwn.net/Articles/955001/ > > We continue to think that mlx5ctl is reasonable and aligned with the > greater kernel community values. People have pointed to the HW RAID > miscdevices as a good analog. The MD developers did not get to block HW > RAID configuration on the basis that it undermines their work on the > software RAID stack. Further, while there is a superficial similarity to > the DRM/accel debate, that was grounded in a real concern that DRM values > on open source would be bypassed. That argument does not hold up here as > this does come with open source userspace and the functionality mlx5ctl > enables on lockdown has always been available to ConnectX users through > the non-lockdown PCI sysfs. netdev has been doing just fine despite the > long standing presence of this tooling and we have continued to work with > Jakub on building common APIs when appropriate. mlx5 already implements > a wide range of the netdev common interfaces, many of which were pushed > forward by our staff - the DPLL configuration netlink being a recent > example. I appreciate Jiri's contributions (and you hired Maciej off of Intel at some point) but don't make it sound like nVidia lead DPLL, or pushed for a common interface :| Intel posted SyncE support. I asked them make it a standalone API family: https://lore.kernel.org/netdev/20210830162909.110753ec@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com/ Vadim from Meta joined in and helped a lot based on the OCP time card. Then after some delaying and weird noises y'all started participating. > mlx5 ConnectX control misc driver: > ================================== > > The ConnectX HW family supported by the mlx5 drivers uses an architecture > where a FW component executes "mailbox RPCs" issued by the driver to make > changes to the device. This results in a complex debugging environment > where the FW component has information and low level configuration that > needs to be accessed to userspace for debugging purposes. You don't explain anywhere why addressing the challenges of using debugfs in secure environments isn't the way to go. Also you keep saying debugging purposes but the driver is called "control misc driver", you need to iron out your narrative just a bit more. > Historically a userspace program was used that accessed the PCI register > and config space directly through /sys/bus/pci/.../XXX and could operate > these debugging interfaces in parallel with the running driver. > This approach is incompatible with secure boot and kernel lockdown so this > driver provides a secure and restricted interface to that. [snip] > i) mstreg > The mlxreg utility allows users to obtain information regarding > supported access registers, such as their fields So the access mstreg gives over this interface is read only? That's what your description sounds like, but given your complaints about "inability to add knobs" and "control" in the name of the driver that must be false. > Other usecases with umem: > - dynamic HW and FW trace monitoring > - high frequency diagnostic counters sampling Ah yes, the high frequency counters. Something that is definitely impossible to implement in a generic way. You were literally in the room at netconf when David Ahern described his proposal for this. Anyway, I don't want to waste any more time arguing with you. My opinion is that the kernel community is under no obligation to carry your proprietary gateway interfaces. I may be wrong, but I'm entitled to my opinion. Please do me the basic courtesy of carrying my nack on these patches: Nacked-by: Jakub Kicinski and CC netdev, so I don't have to respond again :|