Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1149813rbb; Sun, 25 Feb 2024 23:26:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAavnC+vwYVc1MeBIlm4p5F9Gf70iKDsm3BjoOU1PgfVcTYRXTBEH7uWyDZFiVwtAd4t9FB4eEYQUW6ZWy/eEMLyGlmInZlOKBneqZYQ== X-Google-Smtp-Source: AGHT+IGxxEyB0vqQBXzvgFhRmMynWhC9RnXg9WbEfyKENu3JfcWH6w11UrWdXUfKTC2ma+4JOxO1 X-Received: by 2002:a17:906:852:b0:a3e:3bc0:64f5 with SMTP id f18-20020a170906085200b00a3e3bc064f5mr4019500ejd.64.1708932372775; Sun, 25 Feb 2024 23:26:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932372; cv=pass; d=google.com; s=arc-20160816; b=Uv4ZqqwYt2JRKlcq76eTJQxItsuBRhjm7YL02mNlS/HVpCFttQPDIgnOULBVbJBiGp LY7CsVhngbh7yHH4gZTAadMuqJVwRSezwGqwtSiFkEz6dNxXP0wMwE7AjPZ68jf0UGZ2 aCS+qpWzmPK+TI8iA6OD/vroYBFCvMehAv9oBLmuTsOcGQkw8LaPR2Hqr6SUVNt8xWQk F8bN/AzHIikY9YDGPeqU0YN0CoGhlUMBA87UmfE8lbvQE0Hc79tsrxOIvUK9SkEfP0f+ 8ToSxMws6Opcn8FGzhNhh2KsFdQuUzkZHcU+9KltWai4tipCFhgvuVMx3yffs7Quk/2P Szbg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80628-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lb11-20020a170906adcb00b00a3e6dc386d7si1815626ejb.826.2024.02.25.23.26.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:26:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80628-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 85D991F2302D for ; Mon, 26 Feb 2024 07:26:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F5921BF44; Mon, 26 Feb 2024 07:25:59 +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: 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 -- 2.43.0