Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2385276lqz; Tue, 2 Apr 2024 16:21:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMhcR+zcPJ01gp/5gW64qdQW+j77eskX5CYDzDcnBOLdSpCUBUdI+cT/pEuO5iu4VZkbLCaBFa7zWZkNu4BdIKjZ9V9ek3dKWW/Ly5pw== X-Google-Smtp-Source: AGHT+IEzKvYB5D9J620XzX4IiMTBqWEAoC6HUeDnlbKXPtgYmL0UFHp9AMiq0wl6aMqI0yyamvGT X-Received: by 2002:a05:6358:7514:b0:17b:f637:7bb with SMTP id k20-20020a056358751400b0017bf63707bbmr14615072rwg.30.1712100077238; Tue, 02 Apr 2024 16:21:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712100077; cv=pass; d=google.com; s=arc-20160816; b=iBJcQAiibaC0hhGCWSyEryoKKMbBU8E+Tt2xB9el0+SznLao8vEQMliAFJ1vB/9gEN 0EtYTnonxz9v0ahrprR944H+dvmFjCRsufFVVnKpv7MotHexKV4E0emZDs5G7CioDAmF GpeNyGE8Ghl7lox6f7ZQTT59SQmPacd9TztBGPBN7sCw5aWbXGasGS5dOsoNUfYM3OLI nHE5tRa45nH3TwTYLWaW5EzQmcSGthkCmcIxJDP7gUpjZdKuzr8NWinz0MhU2tmDw7jW r+b1pWkhq507yFPa5hDP6bucfIKJ7nx4ZeJSOHHql9awZGwHPBSn7yBnQiURlSlqbFyR 4ckA== 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=+gLbuVJx3giXKpYinT0mmwLJRdCf4EIuHPdaHirWqhI=; fh=IUK3yo02JYezLtN8FSRauBZ3zjpt5wyFqAWcQlg5JIU=; b=a7mgzMIeAJlSAua6YHMkLDPRAKdM3KNeDCKBXMUFugdwz25s0HyItZnde0Goj6Ww4j /MpEix0LvMiyH6lZN9yO2E+pqNqIjCQrkFf6a8bbm4BE5eHrvBZy9w6HOTdalZpvdkWm OWaonKn1QWnEv5Gn+g8ZHpGhgTRLGMgizOs6eQ+D563ZWoriZ4wYiyOGBZZoVx8qeHkS 1zK8Oju7SmKXvf0sTtskXZG/LMOK3w2F/OYCK2TYY76Vws6WwlG4AGVtehO/273KU42m IUGlLOPXazLCc+OAhALvdkyIPLBU5HxLMXH56VAMSquhTCxN/H/muu1gCmo9lCSnuwj4 ziPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mSr+xnQt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r24-20020a63e518000000b005dc080c3e7csi12160775pgh.86.2024.04.02.16.21.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 16:21:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128825-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=mSr+xnQt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128825-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 E15C52839E7 for ; Tue, 2 Apr 2024 23:21:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE49045008; Tue, 2 Apr 2024 23:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mSr+xnQt" 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 0A727224FA; Tue, 2 Apr 2024 23:21:07 +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=1712100068; cv=none; b=HOESzb0VQ+p74EZJIgxuVlZt1hRGGHwU8UI2IaG5i7hOHqnrJG9bSHrYQt71GObe2g50USbdAD7XwUFOhD0zVo01ejfXirbNgiG2j7HDrrdx3TWnAAYIzEnWcTWBy5JoAi02Q7zEjW1gpPksfSLW3WL9uYkU+mm6Ll/Pri+wTaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712100068; c=relaxed/simple; bh=cX+vqzisIaO+Ki2taFXWqjs59rFDcLk4j/9kjaZxcoo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DgMXQzD16Pb5lFump+19v7VH13cjC7+IjzFzCYmfjwEbgFJDNpcH+m31etulYItefXq3WlOOay5QVts+MrLB3dVFziRIW+NBnhmF5yUOhjAI9eScP29NjD2++vM51zniGtivpQg5HPx72iFgbcxGJprJZokYCzvQrFV8JUKdEDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mSr+xnQt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D811C433C7; Tue, 2 Apr 2024 23:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712100067; bh=cX+vqzisIaO+Ki2taFXWqjs59rFDcLk4j/9kjaZxcoo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mSr+xnQtCqlsnDXqJW+hxekB0mMivwMlYiG2WjLkXZM7jKOcWaxEO81IfBqBShDAD BHi92j4RZeX+ZvmL0lFfK09+Lbo+zkaBvX9zcwmjXw+umzS8iQhZmuKCDXph/DOZV7 IWJm+OQbt/FQn2ulp0qZvMyQwxPmhkPXkfAUsCFKA6tB82Ch0VtjSGhR2IEDIrJijs OsdZEHZISeI/v+r9tS/P0OHGWzBJeD7pp/+Eo01IFWEGCWsmrD6eUqV2WT6DIAs3Yx EzsB/KqpfrKXcl4o8HgY8FfNlLbmVYEuVWm12FJ8/felKWiMKAyWRi3fliIO8+z2qe edHU3fl4BlQzQ== Date: Tue, 2 Apr 2024 16:21:06 -0700 From: Jakub Kicinski To: Jason Gunthorpe Cc: Leon Romanovsky , David Ahern , Greg Kroah-Hartman , Christoph Hellwig , Saeed Mahameed , Arnd Bergmann , Jiri Pirko , Leonid Bloch , Itay Avraham , Saeed Mahameed , Aron Silverton , linux-kernel@vger.kernel.org, "netdev@vger.kernel.org" , Andy Gospodarek , Junxian Huang Subject: Re: [PATCH V4 0/5] mlx5 ConnectX control misc driver Message-ID: <20240402162106.11112e99@kernel.org> In-Reply-To: <20240402224632.GT946323@nvidia.com> References: <510c1b6b-1738-4baa-bdba-54d478633598@kernel.org> <20240322135826.1c4655e2@kernel.org> <20240322154027.5555780a@kernel.org> <1cd2a70c-17b8-4421-b70b-3c0199a84a6a@kernel.org> <20240401123003.GC73174@unreal> <20240401075003.70f5cb4b@kernel.org> <20240402184554.GQ946323@nvidia.com> <20240402143607.0357d71a@kernel.org> <20240402224632.GT946323@nvidia.com> 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, 2 Apr 2024 19:46:32 -0300 Jason Gunthorpe wrote: > On Tue, Apr 02, 2024 at 02:36:07PM -0700, Jakub Kicinski wrote: > > > FWIW, I've been trying to push RDMA away from driver created sysfs for > > > a while now. Aside from the API complexity, implementations have > > > messed up using the sysfs APIs and resulted in some significant > > > problems :( > > > > Sure, agreed, but off-topic. > > It is not - I don't want a huge amount of sysfs in drivers to replace > what fwctl will do for pretty solid technical reasons. > > I do object, as snarky as I was, to you saying RDMA should take on a > whole bunch of read/write sysfs in drivers that netdev would not > accept as a "reasonable" direction. Repeating myself a bit - I'm not saying you should take the sysfs patches. Just that RDMA configuration belongs in the RDMA subsystem. I don't want to suggest another solution, because frankly given our "no direct FW interface exposure" I don't have much experience maintaining such APIs upstream. It'd be vain of me to make suggestions. Also I don't want to sound like I'm giving you my "blessing" to do whatever, since my personal beliefs(?) remain unchanged. But they carry little weight when netdevs or traffic which ends up in netdev are not involved.