Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp918652imm; Thu, 31 May 2018 11:43:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKp3iGjBlN+d5T6NVLHqO2iPYSBnOyQ3y1T/FEitBA11GKyqutiLkudRKvtlNEycs43IisS X-Received: by 2002:a63:6d0:: with SMTP id 199-v6mr6294766pgg.338.1527792238240; Thu, 31 May 2018 11:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527792238; cv=none; d=google.com; s=arc-20160816; b=eSOL4SCmeDE7HvDYgvvrzsfutjJe60ln1cCEX1RsFZGLoiBiwCNQy4eGmhWURNK34v ekw8OkASPZTjZBo2zM4YHfg9oHGB3Yv6XLOhHgRNZJi4sywzSo06WgR5CqYRflfVeLXr Q7EVg0/qAcSiWBy0Rmoc9W0JVs5WASN1AjihGxmelTfF8xWUCuaunjnMN5MF+M0f1Jxf UMkvDZHYaYWKtGltt2bcFvwjB9hKUl+5Td5efQs1A1DX7cEO2zQkKYevI175LzDBRx69 eqkWk01Nd+x2cIoR582PDQLCHORYGNf5tUvH/vwrc68BzpvGorD+lO7eW8Eo/PUOLcOM g4Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=88durBGG51LFCB9ucc68CsDIO1GhnjfK18wawOGSg8k=; b=YdyqkVyQ2XQF7NL2c5JXdZwnrWT/w3/19s70BUUeKU6IdoOJu9i5aT2Bx65PXI5jus OrErNk1wDhu227LqTudVgrdtEPajmIh42i43zBdewYEyeJL63kv1QRgbDuHJjTQWHkWN 3nMHzXtIXylAbjnFFYJ7SBJDNdOKPGGyD0Vp2jOC7EVaFIPkx2j37qboezxTgQAGtZ3y 4pAjJCMNjJ6e9mlTpKrY4iYYSlOI+30yUHU/uuVc1HH4iaJ0MVEUaoK4LKKIBrIPFhT6 E9shTjivKAihiJN5DZTLWsDwpmW0/dl0NVuKpOK7JbCVy2k4X98cDAJCoNtj1UnUwrmt 84cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si37424004plp.25.2018.05.31.11.43.43; Thu, 31 May 2018 11:43:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756051AbeEaSmF (ORCPT + 99 others); Thu, 31 May 2018 14:42:05 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40746 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756047AbeEaSmC (ORCPT ); Thu, 31 May 2018 14:42:02 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C6E1E406F619; Thu, 31 May 2018 18:42:01 +0000 (UTC) Received: from haswell-e.nc.xsintricity.com (ovpn-122-18.rdu2.redhat.com [10.10.122.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1D6111C725; Thu, 31 May 2018 18:42:01 +0000 (UTC) Message-ID: Subject: Re: [PATCH] iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency From: Doug Ledford To: Greg Thelen , Jason Gunthorpe Cc: Arnd Bergmann , swise@opengridcomputing.com, swise@chelsio.com, yuval.shaia@oracle.com, linux-rdma@vger.kernel.org, LKML , Tarick Bedeir Date: Thu, 31 May 2018 14:40:59 -0400 In-Reply-To: References: <20180530215826.1343234-1-arnd@arndb.de> <20180530220405.GH30754@ziepe.ca> <0be4e0fb-8d8e-b337-fc8d-550c90829d8c@opengridcomputing.com> <20180530222520.GJ30754@ziepe.ca> <20180530230136.GK30754@ziepe.ca> Organization: Red Hat, Inc. Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-ZyZG+Y8B7/CFG123HGDp" Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 31 May 2018 18:42:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 31 May 2018 18:42:01 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dledford@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-ZyZG+Y8B7/CFG123HGDp Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2018-05-30 at 21:03 -0700, Greg Thelen wrote: > On Wed, May 30, 2018 at 4:01 PM Jason Gunthorpe wrote: >=20 > > On Thu, May 31, 2018 at 12:40:54AM +0200, Arnd Bergmann wrote: > > > > On 5/30/2018 5:25 PM, Jason Gunthorpe wrote: > > > > > On Wed, May 30, 2018 at 05:10:35PM -0500, Steve Wise wrote: > > > > > >=20 > > > > > > On 5/30/2018 5:04 PM, Jason Gunthorpe wrote: > > > > > > > On Wed, May 30, 2018 at 11:58:18PM +0200, Arnd Bergmann wrote= : > > > > > > > > The newly added fill_res_ep_entry function fails to link if > > > > > > > > CONFIG_INFINIBAND_ADDR_TRANS is not set: > > > > > > > >=20 > > > > > > > > drivers/infiniband/hw/cxgb4/restrack.o: In function >=20 > `fill_res_ep_entry': > > > > > > > > restrack.c:(.text+0x3cc): undefined reference to `rdma_res_= to_id' > > > > > > > > restrack.c:(.text+0x3d0): undefined reference to `rdma_iw_c= m_id' > > > > > > > >=20 > > > > > > > > This adds a Kconfig dependency for the driver. > > > > > > > >=20 > > > > > > > > Fixes: 116aeb887371 ("iw_cxgb4: provide detailed >=20 > provider-specific CM_ID information") > > > > > > > > Signed-off-by: Arnd Bergmann > > > > > > > > drivers/infiniband/hw/cxgb4/Kconfig | 1 + > > > > > > > > 1 file changed, 1 insertion(+) > > > > > > >=20 > > > > > > > Oh, I think we need to solve this with maybe a header fill nu= ll >=20 > stub > > > > > > > instead.. > > > > > > >=20 > > > > > > > We don't want to disable drivers just because a user interfac= e is > > > > > > > disabled. > > > > > > >=20 > > > > > >=20 > > > > > > Why does CONFIG_INFINIBAND_ADDR_TRANS disable building rdma_cm.= ko? >=20 > That > > > > > > is not correct. > > > > >=20 > > > > > That seems like a reasonable thing to do.. > > > >=20 > > > > rdma_ucm.ko is for usermode users, rdma_cm.ko is for kernel users, = and > > > > is required for iwarp drivers. It seems rdma_cm.ko is not being > > > > compiled if ADDR_TRANS is not set. > > I think the intention was to completely disable rdma-cm, including all > > support for rx'ing remote packets? Greg? >=20 > Yes. That's my goal when INFINIBAND_ADDR_TRANS is unset. >=20 > > If this is required for iwarp then Arnd's patch is probably the right > > way to go.. > > Jason >=20 > Agreed. > Acked-by: Greg Thelen If that's the case, then there should be a NOTE: in the Kconfig that disabling the connection manager completely disables iWARP hardware. I don't really think I like this approach though. At a minimum if you are going to make iWARP totally dependent on rdmacm, then there is zero reason that iw_cm.o should be part of the obj-$(CONFIG_INFINIBAND) Makefile recipe when ADDR_TRANS is disabled. We can take this patch as a band-aid, but IMO it's either incomplete or simply not the right solution. --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-ZyZG+Y8B7/CFG123HGDp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAlsQQbsACgkQuCajMw5X L90J9A//WegGX8YmCVvC3IzVaBGFKGiuNaCa1/hoE5s0IFwvxB6LV+HaON5W+Edi uhrkEWtwXQ4l9oEBipk2RxAZ+o9dlPRvRlTMrd6RHOlZ9zXo9LGifLUN8evPm3wU aGVtZkLyZRY7rhRFsfXIdwrIa1bvlacxNqXIWbItFbCg5ClsGLoFs1qrTB4+zqjp 0rafaTZysFNngA8axHl4NSboEJj51XitfTahYhCd39a/CMtl2P4g0Su05fPvfMck VmYuL95941B2yVQ/nPEh7qldlEb6/P8tlLEpcE6mMl/Ok/MTJHtb9Fng8ZIIhXLG OyzSINrMeKQT6mVBd0VQwwJ02KGa6G/P36ESajCCie8SmROrszzw5njX1Ae0RSDD p/mP4hRpaIBhtP+TrFncXBtfUN4zGhBMMnp7q6Q+YriS74Lk0/ONBJptTh1MVa7k t6+YvbVrUBX2PqhBsZToqCw6Ys4b2qoWg9A9MEAFXu4XcIHovb7lIjCQX3ou2uTH 7sK79FhS6dfuLqTw8B2Y0x4tBO9YmHY/pwQF10vCcs3QeG9SH7aZN5HVTiknQpvA +zbGD5EOWuJTOugMrLCsQ+XF7ickxLVW1Zj335K+plVfiaz3QG+lFN9CIOt93Zn1 Mo5NTXfBS5tCyhaWEk+r97NbtPawn4BPAw3ujG+BV3FCoFGCTtA= =FkYT -----END PGP SIGNATURE----- --=-ZyZG+Y8B7/CFG123HGDp--