From patchwork Wed Jan 31 10:55:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Taranov X-Patchwork-Id: 19722 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1808113dyb; Wed, 31 Jan 2024 03:03:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyMurnINnRS+V79YVqgY/XGCEhUL3Sqn1f93fbVflMC8TfAMp2199EcAM+ALaCZwNhUjBW X-Received: by 2002:a05:6602:889:b0:7bf:f410:5f35 with SMTP id f9-20020a056602088900b007bff4105f35mr1296664ioz.21.1706699025006; Wed, 31 Jan 2024 03:03:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706699024; cv=pass; d=google.com; s=arc-20160816; b=CbXKPn+RJGaBVQXUrYbI+AkkPV1178vQlm5hD19fI80pHL95BmBiDcNIEwMRL/D17m 7xTKhN5/s0FaeCoyTJP0GVlNvFka10bYl5h1ckk+Kn/0CxxHNMxmfGja8JKJ2YDViw3c e7XXXb0lMxCj6FOM0apjS7BmT7M2/GJsIVcY+IjQToQfQNiB3qGexGQBlI6egu6yZKrf dpkORE3OtTIS6BseF2fCMwYs9wqdHgeWikpu8+MxpGZT/N5zpGuWESYqPYZMBsIGdHgU rSXbFWmghb5t7Z650RFjiwyNCH0W2OFI1leaDzcx7HU3Z7s7uhWkoIDfstRo+cEdKOLi ztQw== 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=KuYMJ+KtPcMpYaHpCQD6at9/ZkKaQhJhxkcrHAaAz5Y=; fh=4o/hbWk/5AmtteG+x4Lmv71nJQZtOLJMq6SkDLEv5og=; b=t01uL4G8dyw0piIm00IAiK91ipWg34j1MCVksgkQbCwpBxAlQuSufCFFkn5Kt9GNCr UMvPi2M4iQT58sTgeEy3ciKqRNb5XTJHCJBzlg/Op1bmWP8i5ELfGhpD9wS0oMq6xrFc oMpfJXzwKTBjW8cRxTwdOvWKxJB/vHMjrbFHFvg3GCafwJ2tRN8fdOQlwSScXRYnFDmJ VT5Dp/b+2+xic621MuIv02U1NhdDprZA/ZYTAQpGeLk+ASLLGAp+u2cUvTkL7DjzC2qw waQTlOsTvtOh/v9vpOxScUDu+bNdE3pLOQGHH2MpIwEpQwtyE/5YGDbnlFheYozBB37E qnmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=G8MMrpEU; 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-46274-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46274-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com X-Forwarded-Encrypted: i=1; AJvYcCWJzrR0NWVJhXHjh5OMxojuUQRPoWSvND6/esy34N1Jwk7EwJXdEcUZTeae86q654DQ17De2RmIRMMSqLYws+TC86gtbg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e6-20020a656886000000b005cecbe69c23si9263352pgt.43.2024.01.31.03.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46274-ouuuleilei=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=G8MMrpEU; 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-46274-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46274-ouuuleilei=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 670282831C8 for ; Wed, 31 Jan 2024 10:57:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E7EC7869A; Wed, 31 Jan 2024 10:56:02 +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="G8MMrpEU" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0641869E0A; Wed, 31 Jan 2024 10:55:57 +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=1706698559; cv=none; b=XBO40BLAE1ELt1nw4EnuIujVfz9/783kqTZe2yzYrN10rqY2KwQqlHQLnhP0kLCDqQ5L5H3rT0uvBdX/B0iD485UNY/At1HCxHGCuHT21/jWOjeADUxp+8DPXeHkqsjrWJ/YokWJjbBPQgX66zIfwf1YBGCRbdsBX6rBHJsuChU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706698559; c=relaxed/simple; bh=frqd03oMwryAVYOMjuhoxNgEPtVwWiXGm8JhLGkkWjM=; h=From:To:Cc:Subject:Date:Message-Id; b=LE+MInpXic59sAv/CjTFvcwK5c0WcQSVhuUWAIpB5DU9JhbhyUV4S3T/SCm7AzdBqG7MAwjruejZ6Q1eafKBty6Pc75dzXp+IvHSXZDB0TC/C77Cd5OXvtYB39TyGBo7iNrAI+nNXv4Iy2mhMfABjxRWs5pfxPh/+8BurRFYCls= 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=G8MMrpEU; 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 90C2C20B2000; Wed, 31 Jan 2024 02:55:57 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 90C2C20B2000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1706698557; bh=KuYMJ+KtPcMpYaHpCQD6at9/ZkKaQhJhxkcrHAaAz5Y=; h=From:To:Cc:Subject:Date:From; b=G8MMrpEUYNwKezWt0+XL+V2iOx7qrmPPI1Hzv7f2rknXSRL1q2Bb7iDikR0y+DNGf LLrPpgEumCEVyEYkdaxeebwtVqix1aNAMI4otjHtVUJtNgF05JCzgo8zGPk7NLyIDi 3Zz996xwwKFNxWHiWf5HgiNONhbBVhpalwpDDTBM= 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 v1 0/5] RDMA/mana_ib: Enable RNIC adapter and populate it with GIDs Date: Wed, 31 Jan 2024 02:55:47 -0800 Message-Id: <1706698552-25383-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: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789603636931778174 X-GMAIL-MSGID: 1789603636931778174 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. 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 | 27 ++++- drivers/infiniband/hw/mana/main.c | 203 ++++++++++++++++++++++++++++++++++- drivers/infiniband/hw/mana/mana_ib.h | 75 +++++++++++++ 3 files changed, 297 insertions(+), 8 deletions(-)