Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3118521rwb; Mon, 15 Aug 2022 18:34:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR5YnBZblOVEcurHzTSs/4aXnypfy7VyUKflIBrNxIpylDyMoznySQfxuxsIkvE+9OuYsDbc X-Received: by 2002:a05:6402:156:b0:440:b458:93df with SMTP id s22-20020a056402015600b00440b45893dfmr17181909edu.337.1660613661389; Mon, 15 Aug 2022 18:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613661; cv=none; d=google.com; s=arc-20160816; b=x9Mg7Gx4I+AFK6zPkU6smTVqBvXLtGKeTMrUJwjUmYCdi3XNmjFbSDbYMRY41jCzXm JzjFCUOW14eutGjX1v422+ZFXPnZ8GdhIjKIBKkZuTSv3yO6RI5iQYJTiRqDYKVQ5LVZ sHB5lmvfPgEt6i73oM5NZNHB/geoVJUbSWveZtxpl1LMhUVBrita+881UiVEletfFfEu YxAHoiickdRF5rW0vX1zWShnr//C8ZnFsN0dkGCcQRwQsVm7d/UoAA4WKH6IbfHKtUFb AQVZNotJ1ds7KMQopw4yo2ZSzgKsDY7iJZiLJUL8w43um3fjKnjKMUsmR0xHajPoXsyK GvDA== 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=jyXhJIDbawd7MOxkBaO5egN6Of3nmt1EneyJB8wz+yg=; b=gHu2Gtz3F38wI3p2EE0lLST2GETRBdqVMHlcXJuqqNJMWp6UqlE5wsOvpiKpDWv6Bx OQUOl7M3O3J4Nkkg2YS7G1hBBaYYRhYxbef6UZuU1aTd886A08sIRUok0F6WZOYYdyPo D+pjnPn8xJ7Fjo8eZB2zoo0D+qCg2fdwj0AgjY7KAB+Tc7QgPdAIpPOPiVTvvbd1oEPu MWqtv3ELcyikiHt0x8311HDA6lrrz9UGsShNjy5RsOdLOgQ7ZZGNBcMe+HJd1HSf6ymh h/lf91o4fYvR9zqSHNTPX1sVIqgS0jF1JIJlVgJhfNcMeGeJ6wXTL9tCbEOXzk+NgunK FNrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aguJHxx5; 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 q10-20020a056402518a00b0043bd77de21esi10107246edd.51.2022.08.15.18.33.56; Mon, 15 Aug 2022 18:34:21 -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=aguJHxx5; 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 S243398AbiHPAeM (ORCPT + 99 others); Mon, 15 Aug 2022 20:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353493AbiHPAbW (ORCPT ); Mon, 15 Aug 2022 20:31:22 -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 856E2185C9C; Mon, 15 Aug 2022 13:36:11 -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 CF1FF6120E; Mon, 15 Aug 2022 20:36:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB83BC433C1; Mon, 15 Aug 2022 20:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595769; bh=879SVTF4CPuTDdHHJAZqEaC9dzhVX5nmvypw3+NjBfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aguJHxx5sBgygGfZ0lcB3orr/6mRWfBHBDfHkd2fLl+oqwoiJKeDMzbe6CjHml36i ktDAWLpnVk9XyH0wyUFNnPpGvxzHFp/q1kF6dVw4TB36LfL2xA+NXLw2PgG8ARVN9E kDglgbnOLj+S9G0CNa8KLgjELyh2Q0JFHItQYrQw= 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.19 0826/1157] RDMA/hns: Fix incorrect clearing of interrupt status register Date: Mon, 15 Aug 2022 20:03:02 +0200 Message-Id: <20220815180512.526681789@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 ba3c742258ef..b354caeaa9b2 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -6000,8 +6000,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