Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2975538rwb; Mon, 15 Aug 2022 15:15:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oYel5U0SBuy+Y8smGN6GnoH4jq6In2FZa4AMrQRmnyrIDcKn9fOqZualeZP0I3iwSBgtq X-Received: by 2002:a17:907:2c4a:b0:730:87ff:b69 with SMTP id hf10-20020a1709072c4a00b0073087ff0b69mr11601608ejc.116.1660601725480; Mon, 15 Aug 2022 15:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660601725; cv=none; d=google.com; s=arc-20160816; b=Tjpc9lAv0wBssSt33MMrUoOD9pWNCN/u6E3kyFyOauEgCy+3/oL6amjupuJYpkcS7P KEHwZPXoppq1SRZovmiFpH2IgDmWyXtsvowbRjhBCdxiApphrFOATa1DfPe9k4Fyf88x YjMQoJ8LW6S6VHLrEgpcEKPUagt1B5Pn8zQ+cYSg9+KQGW/I586J39LFkI8+TgRV8aIP lllfmFqH7tujCLH34SlnBSYj7qWmv7TITmbn9vmwEgCbns6tjLlXHs9XJ94aHZDeS+Wd yATDz606hpAyIXD2Wk2RhxUUgqBm72HdNGEOgc0ybCQVMrvBnQWPGIyZIOTZDwaiJy+J DqbQ== 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=EgriudGL4vcUcNnuaNXtSGDclxZVdtaTAIL1rRPjGJU=; b=iprYc2xZEj99cHyDZ0v5aq8wSvXhPWKoDK2PNj1hg2d1F1073YOpjXltXSWqEx8wGd 7qF+96CWOGWCi+xZGeXZaVU6XhF1tpdsOWoO75VYrhLYFe7/ZdTX00NZhyi6o4WmtUpG GSbRHMj1rWP+y9U5nwCPmutHwfOr07nvTdMyv3jtqGalVL1H5cgVcHxCTXLJtiPpUchL L0nHd7lJh0IsrGF4OUNxuFNn0sL1NqVOHDzgi0CqQnbHFcGYrBzD4Ibf2rHNjiHN2LV7 9XNPLSu/DImVNBVGq6E2f7a3pSSNlg2lDVcWhoZRMm4vpLcjQ3Vt/M/1fyCez+XkOO7i b1YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sCewpKns; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb39-20020a1709071ca700b0072b3a316cc6si8223511ejc.977.2022.08.15.15.14.58; Mon, 15 Aug 2022 15:15:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sCewpKns; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1347584AbiHOWNZ (ORCPT + 99 others); Mon, 15 Aug 2022 18:13:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348766AbiHOWLS (ORCPT ); Mon, 15 Aug 2022 18:11:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2B343135B; Mon, 15 Aug 2022 12:38:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2CB3B611FB; Mon, 15 Aug 2022 19:38:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F7EDC433C1; Mon, 15 Aug 2022 19:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592325; bh=7ZSlsoMSU+gfHOXsr7fwBnWNyarphMMkVXwP75Du8lw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sCewpKnsWHCWlWoZUvgdfeReCs6Amdz3INuY61OeM3dWqMGPBJ7trTJBXJ9uvpSgL fWVGgn/pxrcnoNHgbQagBGm0Os5Gsc9eKCzsPcuHZjhJQ7rSq8mfIidn7o5b4hSfwT 7lkJNxWLhss1I0bY0v2g4HFSR6eg5qr+tOdz3er0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haoyue Xu , Wenpeng Liang , Leon Romanovsky , Sasha Levin Subject: [PATCH 5.18 0770/1095] RDMA/hns: Fix incorrect clearing of interrupt status register Date: Mon, 15 Aug 2022 20:02:49 +0200 Message-Id: <20220815180501.105273519@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Haoyue Xu [ Upstream commit ecb4db5c3590aa956b4b2c352081a5b632d1f9f9 ] The driver will clear all the interrupts in the same area when the driver handles the interrupt of type AEQ overflow. It should only set the interrupt status bit of type AEQ overflow. Fixes: a5073d6054f7 ("RDMA/hns: Add eq support of hip08") Link: https://lore.kernel.org/r/20220714134353.16700-4-liangwenpeng@huawei.com Signed-off-by: Haoyue Xu Signed-off-by: Wenpeng Liang Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 86f6a4aae1e5..6e7dadc3386c 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -6125,8 +6125,8 @@ static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id) dev_err(dev, "AEQ overflow!\n"); - int_st |= 1 << HNS_ROCE_V2_VF_INT_ST_AEQ_OVERFLOW_S; - roce_write(hr_dev, ROCEE_VF_ABN_INT_ST_REG, int_st); + roce_write(hr_dev, ROCEE_VF_ABN_INT_ST_REG, + 1 << HNS_ROCE_V2_VF_INT_ST_AEQ_OVERFLOW_S); /* Set reset level for reset_event() */ if (ops->set_default_reset_request) -- 2.35.1