From patchwork Mon Feb 26 07:25:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Taranov X-Patchwork-Id: 20949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1916186dyb; Sun, 25 Feb 2024 23:26:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXCdQAeocqiwh92npfentP6iVNL/FNnzbomKW5WxtAKhCGje2c8SYktkGOke+Yc6FzR9nd1uKnyjtSmweDa8qVN0NKf6A== X-Google-Smtp-Source: AGHT+IGr5AZlHixnnLRojS3sZwWtZTHtBDiyigwfDbiCgkOPtUA9bsVIJu5OH5Zp7N2RR8eWUDXY X-Received: by 2002:a17:90a:4094:b0:29a:5714:f9df with SMTP id l20-20020a17090a409400b0029a5714f9dfmr4057144pjg.35.1708932393566; Sun, 25 Feb 2024 23:26:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932393; cv=pass; d=google.com; s=arc-20160816; b=UrVjt7JSJEfnaQDiFPKe93Hs8f5UWS4I8Ouq9BuEHHVjvdTSdg0Ovpj70s/ZGCLcQG Rs+NC1H4QmJranEV7MsEWYOywyZtc6z0DW8Sg6nKnMXXSJlteQUbSg8jo3pu28FpUkmv BursNcF4oK/CHvIFGGxyg5KBGbER8Djf+08fAJ/PbuAeZqpn/to2JOSiXI9CNodn+kP/ BjNnQXZ2rJT0WIF0yTekabf/R77UuW5TTOfl7hcBiNWiHf4aaguzja8civmF3jOxTzDz jRquWB5XHdHXPdWCUZN4HtN7N4UjeXrll/vVJTtj5nbeKJ4qnAndcNKWD8jcXlW0sqMr DJYQ== 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=SxyinpW0yk9+bqJt1cMFV0DPsJ9Z5M3jgCQINCRy5/0=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=vKKZ1H1RrZ+mrqoFdTaqjvGDIbjfoJ9dOcTJUecavx/Ei/mG5AOaDg3qpDm0hNkEpd Rkc0xt1fAtePaK/iOExyNlIazJLJLlsxkqA9OMyUi9+S/+0oP7/cMWpUJFNG7UOm1WJG K2X5b0Rnmm+RHaFwiNg5zXD07v5z5K69g0mHEzazKVrB2g0Ce/FIP3CiTsYTHsXhZrJM FwmmI8p//wciCM4zMTembv9+JC89jH/LJg8MK5v/PN0k3344kjBIoxjVi2HkN+r9iHmq iVvMF3/GORc/qn5n29rECciiOIpSAAMmJu5VjC/nZAXFQpaNVrMj4rprEZ9bAoWj6a7V v7Qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=B9yQ65D8; 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-80628-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80628-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a9-20020a17090a688900b00297305f7b3fsi5122118pjd.48.2024.02.25.23.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80628-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=B9yQ65D8; 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-80628-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80628-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 63065283559 for ; Mon, 26 Feb 2024 07:26:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3732A1C6A4; Mon, 26 Feb 2024 07:26:01 +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="B9yQ65D8" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38A531BDCB; Mon, 26 Feb 2024 07:25: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=1708932358; cv=none; b=dkoNxVyLZm+MAxDyZAO/h2JICFg51i4BbKfMnPNYeY8kLxweaXWYRVLI3ZGUdT33BCLF1NDBhR/V0vh+J7D2IJTQmjvw4EqLR1DzL1znHl8kGLxRfOJ7tjfF3ANdvMNYLE6bHiSgCmvVRjyrhsEOWTQ+rDDBXgAEy0/Q/8u0K7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932358; c=relaxed/simple; bh=j/WvZZmHqEGXLDJR+LSDPYr4O53m2FFIi6ta1CkoiFM=; h=From:To:Cc:Subject:Date:Message-Id; b=A8v1N6oZ8p2VHdNyek5X/nuKAvuLXnYaMOlwiXo+UUowJwvMUoDUcszedS98nTjOxfO+l+S8CX+niJcNKOz+36KlouyKiQlp+nN4jHPpy0ZqoNUoQJ0Wj2gs5d4s1bFNJL/Lj8zVxagY3WjZbblmnFjk3J5HCnVYBsOZyV20dQA= 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=B9yQ65D8; 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 32D6820B74C0; Sun, 25 Feb 2024 23:25:51 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 32D6820B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1708932351; bh=SxyinpW0yk9+bqJt1cMFV0DPsJ9Z5M3jgCQINCRy5/0=; h=From:To:Cc:Subject:Date:From; b=B9yQ65D8rPvbFvIOgbpI1kzv/ckuSTgQLD/Qy3C2tHenZhdN+0CZYb/5fg6nKv/iV hPKayd8OhoWhp2cvOW8UKsfV5g5OpwYlWfd5sb5oFckn74RUKGCKDaMAWotuHQKd4P ZvqGn+zgZNaOJmG9foCt8UNPTDuWk2+476/F2CBI= 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/2] RDMA/mana_ib: Improve dma region creation Date: Sun, 25 Feb 2024 23:25:37 -0800 Message-Id: <1708932339-27914-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: 1791945493633251757 X-GMAIL-MSGID: 1791945493633251757 From: Konstantin Taranov This patch series fixes an incorrect offset calculation for dma regions and adds new functions to create dma regions: 1) with iova 2) without iova but with zero dma offset Konstantin Taranov (2): RDMA/mana_ib: Fix bug in creation of dma regions RDMA/mana_ib: Use virtual address in dma regions for MRs drivers/infiniband/hw/mana/cq.c | 4 +-- drivers/infiniband/hw/mana/main.c | 42 +++++++++++++++++++++------- drivers/infiniband/hw/mana/mana_ib.h | 7 +++-- drivers/infiniband/hw/mana/mr.c | 4 +-- drivers/infiniband/hw/mana/qp.c | 6 ++-- drivers/infiniband/hw/mana/wq.c | 4 +-- 6 files changed, 46 insertions(+), 21 deletions(-) base-commit: 14b526f55ba5916856126f9793309fd6de5c5e7e