Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1862040rwb; Fri, 19 Aug 2022 10:36:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR55XuoU9/CLvensS4WMSwMuT1WV6UL94znSyR7znoITGiKhagBiQTM2qRJzOcs/oJ1qmaI3 X-Received: by 2002:a17:90b:384a:b0:1fa:f77f:c225 with SMTP id nl10-20020a17090b384a00b001faf77fc225mr980809pjb.35.1660930612576; Fri, 19 Aug 2022 10:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930612; cv=none; d=google.com; s=arc-20160816; b=H80oiSChfkH6HcbYb2zU/KsPTgXsoyOhibHYYnkQtwiyazc7l8b0tB/L1papoEq8yz am71z/dZlP7SL7OJ344GYBQ6imZ0SqC+IAx0T8dppj1ngVFiX0Xux3nWQCTvXpkoB7hq gZ/bbPw3S4nCr50EhcK+MNemXWQyNdYA2qEoHnBxhMWKRKzSr+v6GJ4HbaT3CEEa2OdQ lb7C/PcH5A031eyt00LRNo+CXsrALyhrHptedUJw4iU7BWSqBz2DxwODHove3MM7Hysc RlcP7RmXLbtMSyzH8a6xziiVoQbhVvug0j9iWdRWEFlUIr0K9XBYmd+a3//2cF4a21xn 5i5w== 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=t9hAQo4yLPiiSgbxsHjm5gvz2kVfmuSKure8PesslJM=; b=PX4bO/CHGCF5kmICiSqA73b5mszrsed6O7CqiEnHpULmifPXo5DykvCY6iBfW20iIQ o0px+cEVxrtiG7oGb2acCJPWS2MvnibxnS3jOIErQ+eoC9yVyikrJO8qywynfVBr09Yt qAspei0F1IUqirQUSBmsV/XbjrJObQGFUuC9ZBMXHQirkw/kRi8Vs+rjNbp+ImP7TL+A Axplys7zr1Y3HerYcH+DrA/57EXMZ6gfBz/2pZthxrNtDj+0Q5vG7DFAgOiUzd7KCG/L rlAcdI0oAWfpAmjJ3seiwSVdmImNiw62h38AfL7pFpkRm7S3AL7jfr8I7iMyTWpYN0FB kW1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j0i1ZVHN; 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 u3-20020a056a00158300b0052f9b43b125si4701553pfk.11.2022.08.19.10.36.41; Fri, 19 Aug 2022 10:36:52 -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=j0i1ZVHN; 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 S1352576AbiHSQ0m (ORCPT + 99 others); Fri, 19 Aug 2022 12:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351613AbiHSQVJ (ORCPT ); Fri, 19 Aug 2022 12:21:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC1574B8D; Fri, 19 Aug 2022 09:02:42 -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 ams.source.kernel.org (Postfix) with ESMTPS id 02167B8280D; Fri, 19 Aug 2022 16:02:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FF83C433D6; Fri, 19 Aug 2022 16:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924959; bh=P1VYVGNOavNF8RQzM/uLlQlUG2FfNU83k2ALbbh9MVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0i1ZVHNGbamI27FINjTSFQmFu99BJDc2Isq0tyAv55h54gyPBWyyEt6Jb94emoQr 6bLsCxtvw5srlI8p2URrdGWWADz8hnSbIan29r0PMzS+u4KOutK+fq6gKvQcYmaadJ L2PSptf5RqN1cmjHHXmAzrfsUXLY1VBYs9z0Qtj8= 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.10 337/545] RDMA/hns: Fix incorrect clearing of interrupt status register Date: Fri, 19 Aug 2022 17:41:47 +0200 Message-Id: <20220819153844.471428927@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 abe882ec1bae..6dab03b7aca8 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -5642,8 +5642,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