Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1917031pxb; Thu, 16 Sep 2021 20:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+1/x+wItmXl7/DXxPPXXVFNAe3JzOwlnA9nDoYigXtYjvQdtrQJtLo7XZxbHq+jjRDJoS X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr10066205ejf.416.1631848264399; Thu, 16 Sep 2021 20:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631848264; cv=none; d=google.com; s=arc-20160816; b=w6pmZXXNnymYk7jMNb8E03FU7qxSwEzMebVMB1TvaU5yItrRLgQYOQHV8ZCgJTBJmH q4aE0FLxIHQfADROeiCkP7iVJ/6BWV8S41wwohCCQHZC77YDp2RqGr5Isb0u3nZKjNWL 8K2GqUK6l7AHZ7tnNzL7h1CYLyy2o5KspPB6J9iH2hXCs7Dsh3Z1O1hF70DUTUNcxdz9 WZkhKrTWHy0stX24z6OOU/pqmJKOq+tcbYR3xD1sJizWUyHDkivA8o9CFVhP2JDaCqyn df/9v19hF+hvsi7yQoZcVzYi2oVVS3kI/KlMpfDD18HTi5UjdbrWvC3Q0DxbMLfo+0De 4JYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tLlBYEBsWFrh0C21q+zd2qj6+kQnw7Lqevq7S/BCWII=; b=HIcqHYFo3M9vhMxXICReswqin75R2NsVpwHVzRU1RA5S0hb6IvBvk7MqQcf6xh4K1+ acVCw0PNdpBUspbSEg4dKWgOtfJEt9bw5evq++bt4KFKedL8uMmrnpPzkniEqzPRfbKn 17OEk86DmxBfAJ1aRvyQTdcHFQHspj6BJXB3FjAfwKLhJRsK4/wqCWBU8otjMSRkUaEl Z8ZGsn+f5OCicUMO88VT0Ea9bDs5ABkTqMeG/YckGIOcVrKPDcGF+WbxO8gJLnUsmSlv qbmf7NyegNmn/ZR6zDC8i1/OYf542srcPzq4e7sXg2oWJ1edIF7qaWp3g17OuZNHErCC 7mBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CMwgTVpM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j88si6405446edc.569.2021.09.16.20.10.40; Thu, 16 Sep 2021 20:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CMwgTVpM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352853AbhIPR3Q (ORCPT + 99 others); Thu, 16 Sep 2021 13:29:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:43510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351944AbhIPRUA (ORCPT ); Thu, 16 Sep 2021 13:20:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BA7AB61A2A; Thu, 16 Sep 2021 16:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810510; bh=Va8bcP5CQ4q/oK4EpZUyhifW4YVhyPh0tA5iq7z/eMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CMwgTVpMbnXr71qLwJrMM7hgXmbYeonvGgT/B0z3wlWbg0BhQZwVO1YcuXRiRtRS1 a35SprlLycPczYuP8ludwF5ik4sOF/8XazgYr5d8X4fAygj420JCd26ACnZ82lsRFB oRgcBOXh2RkedGZM+D6kti3cF4oEl36MQCsByGU4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yixing Liu , Wenpeng Liang , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.14 135/432] RDMA/hns: Fix incorrect lsn field Date: Thu, 16 Sep 2021 17:58:04 +0200 Message-Id: <20210916155815.331821768@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yixing Liu [ Upstream commit 9bed8a70716ba65d300b9cc30eb7e0276353f7bf ] In RNR NAK screnario, according to the specification, when no credit is available, only the first fragment of the send request can be sent. The LSN(Limit Sequence Number) field should be 0 or the entire packet will be resent. Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC") Link: https://lore.kernel.org/r/1629883169-2306-1-git-send-email-liangwenpeng@huawei.com Signed-off-by: Yixing Liu Signed-off-by: Wenpeng Liang Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 0e0be5664137..f4cea6dcec2f 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -4489,9 +4489,6 @@ static int modify_qp_rtr_to_rts(struct ib_qp *ibqp, hr_reg_clear(qpc_mask, QPC_CHECK_FLG); - hr_reg_write(context, QPC_LSN, 0x100); - hr_reg_clear(qpc_mask, QPC_LSN); - hr_reg_clear(qpc_mask, QPC_V2_IRRL_HEAD); return 0; -- 2.30.2