Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1854217imm; Thu, 7 Jun 2018 01:12:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLsUYBPt7JUeq0n1fa1qyAef6mEU9gYOPjvDmBRBnmkp6sqgKf/34+ueOL8vLcvgWTtMv60 X-Received: by 2002:a63:6dc3:: with SMTP id i186-v6mr777823pgc.316.1528359127370; Thu, 07 Jun 2018 01:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528359127; cv=none; d=google.com; s=arc-20160816; b=lFBS7OmL2Fzv9SrCfUSqFOVAuyJzETSSR0kjbX2agpPbZb4kBv3xUO31F8DA53y05M MJ2/FEurCat9ukG3bBZRgzPFh5eHp4FkLQboDe15cwEUAus3MHbv23zkXoeEsv96Vn2t KwMTbgFscKKEqZFnQWq2HmxtDz39zoQgdJib8ak9kfkrrHJ0K5TuTkTq3Ax8NyLV53yq j3ui1W3uy8RcwivnRJNrSUAJCy/j7aWRkyOuDMqJR/v1cgvT9hdJsVai98fNV4XurpSa UlsEfh8+ez5qy3+I2SvlDEjI2MO00cXGsRcc52YjPTWDy34yBqWBEMg5gAqTd0+h5R65 4Orw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=MJzqNQF40bRDVI0xsNRlzXs3GK4MH19E32gIgb5QgdI=; b=q7N82BOV/N5Z2RaUs7QMIyDufmPtytI2etuXgwiE7byFehWsX0CVbGftYB9deLJPD6 j0LXH7Usr6e1mtKR3FxQjZyklTdyaPb2h06BNJsbHX52wHuvfzJm2HVcmj51cNlVTpyq uduZAQP/bw7wwehuSNgm+Mf9omJOLj7J6vjvJPIjkpNrXvplHTM2N5gZMuTF9VMWH8Ad G4m5F8uyzXMjiI8vsXMDoCDsKivbIdPAOrNv74vJTJ8mrXCMVoID03PrpPzAfbkHNnWv 4c0jJDwrfnBizBk90qiaDftY4DmnJ/0biP8cqy58wkkA8x/2BKXFEbjnzrWuwb6RyE+H RLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MfdmUX3A; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si42812643pgf.364.2018.06.07.01.11.52; Thu, 07 Jun 2018 01:12:07 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=MfdmUX3A; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932258AbeFGIK4 (ORCPT + 99 others); Thu, 7 Jun 2018 04:10:56 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:41475 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406AbeFGIKx (ORCPT ); Thu, 7 Jun 2018 04:10:53 -0400 Received: by mail-yw0-f193.google.com with SMTP id s201-v6so2724229ywg.8 for ; Thu, 07 Jun 2018 01:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MJzqNQF40bRDVI0xsNRlzXs3GK4MH19E32gIgb5QgdI=; b=MfdmUX3A3VS+a+uhqxijg2crlZyK5Gqiy3T1a7oC19DnDphFyhUdsVwTaFNKXKJ9Pu xhpfTBprfMgSY5z6nKzv74LaD11IrU4FGPQhn6qAhmKPGWGqXWL9k0Rextb7rqlZ5VfL k1Ah3fe6KJqUVkbhB80u1azwa2KSxXCIQw9YKov/ni73s4vgythxdJW8WPnuP8qkjbXE kVqKnDroIHriEDVnfVl7KbSXUbETlh2nTo5O+JqzCu+vOYo7DQUSrVWbCedcounibcJO 5jIZ9uJEDLqxQPFjVRFNte/KMExVAqpGOjWjKuhe/w/08OV3mOIe9PQLSONixdROh25u lgrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MJzqNQF40bRDVI0xsNRlzXs3GK4MH19E32gIgb5QgdI=; b=gw1b7LuokKDVd2gBx1+7GmlauMqcQBRett3e9milnotGKv///ENngq4CrqKQ2/ECtm K4/TFRl64BW7+J5hS9KBFDIaER5PoFGsc0iiHHuzrEFjMVlxj+JxkPEjgqa1U8UbToR1 7pjz+N+cFIMCUHq6jU6bw+2t884fnr7nZFNP99TNiqqv6kXl/culGkf17XhTyG87L0nl fUvaq4PxLlXI6ysFcmtEQ4yI9USLlDWUQvj09AJ7RbCg5RSP0Rsuo1RrHXRs2wHPXMZ2 iWE7ZIzqOYlUHCIT1zXVWKJUsChSwntBMU9GwxK/JsjoDv78Igrn539zDrsOznQ+AfzI Qw+w== X-Gm-Message-State: APt69E2A7QA8LzQjy81l1bpLcLtksmCuOPG/NHziWO7Nf6PuJEDkBmac FsKjcs74lI7XtSfKWC3WE6KTg16/dDLKw1JY07cJzg== X-Received: by 2002:a81:19c6:: with SMTP id 189-v6mr427801ywz.500.1528359051912; Thu, 07 Jun 2018 01:10:51 -0700 (PDT) MIME-Version: 1.0 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> <20180604230745.GG24926@ziepe.ca> In-Reply-To: <20180604230745.GG24926@ziepe.ca> From: Greg Thelen Date: Thu, 7 Jun 2018 01:10:39 -0700 Message-ID: Subject: Re: [PATCH] iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency To: Jason Gunthorpe Cc: Doug Ledford , Arnd Bergmann , swise@opengridcomputing.com, swise@chelsio.com, yuval.shaia@oracle.com, linux-rdma@vger.kernel.org, LKML , Tarick Bedeir Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 4, 2018 at 4:07 PM Jason Gunthorpe wrote: > > On Thu, May 31, 2018 at 02:40:59PM -0400, Doug Ledford wrote: > > On Wed, 2018-05-30 at 21:03 -0700, Greg Thelen wrote: > > > On Wed, May 30, 2018 at 4:01 PM Jason Gunthorpe wrote: > > > > > > > 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: > > > > > > > > > > > > > > > > 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: > > > > > > > > > > > > > > > > > > > > drivers/infiniband/hw/cxgb4/restrack.o: In function > > > > > > `fill_res_ep_entry': > > > > > > > > > > restrack.c:(.text+0x3cc): undefined reference to `rdma_res_to_id' > > > > > > > > > > restrack.c:(.text+0x3d0): undefined reference to `rdma_iw_cm_id' > > > > > > > > > > > > > > > > > > > > This adds a Kconfig dependency for the driver. > > > > > > > > > > > > > > > > > > > > Fixes: 116aeb887371 ("iw_cxgb4: provide detailed > > > > > > provider-specific CM_ID information") > > > > > > > > > > Signed-off-by: Arnd Bergmann > > > > > > > > > > drivers/infiniband/hw/cxgb4/Kconfig | 1 + > > > > > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > > > > > > > Oh, I think we need to solve this with maybe a header fill null > > > > > > stub > > > > > > > > > instead.. > > > > > > > > > > > > > > > > > > We don't want to disable drivers just because a user interface is > > > > > > > > > disabled. > > > > > > > > > > > > > > > > > > > > > > > > > Why does CONFIG_INFINIBAND_ADDR_TRANS disable building rdma_cm.ko? > > > > > > That > > > > > > > > is not correct. > > > > > > > > > > > > > > That seems like a reasonable thing to do.. > > > > > > > > > > > > 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? > > > > > > Yes. That's my goal when INFINIBAND_ADDR_TRANS is unset. > > > > > > > If this is required for iwarp then Arnd's patch is probably the right > > > > way to go.. > > > > Jason > > > > > > 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. > > This makes sense, Greg, can you send a followup patch with these > items? I know this series has been tough.. > > Thanks, > Jason Ack. Sorry for delay. I'll take a look at this in a day or two. Let me know if it's more urgent.