Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1789550rdh; Tue, 26 Sep 2023 03:48:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdpPsU37cE3MtpNVJEtYOvhSCCzk98wCY9MSOYr0hLE/XSbjVazwneI/zoUpKVVvI3qSgA X-Received: by 2002:a05:6870:231c:b0:1bb:6136:9cc1 with SMTP id w28-20020a056870231c00b001bb61369cc1mr12551590oao.2.1695725297311; Tue, 26 Sep 2023 03:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695725297; cv=none; d=google.com; s=arc-20160816; b=AthIWzUEqgBWvUyu+Aq22/CVdul52nTrNa5JjBhgq0Q2zNHfUty+8SJ1aSJksuXLFQ wywblRb//I1avFjl/BASYDvEdunF8cJcoVF3SuORgKtosvljH9R+1Vk3zDHQsPj1W9D3 w/T0KHbZsS6qBfFJy5itva9GJf/3l4zTjPtth/n+al4WY+KXiLUwMqhLj6ZyIVFBro0R ALq3eu+6TofXUb+fH3y2VGMPHiBoQk/XoTVx5OxS/xzyLb5HKFUsffckqL6lXrTJ8sTP 6L+k9J7bBiZjeU6UXR+k9DsOG6iLQ+7A3CIB1ph5OQbt2n1y8K2g7FZULc1Ujxeofv28 5YNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=vhdmJi0S3Tkc362W51fWjxoZmi28waNCYuzow9Uw4dc=; fh=/0b1uayxl6xObb+ppBuwyrMHN3i6f8LQGamT2h+wQt8=; b=vgvzSbhAKirI6Jvcd3GD49FqEWt8T5eX4QlZUXBJEcN0lkpbM0tk5y41kJpHNZkdyE jocjlVKDFNUMRV/oIKAAsts2cXf/TxlNU/4IQ0OPXPVbZGUyFvQWxQGe0Pn5gPOMl5e5 MQcmJCNmt2lbQIrMoWx13bAuZ3OIoCcIL7E9fgFsMPI1DskG8yU8/5QHsiV1DD4PahTb bBEA2JJY1fdAzEAw1bQMlVtr/H0ajah4N2ELEICOhuUpFjaTmO9mZ0/34atBW1yCtqk6 r8DGb2viRzUIz9x4f8DV9aIJhJfeSEGXd74XKodCy3JacZYtFR3/WbBhKUuQfSQ0t68h kE/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id s69-20020a637748000000b00578b63123desi1190736pgc.789.2023.09.26.03.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 03:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 60C24832658E; Tue, 26 Sep 2023 03:39:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234399AbjIZKjP (ORCPT + 99 others); Tue, 26 Sep 2023 06:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbjIZKjO (ORCPT ); Tue, 26 Sep 2023 06:39:14 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8958695; Tue, 26 Sep 2023 03:39:07 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Rvx4g2MZtzrSrl; Tue, 26 Sep 2023 18:36:51 +0800 (CST) Received: from [10.67.120.168] (10.67.120.168) 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.31; Tue, 26 Sep 2023 18:39:05 +0800 Message-ID: Date: Tue, 26 Sep 2023 18:39:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH for-next] RDMA/hns: Support SRQ record doorbell Content-Language: en-US To: Leon Romanovsky CC: , , , References: <20230920033005.1557-1-huangjunxian6@hisilicon.com> <20230926093046.GG1642130@unreal> From: Junxian Huang In-Reply-To: <20230926093046.GG1642130@unreal> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.120.168] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 03:39:12 -0700 (PDT) On 2023/9/26 17:30, Leon Romanovsky wrote: > On Wed, Sep 20, 2023 at 11:30:05AM +0800, Junxian Huang wrote: >> From: Yangyang Li >> >> Compared with normal doorbell, using record doorbell can shorten the >> process of ringing the doorbell and reduce the latency. >> >> Add a flag HNS_ROCE_CAP_FLAG_SRQ_RECORD_DB to allow FW to >> enable/disable SRQ record doorbell. >> >> If the flag above is set, allocate the dma buffer for SRQ record >> doorbell and write the buffer address into SRQC during SRQ creation. >> >> For userspace SRQ, add a flag HNS_ROCE_RSP_SRQ_CAP_RECORD_DB to notify >> userspace whether the SRQ record doorbell is enabled. >> >> Signed-off-by: Yangyang Li >> Signed-off-by: Junxian Huang >> --- >> drivers/infiniband/hw/hns/hns_roce_device.h | 3 + >> drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 30 ++++++-- >> drivers/infiniband/hw/hns/hns_roce_srq.c | 85 ++++++++++++++++++++- >> include/uapi/rdma/hns-abi.h | 13 +++- >> 4 files changed, 120 insertions(+), 11 deletions(-) > > Junxian, do you plan to resubmit it this patch to fix kbuild error? > > Thanks Yes. I'll resubmit soon.