Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp894283rdb; Fri, 2 Feb 2024 07:15:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwbOS5QRmDzjzY17ym5uQjTh0uTruquEUJ+9rZi0BpMsmnOpVvM1yxOkvQQLGgR4/l/KaX X-Received: by 2002:a05:6a20:7c28:b0:19c:935c:ed27 with SMTP id p40-20020a056a207c2800b0019c935ced27mr5154541pzi.21.1706886920451; Fri, 02 Feb 2024 07:15:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706886920; cv=pass; d=google.com; s=arc-20160816; b=B+Lzbw6BdZ/9OFpjJloJ5EXZRSMtUNHM4uWkWZZ/UEK9j+ZT2SK2zwmutgrwoNX8T0 fp8V758cFuCdbvDyCDrMdHCHhOe7607gwG87M6vZrzvejX/uBjnf9fqDiTCW05XRPt6D ZbCsk+obzjgjFNV44Jk0Tl0QIGAuadEcgqiYfFN3Y6Wz7NXGghfmPhrPfGc4vgtB5ySb S1pFvBGItKUAKlNANtu+bIxkb0etYHilpQPyLe1N3YPIiGcnf3qS+ai+0uahzQWHbXsT WLSP1oKku0ZPDWrUALknhmh87dZmsu6IsxLwOvwuo93AChJ1/SnfNXXHH8+Qu2zXr6IQ w8uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Dws5qYPXtDgA7IQskAdnTtqBb3IDbT46m4xR7ZECJfA=; fh=WoKLS3FPB0mHCxOwkqyiP9UdA5Y3IhZAjrMhvH5spMw=; b=0L9Nm08vcBSFrAKHIwii9kfmOFCdukI1YeLQdSnCN21YDOvAe78F/bExY+lKU8qKlv 2g5uJzf5ElpcHkOTFSZivKxW88ZjQYWmurI+/GKEwuOEdonUOK6zl+z+yyGLqOr3M7TJ fMuWXKijeklmCLnDD362qW57wB33l0wMx/k23g7EjC7R/x9dA//Kkxqq0iCsQEV4pSUo g14hmTvyB/uOIsmQ5S8j/cuanY4KAwibn/6UBuwXXVVuv8qFixAlfxR09SfJqh4GKFK7 0oz1XpCqvkVr6B7iOsUMFWWqLIpf5aM+XyzQg6WAXzQLdpr7b3NqgDmZqeg7x7to0Lp3 dU0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=GRuk4gka; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-49986-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com X-Forwarded-Encrypted: i=1; AJvYcCVajePSB7BtZ16VK+WL+uDGiXSU9Lj4YkowSS5jXZA4mJz0QuVPf4cQvkbMrgd1KbT4yK6ljb4fcz+MESXt7tfpwodiDQy43pE9Ucvm/w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d24-20020a634f18000000b005dbde340a68si1679419pgb.557.2024.02.02.07.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 07:15:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49986-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=GRuk4gka; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-49986-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 20637293AC3 for ; Fri, 2 Feb 2024 15:07:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF234145B3D; Fri, 2 Feb 2024 15:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="GRuk4gka" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BDD214533A; Fri, 2 Feb 2024 15:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706886412; cv=none; b=sMmkcEdHyTIOOPiiBXNZ6i0IOrOYBc4RnixWDVndZ3l9YDhUMSP59G6Hl7FzrRwIaENC2pMFc+VSb6SqCaAnzZ7MG71WMRIMyC9OKpUapHe4XYF2olR15A32gopihAae9StaeYDNuiSAXab4xhugJHX50NelfHV+8BF9RwIoCT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706886412; c=relaxed/simple; bh=Qva0FZXc/on/qqAMm5pFDLtP0E/Z78ZXF145dajsZKQ=; h=From:To:Cc:Subject:Date:Message-Id; b=MzJ3pHTsDW7pDpDLdSMEdPr6LSsn2DEvgUNYEobuHPRbbtvSj8tEkSl6RisT7rz6ItjFXJpXWIIx+jW9Ipg1dzjuuZq7foePuxGw98mRJVUJUzkWjozm3S4Mw74CF10VTXFNl4Gu5EtMR1iyz/OYEicc98iAfLXkIboEct+fuYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=GRuk4gka; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 3B4C920B2000; Fri, 2 Feb 2024 07:06:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3B4C920B2000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1706886405; bh=Dws5qYPXtDgA7IQskAdnTtqBb3IDbT46m4xR7ZECJfA=; h=From:To:Cc:Subject:Date:From; b=GRuk4gkadbBY2haBlHy17sLtkVNHWxlWjzX/34e0CMqOeagt6bcLb9Myh0L6xP5e3 zqWk5nAYOwNVxbYMX66s1wWL/fEv6lIZ1mGtnouoMeH42pgGXPgTIopT/Dguv7rqmk KmITOQhNWxpuwK1++TGtTlkUzWRLxCdCE2JjYLw8= From: Konstantin Taranov To: kotaranov@microsoft.com, sharmaajay@microsoft.com, longli@microsoft.com, jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH rdma-next v2 0/5] RDMA/mana_ib: Enable RNIC adapter and populate it with GIDs Date: Fri, 2 Feb 2024 07:06:32 -0800 Message-Id: <1706886397-16600-1-git-send-email-kotaranov@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This patch series creates RNIC adapter in mana_ib. To create the adapter, we must create one EQ. In the future patches, this EQ will be used for fatal RC QP error events. In the future patches, we will also add more EQs for CQs. mana_ib is served by mana ethernet for RAW QPs and by RNIC for RC QPs. If RNIC is not available in the HW, we do not fail mana_ib and keep only RAW QP support. RNIC is availale only for port 1. As a minimal usage, this patch series brings adding and removing RoCEv2 GIDs. For this, we set master netdev to the ib device and set required port parameters to get GIDs. RNIC of mana supports IPv6 and IPv4 addresses that are stored in the HW. v1->v2: * Fixed rcu_read_unlock() and updated commit message in "Enable RoCE on port 1" Konstantin Taranov (5): RDMA/mana_ib: Add EQ creation for rnic adapter RDMA/mana_ib: Create and destroy rnic adapter RDMA/mana_ib: Implement port parameters RDMA/mana_ib: Enable RoCE on port 1 RDMA/mana_ib: Adding and deleting GIDs drivers/infiniband/hw/mana/device.c | 28 ++++- drivers/infiniband/hw/mana/main.c | 203 ++++++++++++++++++++++++++++++++++- drivers/infiniband/hw/mana/mana_ib.h | 75 +++++++++++++ 3 files changed, 298 insertions(+), 8 deletions(-) -- 1.8.3.1