Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2198394rdb; Sun, 24 Dec 2023 23:57:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGA7KZpwECnhnsuhJ3NgVztYeWX/M58j6gdZ2oBV3p0WEmwLDHvudKhcRtzaqady5OGbbzN X-Received: by 2002:ad4:5b8e:0:b0:67f:49af:8ba1 with SMTP id 14-20020ad45b8e000000b0067f49af8ba1mr7891678qvp.68.1703491051775; Sun, 24 Dec 2023 23:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703491051; cv=none; d=google.com; s=arc-20160816; b=o8psudCuJS1zfnebPGQN7Twt44ie/cbHJd9bx8l0sLDeHMgHbQBcoBMnpjvpjF2vkF 9NhPdHY9o8UiT8TbhwoHL7gvxY6Sj4tIdXHA7OZoMDA0leeGtvBcYvP6dj4H5aLKg8us Pv+/Th7UNBaWfNR0DIvvEpFwIvOYKokg+uS27UsrAioGibPybYz0YDq6VbgexF2tHq5+ LHfcIrWDEENUnO/qTpLYkpPmpnvdPX+BrR2ypmBB+tkeJmAtWnZYk9K/bgTYKZlrcbrZ 4rUaiVMWozb+6/H+wFzaERG5Pkvums6m1g2FxkmostmholyeGoluR5XJjId2Ov/xQtO6 s1AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=K190gB9py1u1v1awVNrU8OW51sZG3mniAqIb6JvFi5Y=; fh=KWvyQxL3Ff+3WPSMjlYu+P4255AmcMULAsFol6M1vNI=; b=MATYdBNUt1uLOS6RiknzdQEbxovroW4K4HZOf6rWTIui1WoqldQQtZxolPyX10fKAK CV/r5v2PGBX89VcZUd3dLQVaBw4n8Oi4+TdgvEq5Z3PliwpBkmq/ArqTXfKzkEpTO6Rb VV/ct3YnhVPjkmLQOr0SMxvDuUeUhZ47piChqjngyxc1l2BK6Ezu7uHOOnj8T3CR/LTt /8P9B4YJaMsEePtKJnHAN5m+vR4N3HldAQkk4WtHoZ4dUAYh6wpxvKzRFCCSBbRC6uKT t+eExwi7A1RVOKuVpZHBhEomFkLBmCu88WaBy8s/R42fL/U15TpLNjfhSv23r9fMjja8 1UEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u17-20020a0cdd11000000b0067ab557459fsi9963871qvk.305.2023.12.24.23.57.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 23:57:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10936-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; spf=pass (google.com: domain of linux-kernel+bounces-10936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.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 8B0F51C216E6 for ; Mon, 25 Dec 2023 07:57:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63E111869; Mon, 25 Dec 2023 07:57:22 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F05C76FA1; Mon, 25 Dec 2023 07:57:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hisilicon.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Sz9FV1Hmbz1R5pL; Mon, 25 Dec 2023 15:55:58 +0800 (CST) Received: from kwepemi500006.china.huawei.com (unknown [7.221.188.68]) by mail.maildlp.com (Postfix) with ESMTPS id 5B1F21A0172; Mon, 25 Dec 2023 15:57:16 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 25 Dec 2023 15:57:15 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-next 0/6] RDMA/hns: Improvement for multi-level addressing Date: Mon, 25 Dec 2023 15:53:24 +0800 Message-ID: <20231225075330.4116470-1-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500006.china.huawei.com (7.221.188.68) This series optimizes multi-level addressing for hns. Patch #1, #2 and #6 are optimization of multi-level addressing codes. Patch #3 is prepared for the following optimizations. Patch #4 and #5 introduce adaptive pagesize and hopnum to improve HW performance. Chengchang Tang (5): RDMA/hns: Refactor mtr find RDMA/hns: Refactor mtr_init_buf_cfg() RDMA/hns: Alloc MTR memory before alloc_mtt() RDMA/hns: Support flexible pagesize RDMA/hns: Support adaptive PBL hopnum Yunsheng Lin (1): RDMA/hns: Simplify 'struct hns_roce_hem' allocation drivers/infiniband/hw/hns/hns_roce_alloc.c | 6 - drivers/infiniband/hw/hns/hns_roce_cq.c | 11 +- drivers/infiniband/hw/hns/hns_roce_device.h | 16 +- drivers/infiniband/hw/hns/hns_roce_hem.c | 95 +---- drivers/infiniband/hw/hns/hns_roce_hem.h | 56 +-- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 111 +++--- drivers/infiniband/hw/hns/hns_roce_mr.c | 386 +++++++++++++++----- 7 files changed, 386 insertions(+), 295 deletions(-) -- 2.30.0