Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp184028lqp; Wed, 22 May 2024 00:57:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRMZCbqeNl+AJ6iznH/yHAc/DrRXLk+SSzqLNDB5gMnmQclIpSdh6dvkH0yY8MakjdB+jZzvnWiEE/nZmuu5nnfMdOmbq7WF+06PUHIQ== X-Google-Smtp-Source: AGHT+IG2E4qj4u9AiG8meKcPcHq88zfN8HDi96HLF6Vu3Gi2oHVI9eOAtFTIpMxVJo1bm3br31mb X-Received: by 2002:a05:6808:3a7:b0:3c9:779f:6c5e with SMTP id 5614622812f47-3cdb3f58813mr1299453b6e.4.1716364657976; Wed, 22 May 2024 00:57:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716364657; cv=pass; d=google.com; s=arc-20160816; b=P1i+62Ron3x2DdUcrA/EJzcPjU3iFm0NBd1/8Vyjy78StU96k7tIxBYKtWhYB0Swg5 WB4vnD4wLeDIXG1qFZJCxzxcLSKAMkYoeIbrWNtNNr2ismONX05Q7ufToFGnzAxGw4F1 9tSU+cBKNKQefPV50BTGmFrB67PZDQn1YaJ3Mur0ortn7ALd+7+oesajQ6CCq8jby4md h473QjLMD7v54fhJRD2nzxPMMipPspZ6DOdNkYG/G7btaVc6xacvUkGvLA4AojLubIjU EcUhHgPMiu6RjOnukJV0gkH4SLp4X0fSkiuNPjwKhO7CebRurufGQ1DugNOiVACCuJzP H89w== 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:subject :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=Q92zTs2hrsCm+boecXXID3PF9h+RjuwanNGz8edsrSQ=; fh=wtF1ICA/zY4jeLuFg81I7GPkYT6Cwt89KKjA8YKeNJ0=; b=GDgxc46/Ge9S/MDVo5j5gtliMPGmRKH6m9Iyc/GhkPnVeWwUff5cZAnJQApQLp39Zz yj/Amtur/e0+OQa/sM39thdCUpgB5BS3vNxzfObFLr65zBGVMncArODvq69Sq9I/WgyH LAiy1XmU7/0TQIWGteykIrRp+dMD+xvUINgbvRAJsT/rRj5DqkWJWVh3dgalrNijN3ZJ CWly0yJQ25T3yVElLm9O8vsZvgRsozyqPuBSj8eiodY+VIFs4z9ziD7TDnstGgzoITRM k+ILgXBwDEbTEp1Mc/mZozvO7+hJz//OD5oFXmtNPaowz/eHpTTm+UBpvq1smmRs1XDP JdoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TAHrfs3Y; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-nfs+bounces-3330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79477e742casi716430785a.358.2024.05.22.00.57.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 00:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TAHrfs3Y; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-nfs+bounces-3330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CA101C20D0C for ; Wed, 22 May 2024 07:57:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 193E47E11E; Wed, 22 May 2024 07:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TAHrfs3Y" X-Original-To: linux-nfs@vger.kernel.org Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 E88E37E0FB for ; Wed, 22 May 2024 07:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716364655; cv=none; b=lB6YgoGZYcDC5XatGkUk+Az+s5VF009GzEiw73Ojsvvkv4hf2Ddaliq/lUX/X4Uz4pvzshIVIMd99IbZcLCrM6pzQTwjt/QTc+RQHlpT1QOgPRyXSB9a1sZGXnVIZKONujUjseWi6be+rBqRw8DIt+DuXOrqYT2/hqMY+5ys6Lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716364655; c=relaxed/simple; bh=VENSe/3fAzfnCYpmQ+vOkNLmF9dyos3VXFyL/qFe9Fk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BCRczJzokOckohWrMuDDGan9LQ2fVNPkHcZ3fxo3r8U80FWnO6DOpriWP74uS3fbwJUK0RSXf5/ru+lZTY5KTBeHuFWU1MsGzpvaGEN+ZZjBv5ttBSc/BgmvrLcInhO4cXhMGIDzCaL3iXdSIdK3/HRxJzbisIz51KoHQqA3fI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=TAHrfs3Y; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: sagi@grimberg.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716364650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q92zTs2hrsCm+boecXXID3PF9h+RjuwanNGz8edsrSQ=; b=TAHrfs3Y8yNuB1TtftU9qd8NmIrlGqNEHAiz55cvRNh2EB+gXX1SJF73QkCHDLcAa/IxJF dKU4jx2Xn21qPdexOcz22Qk+JtgpD2az77negdmh1Zl3poZG7xHiJC1N0xdL5IsUe8jJmM wtPc8NGA2ADTc4XtB+c+iLPhWV6CcDQ= X-Envelope-To: jgg@nvidia.com X-Envelope-To: chuck.lever@oracle.com X-Envelope-To: linux-nfs@vger.kernel.org X-Envelope-To: linux-rdma@vger.kernel.org Message-ID: <573f7e57-7599-4540-9dd7-622f7eedde79@linux.dev> Date: Wed, 22 May 2024 09:57:27 +0200 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: Safe to delete rpcrdma.ko loading start-up code To: Sagi Grimberg , Jason Gunthorpe Cc: Chuck Lever III , Linux NFS Mailing List , "linux-rdma@vger.kernel.org" References: <8cc80bdb-9f17-4f44-b2e6-54b36ac85b63@grimberg.me> <20240521124306.GE20229@nvidia.com> <5b0b8ffe-75ad-4026-a0e8-8d74992ab7b6@grimberg.me> <20240521133727.GF20229@nvidia.com> <46c36727-ef93-44ca-9741-df2325d4420c@grimberg.me> <20240521152325.GG20229@nvidia.com> <20240521163713.GL20229@nvidia.com> <0f9ddfe5-67ff-470b-8901-d513dceb757e@grimberg.me> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zhu Yanjun In-Reply-To: <0f9ddfe5-67ff-470b-8901-d513dceb757e@grimberg.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2024/5/21 22:30, Sagi Grimberg 写道: > > > On 21/05/2024 19:37, Jason Gunthorpe wrote: >> On Tue, May 21, 2024 at 07:10:53PM +0300, Sagi Grimberg wrote: >>> >>> On 21/05/2024 18:23, Jason Gunthorpe wrote: >>>> On Tue, May 21, 2024 at 05:12:23PM +0300, Sagi Grimberg wrote: >>>>>>>>> I also see that srp(t) and iser(t) are loaded too.. IIRC these are >>>>>>>>> loaded by their userspace counterparts as well (or at least they >>>>>>>>> should). >>>>>>>> And AFIAK, these don't have a way to autoload at all. autoload >>>>>>>> requires the kernel to call request_module.. >>>>>>> nvme/nvmet/isert are requested by the kernel. >>>>>> How? What is the interface to trigger request_module? >>>>> On the host, writing to the nvme-fabrics misc device a comma-separated >>>>> connection string >>>>> contains a transport string, which triggers the corresponding >>>>> module to be >>>>> requested. >>>> But how did nvme-fabrics even get loaded to write to it's config fs in >>>> the first place? >>> Something (/etc/modules-load?) loaded it intentionally. >>> That something knows about a concrete intention to use nvme though... >> This mechanism we are talking about is an add-on to /etc/modules-load >> that only executes if rdma HW is present. > > Still does not mean you want to use all the ulps though... > >> >> This is why it is a good place to load nvme-fabrics stuff, if you >> don't have rdma HW then you know you don't need it. > > Do I want to autoload nvme-fabrics if I have a nvme device? do I want > autoload nvme-tcp if I have an ethernet nic? maybe wlan nic is also a > sufficient reason? > > I just don't see why the presence of an rdma device dictates that all > the ulps > autoload. Does rxe/siw count as rdma HW? RXE/SIW can be auto loaded with the command "rdma link ...". And some kernel modules, for example ib_core.ko, udp_tunnel.ko, ip6_udp_tunnel.ko and ib_uverbs.ko, are also auto-loaded when rxe/siw kernel modules are loaded. RXE/SIW are emulation RDMA kernel drivers. They are based on NIC HW. Normally all the NICs can support RXE/SIW RDMA drivers because RXE/SIW do not require additional NIC features. To now almost all the NIC HW can support RXE/SIW, even some virtual NICs can also support RXE/SIW, for example, bonding, TUN and veth. Zhu Yanjun > >> >> Autoloading is the version where you do 'mount -tnfs -o=rdma' and the >> kernel automatically request_module's nfs and then nfs-rdma based only >> on the command line options. >> >> I'm not sure this is even possible with configfs as the directories >> you need to write into don't even exist until the module(s) are >> loaded, right? > > Right. The entry-point of the subsystem needs to be loaded (nvmet is > loaded by nvmetcli), > the individual transports/drivers are auto-selected.