Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp215849imm; Mon, 4 Jun 2018 16:09:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKmfMBMsZrsy+H56pPflPm4WIwU5WvqqOVXqPpHbCCa8hgNTGas+3xZJbR4sUfG893Bkotq X-Received: by 2002:a63:6ac6:: with SMTP id f189-v6mr18953922pgc.308.1528153776338; Mon, 04 Jun 2018 16:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528153776; cv=none; d=google.com; s=arc-20160816; b=o6rL+7d4dK08MUnjBRkdS85kC92mePF/ux4NRVU1foDa7O8PwvhQ5F4r3aWsFLwKQQ svCEoJG6Aq7feqy2cbSBkHhRa45iGj3dR6UDwaqH283Qmi8Ta4J5LgnmHD5hbbXhhTNm yx0SSMbNkr+Uzj6EGP5MF4uhIucG++I3dOTypiteBNdlD0jxyj4N84U5kMXOOV1WPfg1 rF7/Fq4EjpnAKBwZp4INQs6hvU5uMGzOE51dMPolB5kwK448XVvx/bGPwSSWcbrwjTnw rPBU+4KZhhZQQyv+XjS2rOEZmDlA8KWd8vKYvS6QgVCM0ZD4JK90DHY7pg/J70wAL8DN YjYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5Ioe7OaCbF8/bNft94IFaM5/K/vrFgFWhGgIxpsk2A4=; b=ZdOzOn+YFkTLDxV6KOvrIouKSAc0vpiiroYbxCjuoXf/IrZwy0zLjYbMkUXERH5R50 azc69moVPfuXntJD8w9bjzRIGGuJM6U6Och2qouLsRa+PhejCze+PaXsXc8KZXtpeqEW yy0WBBWw7Snz9bSZ6Jm0a7wfTrxnFxaPb3hk290VMSvEHHHUCDPl1xPDZIvq3G1+wdQL JjtsRVN2bw4ItoHX1bI5SkKIyuhPZkQb2DTGba2c6Ari4mTewxVLXdqHQiHnq+as5isb AQx13OOaQIxBdJHDI3aX2Z8zO1Ik4WX9sT3EDPFYN7B5cEG5cQ2r0/l/yOk73Bk+Ezgj P2jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fAQeMktH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4-v6si37626359pgp.103.2018.06.04.16.09.21; Mon, 04 Jun 2018 16:09:36 -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=@ziepe.ca header.s=google header.b=fAQeMktH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752052AbeFDXHx (ORCPT + 99 others); Mon, 4 Jun 2018 19:07:53 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:45944 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbeFDXHv (ORCPT ); Mon, 4 Jun 2018 19:07:51 -0400 Received: by mail-wr0-f194.google.com with SMTP id o12-v6so332794wrm.12 for ; Mon, 04 Jun 2018 16:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5Ioe7OaCbF8/bNft94IFaM5/K/vrFgFWhGgIxpsk2A4=; b=fAQeMktHx6QFjilGs6+DE/6RRfABc5Jv1U9SmMKqcN5ANG+1Fiz3tsHc+LL63u0q73 gicnWaT2jj2mBwSwlALDorxDPkR+slx7VjBeeQlWEVA5ZkQiEf7sj7FbYxkLra0ijS+5 CNc1Uy5VEfvRhr2qvzTDcbN8BsZzkX6zpRLTuH1mDV741xhOiGSi1XwXBZAJwMXfpA6F 0RLhI1HvcXMDWK8lC1ya+A1oVV4J8+PEAcooq9OmtX2N12bGpwF14q+xnPFoE/yiyzn6 FP+F2p4jQIs1iNqJLA46dn8Mkz1iEJJZxWF1rI3hniDuHIp3Qa7scHr0Q7bFnC1IZO2j baBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5Ioe7OaCbF8/bNft94IFaM5/K/vrFgFWhGgIxpsk2A4=; b=lqSgz6woEjvihrXyOSp2amhS5R64AIWzH1RzlkVd2DLWtU81LwTgvQZoyAfI7Y4BpD INGRX7gQP8JC7d4FnyE+m0HbTqoWzaZ3BUYXYikMLpEYxQgOxnJcKnKGJrJuBxTwtCy+ yrwAxMMiXPdkoP4j/75kwRXuKEt6ivs5LSLf031he27wdRx07uO+o+cyIg5SIhOol+d+ jBEsaelu8hKmT3atqCrVLGxI3Mr/1IuGXS7DYNra4gyBSjm+XyCs4sZQw+GftUh6ri2B LfcVxv7zFtTRDsHZczIQNGc376kYA33qMnuvxt+FwPOykCz/583EfoP5Wqlb3GjNmMlE 03QA== X-Gm-Message-State: ALKqPweH0vrPdtYn/26ES5XAz9g/RBdM47UTeoPvsbcQsY8ZQ6jDNYr5 77u5CeobPYgCnxiUe0p45xOB6A== X-Received: by 2002:adf:b310:: with SMTP id j16-v6mr16920612wrd.207.1528153670566; Mon, 04 Jun 2018 16:07:50 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id u8-v6sm116558wmc.40.2018.06.04.16.07.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 16:07:49 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1fPyZl-0003zt-Ql; Mon, 04 Jun 2018 17:07:45 -0600 Date: Mon, 4 Jun 2018 17:07:45 -0600 From: Jason Gunthorpe To: Doug Ledford Cc: Greg Thelen , Arnd Bergmann , swise@opengridcomputing.com, swise@chelsio.com, yuval.shaia@oracle.com, linux-rdma@vger.kernel.org, LKML , Tarick Bedeir Subject: Re: [PATCH] iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency Message-ID: <20180604230745.GG24926@ziepe.ca> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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