Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2879144rwb; Mon, 15 Aug 2022 13:10:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cKA0MBHNgiFJErNNIPkUf/wflTATFAlMz+SKFmUkhCEVqxdrB6fF6qyYYHzmQRMq7f6uV X-Received: by 2002:a17:902:ab13:b0:172:63bf:4e39 with SMTP id ik19-20020a170902ab1300b0017263bf4e39mr10433860plb.173.1660594218839; Mon, 15 Aug 2022 13:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594218; cv=none; d=google.com; s=arc-20160816; b=lsFAog2Xgnd8Q+oBXdlfRbVQwHIYklZ+D28EfBpi+XoSTwt6PzXRtUnnjZqyuTkIwq Z1TdZaUyxDO0zuTS55cdTysd2KwLWubsSDvxLnyMeLp33pf7z2M1IDRvrT2BiwUGG4tv Xdz8LkeU6/49S+qG2sCESjkvtPbjuXUhxYfTOSR7i1mswEiLDK4hapTZcbbW9TWDJHT8 WDUcHdKmFEEqrm8sv6BCJcxKgS8+D5Tx+YJ5EupoDNujB+j+0jSQH589u33i25c4C9bY xxCIfOQCIk8mahqBvMdoVueCDMg3o+2XQ28mY8jM2M7aJ993lW7VEUqwNGd3m6gracrv LQ+Q== 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=4oJV7wDf/Z1wk2g+vvrub8ezIQDt5dNfIEwP+bYeKdA=; b=UXwW7LpJ+9vsOhUiuL8jAUPxJXIE452TufEs2D/0ttwbGPFJ1wMZBVEO41vAXhwXeB GWTfspwiKThap8+hZc9+i5sglxdFux1IQApnupyNwgY7hFDZJeCEX/Kw3/odXZct8nS9 8ttoUIbE3JcBjQCfvBR+yMB9Heo5Ls5VMOnuHVtmOsVIVc4i2EiaSB8eoBsn0D5kuwyU clsZiL931CD33kyttE23YuLVnvxf+0xxQTonZi7YPP1f+CZQeP58NkY8IPHFHwlckVwr pOJ6wg+P6LbdbQRI/o+nETqSv6mr28Cyg6ZCz69ZnuMuHArsPPzc9mvhY7pp5DNIWYaT 5Cig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uNQ7Pgj+; 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 o5-20020a056a0015c500b005255dd30819si11210210pfu.4.2022.08.15.13.10.07; Mon, 15 Aug 2022 13:10:18 -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=uNQ7Pgj+; 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 S245009AbiHOTW3 (ORCPT + 99 others); Mon, 15 Aug 2022 15:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343790AbiHOTSR (ORCPT ); Mon, 15 Aug 2022 15:18:17 -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 2FD7A5723A; Mon, 15 Aug 2022 11:39:43 -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 8335061149; Mon, 15 Aug 2022 18:39:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09B30C433D6; Mon, 15 Aug 2022 18:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588781; bh=29g+cXVqocYC8eq91Vv4APTPdgmTmZ6/Ot/tHBP7O9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uNQ7Pgj+w1CqchMNpsYLXQVe+0Z94D2USih8mZJfwB5E++eqHfFP16S30jWDJMjld KmPlTozRUbhDtK90n6i1JFW2ShFqektq6SmobhFXqM0j0/MPlzFBaqgAce2PKROtE4 9KLJFMDx/qwBFByiJzd3pqz72iNmoSgpQWOOBwGc= 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.15 512/779] RDMA/hns: Fix incorrect clearing of interrupt status register Date: Mon, 15 Aug 2022 20:02:36 +0200 Message-Id: <20220815180359.130831478@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 bf01210c56c2..1dbad159f379 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -5854,8 +5854,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