Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1284754pxb; Fri, 10 Sep 2021 02:23:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXhHhGruz+j6C7VmNA5yNRmlX9xd7a+z+AcEHGAqxOVN6Fn0nATWW9EJeQ7KOc6GeF14HK X-Received: by 2002:a17:906:7848:: with SMTP id p8mr8448426ejm.212.1631265819905; Fri, 10 Sep 2021 02:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631265819; cv=none; d=google.com; s=arc-20160816; b=hkbTgFqRj6jROxd4E8vwwhlUt6pOGuHgyAoN8513AuFF4xNrszwmI77QLX6llSaso0 ppPnI1g6sh7Rg9Ma4dljKAgjO03M6d/Qaw0XNnsSTeli3X7TmNHM71D5M0STMvduj1cC zuUzGF71EAXenSTJGnrjrvuOi0ayXOhOJeovZZx2QgMCwTnyORmI1+i3DlhfhloNJuPL rWijYK22qVH4KLEDUjXxYXVHTTADlXlhZGNdvem2QXz+dNYQQRw+7MTeAdamiZeyoJ9r Bp4ro6Czo16nE7H/M1x8UZzNqMZDDGX5YUqiQhKsGE5KqWWl8i8P5q4LFb98AG7sIUvu HFBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jmzYvtGjFFv358bWFhjWexqgtQqCXPJORzbhfwnKhgY=; b=rwOfCYD1ZsDuZkfeKLL0sG73Src3y6Hiwvx7ySP4rkzHIrsq6Ok70nGsFWZiWLq8E1 +NEoxl3+H9rZyiM+7xH59KCGxecMwoL6DNFlGjIGEeQIpBGi/BknjhYjoxUFEiumo2S1 NGNmq9JHR4Q3kkeg3sPNmpFtwZuchPGfYWzRdlIskfe1D86jZiao2Gh78y2/eFnqp/rs JyuX4MkPROUBU9MgCcBo4oXFiH0iEOE2wCP35RSo5wkcVWgF2d9EO/8lUanvLVc3G3wx 57Va70S5fs4uXkiQXrFKPIJencqtAaOJpoqKbmrKQMAQCOciDM50NjWx/0QllN21Vdmu iEPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F8JcAKGj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si5738596ejy.385.2021.09.10.02.23.15; Fri, 10 Sep 2021 02:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F8JcAKGj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232065AbhIJJU0 (ORCPT + 99 others); Fri, 10 Sep 2021 05:20:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:37570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbhIJJU0 (ORCPT ); Fri, 10 Sep 2021 05:20:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F1CFE60E54; Fri, 10 Sep 2021 09:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631265555; bh=MMdXWy9QH0CzGaZwwChXTBW5lxYyYuHrr1/bvcKTO20=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F8JcAKGjm89rFblCLpR+Tlttk8cyjZwZ6IjQe8rcKDaWLIChbb8lKu4LRiXkNu1zU 7zOvkS2atN/JENfcou79ze/peTxu7QZgJLtF+jFSb/8gveQ37vT5Vgbvq45iuQ033W djHtyCbnG/3SqLCsUVHebjEfcBJrcW7jZrqHzQUqBYa0zFJFnuWbUP/gFnqBYZ9Jll DhL12KibM5lY4NCLzoa/GxShPqNxTVqC239ao2kcG2jaIXzlm8M8Q/jyrYJ2VqzteH qawRXAhIcj/lB/LQfkq6/HCr0/FmDeIPZaB32NBEnBLe+dapcpPM7mK8DUP7psSGC5 RbfwRSCRnqWqA== Date: Fri, 10 Sep 2021 12:19:10 +0300 From: Leon Romanovsky To: Dave Ertman Cc: davem@davemloft.net, kuba@kernel.org, yongxin.liu@windriver.com, shiraz.saleem@intel.com, anthony.l.nguyen@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jesse.brandeburg@intel.com, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, jgg@ziepe.ca Subject: Re: [PATCH RESEND net] ice: Correctly deal with PFs that do not support RDMA Message-ID: References: <20210909151223.572918-1-david.m.ertman@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210909151223.572918-1-david.m.ertman@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 08:12:23AM -0700, Dave Ertman wrote: > There are two cases where the current PF does not support RDMA > functionality. The first is if the NVM loaded on the device is set > to not support RDMA (common_caps.rdma is false). The second is if > the kernel bonding driver has included the current PF in an active > link aggregate. > > When the driver has determined that this PF does not support RDMA, then > auxiliary devices should not be created on the auxiliary bus. This part is wrong, auxiliary devices should always be created, in your case it will be one eth device only without extra irdma device. Your "bug" is that you mixed auxiliary bus devices with "regular" ones and created eth device not as auxiliary one. This is why you are calling to auxiliary_device_init() for RDMA only and fallback to non-auxiliary mode. I hope that this is simple mistake while Intel folks rushed to merge irdma and not deliberate decision to find a way to support out-of-tree drivers. As a reminder, the whole idea of auxiliary bus is to have small, independent vendor driver core logic that manages capabilities and based on that creates/removes sub-devices (eth, rdma, vdpa ...), so driver core can properly load/unload their respective drivers. Thanks