Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp2063lqj; Wed, 10 Apr 2024 01:43:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMcxd1LsiLgKqCrNEc7BIlVz3aH2fjZbEFPuR1r5D3LvtAnCO5jYKadOg+OjdvlWmAb0n4uDkmP+3TzHmBmCQn0+zDgrmVK+n3LkDNfw== X-Google-Smtp-Source: AGHT+IEENK2NG+G/tz3yq6fp1GyX9Ane0nBB0HLNDzjMoh2uWrYy76NQcKb3x7rotxZpu9v9Z2nr X-Received: by 2002:ae9:f40a:0:b0:78a:5eb3:8e3d with SMTP id y10-20020ae9f40a000000b0078a5eb38e3dmr2247138qkl.8.1712738591578; Wed, 10 Apr 2024 01:43:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712738591; cv=pass; d=google.com; s=arc-20160816; b=yxTWCEDYl9CA5u0bqqxKPHUn/D8D1QZ/zIu69DaQPOpkiARXp4Qj8itVBUKz8bQQhq i7dB9r7mIncxwuB23RwaoV86hi3EpFqCtmPj4VlB+xt8+tvJdZlACrc4J334zai23++O sT+uTsQEzWhTyZ4E45ZjdzbPLRi6f6KIKi66iDLI2z9wbZ0Ps39jx6b0S5OeplYriuDX rf4N+nIHhgJ0D8MtLi4QIY7nFs2sszvJggtJDW0hixUZCSHOodDDkMoo98HS+IC23m8B CS/+D4W07FOSCgIuv6k4d4/f0IFYzXbNMp2dIrC2FflW/44ut3fMTJ+eCljr3Hf7z8Sp 3hlg== 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=gJL9fOp+AoRunoPP2v7x/w9hunUPmLbH6MhXye6CacA=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=D9a2fesfW+1YBncth9Q3yAEe5UmJbCF2HvC6VYPQhEgn/xnzWE74wDgHJwYG59LwcL OpoSALgfgv9X33AaRzpnoQAIEiWklwnFeOyu4ZwNRREAmHvcLiQmnYax4izklZcehZXD XRy0eWCjrozcDCQzPH89qOY0p8ed0gduZWncrPZp7uJ3tf9XYh/VqJBN6a7ISYCBrd6l EyfqNBGOOYIXoZPCpIppbpTdyeeofWsTjrTEOU+Lr7vkd6tPPNV+psiiWNstlhtXzGcM AxS618/Zf08qLIJcX6F5vmGT7IzbNI8IRUrZvGwq182/+KIKboTYWbIPiACLGC56sIdL CaWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=lpliEnRO; 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-138182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m8-20020a05620a214800b0078d77245901si1553827qkm.225.2024.04.10.01.43.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 01:43:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=lpliEnRO; 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-138182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138182-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4DDB01C20FF7 for ; Wed, 10 Apr 2024 08:43:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3014F155A33; Wed, 10 Apr 2024 08:42:40 +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="lpliEnRO" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD73D154BF4; Wed, 10 Apr 2024 08:42:37 +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=1712738559; cv=none; b=BVNJxlw5Qor0Hgn8pKU6OqbK1Cd4wISXv7bdJ920K/Ea4vh5d9rqJJSXzBj2G8xJQ43nDf0Y+ZByvTJtqIV/gSTgxhiNUpkboxJKPQKtyVZ0VuVT/EZXTNduKjlETfzXLDqvbBqv98H2Z9Zsr2XtqznYHq5Dc9d87wFSnT1mkrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712738559; c=relaxed/simple; bh=Yxhj2QU/d6qrh4o6eH0w4rVq36i5UlU5Fr599bWgSMg=; h=From:To:Cc:Subject:Date:Message-Id; b=A7YFkYm37mnCHs6IXZHHV5m4rbOxneKJvdQkngdZwZxDXbh/mrxgn4KC5c8S2dhyYXdmINiYT3l6FQcU/ZsAp2tZymCqVSm9JPHkGRj63PRNnWmLgnFZMkPCNQtbc77W6esyUTOvIeMYVC2OtfzyTs+iIwR7Rw9RocaiHsg57DU= 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=lpliEnRO; 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 67BA120EB0E5; Wed, 10 Apr 2024 01:42:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 67BA120EB0E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1712738557; bh=gJL9fOp+AoRunoPP2v7x/w9hunUPmLbH6MhXye6CacA=; h=From:To:Cc:Subject:Date:From; b=lpliEnROXXnK4D2aWC/OJayaArZnh88d06hulonHalaPLXQ5w0XVXXWZAHUrLO6vf xLxYokP6BM/l8PnAvc5FzcR/F0SctC1EcnbJ1XuFrK0OL/cLCNE4X2qeyuR1jCN64u x/9d56FBE/P5Pgxlz1CvneeR6F6rfwkyqEHvHbq8= 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 v3 0/6] RDMA/mana_ib: Enable RNIC adapter and populate it with GIDs Date: Wed, 10 Apr 2024 01:42:25 -0700 Message-Id: <1712738551-22075-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: From: Konstantin Taranov 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 adapter cannot be created in the HW, we fail loading mana_ib. RNIC is available only for port 1. As a minimal usage, this patch series brings adding and removing 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. The MAC address is also stored in the RNIC. v2->v3: * On RNIC creation errors, we fail the loading. Removed corresponding checks. * Revised commit messages. * Removed unused members of new enums. * Added a patch to set mac address to the series v1->v2: * Fixed rcu_read_unlock() and updated commit message in "Enable RoCE on port 1" Konstantin Taranov (6): 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 RDMA/mana_ib: Configure mac address in RNIC drivers/infiniband/hw/mana/device.c | 48 ++++++- drivers/infiniband/hw/mana/main.c | 203 ++++++++++++++++++++++++++- drivers/infiniband/hw/mana/mana_ib.h | 87 ++++++++++++ 3 files changed, 330 insertions(+), 8 deletions(-) base-commit: f10242b3da908dc9d4bfa040e6511a5b86522499 -- 2.43.0