Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1574687rdb; Wed, 31 Jan 2024 02:56:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGl2Pb6n2Oth0TSmtXMbiv18cEPYH+kH3FtwESvWWIaSjbzGrT2qKcDgY6VeqqzZyqZtuf3 X-Received: by 2002:a05:6808:14cc:b0:3be:8fbb:bf80 with SMTP id f12-20020a05680814cc00b003be8fbbbf80mr1599492oiw.26.1706698605462; Wed, 31 Jan 2024 02:56:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706698605; cv=pass; d=google.com; s=arc-20160816; b=bVyaubI6fzHacQoDJVUbm5zmjDJMhpUluPuSTpkKa9qMH8eRuqNzXZIvqCBdfTe2hJ ytCYKjA/5BAosKTc7PG8bN4mmvwXOy3TvWdFCoMEHM/5Hjf3WiSSr14pIfaHv3yMRcyb eJmCfsYB0wLHtywj2RLCQoFhk+mpNBbeOBLcs57vLwYNKcLMijWpKkL3FO+DbFnkzof+ dRVxvjG+j4LNjjeqjn5dFtkCYFVl+MsXV1S2rRexHgNkRqoiwetViwheBtJFxVii7jv4 K/Z6ZJjFA4ctvA1+wETDbiC22DQm1N4mVlXmbOSwVbM3v/xOnrPPznyDU+IzZeii+kbK DNpg== 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=0NL8eBEaqFjy9tLSsWVx5rjshgEUvgLvysbNDTRuhBc=; b=zQBK9jXlGcD4NIJKugeiYGcKuuC2mHOM7Okol37ibCOJlYCyoyYnl3dhtWTLlQ9mEd QUx0ox0y2wmaMXnxpKjAux9WHJTYoZ2vmnrZstzYEyQrv+IMLI1lup8kccCbmDjfFezx x3DUH61XSDFO0jMhBaBDhqyEvziLgQz/SMJcM/bxT+cr0569o7vt9SMepRMYAzAkN+VP 1SU7+k02W0yw44Aji5BQiNVGKzOLhYTQLUwj7tk1+xPVEOoYNwo8VMwf+cJAJDb/N4Nt LqgUMK2QcZFL9N6B31A/1Yh5HaaJKUTzjb54GnQrxAHXUooz4tLtsbeNOPxsr7k+gSjg oOtA==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46274-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; AJvYcCU3COL/aZoR+RVhuOzrP8bmyaMuDBq4h2SUA45Fj+L1aMx8zMIFgflt8CyBlVYZLoyoewhJ3zUJldSK5oeGjnkmca0pb8lCC5qsHf08SA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d14-20020a05622a05ce00b0042a0a397a88si11746657qtb.667.2024.01.31.02.56.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 02:56:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46274-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 9E80E1C215F8 for ; Wed, 31 Jan 2024 10:56:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 330A276047; Wed, 31 Jan 2024 10:56:00 +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: 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(-) -- 1.8.3.1