Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5995975ybc; Wed, 27 Nov 2019 13:06:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwXynxKRr55H3gIVJxJoBY1yjxiabe4Zke0x/R6txrDTX6CDiq4gTfs8XZ6JEkRpkmYmA1C X-Received: by 2002:a05:6402:70e:: with SMTP id w14mr34208931edx.95.1574888791038; Wed, 27 Nov 2019 13:06:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888791; cv=none; d=google.com; s=arc-20160816; b=s9m6j6Q/ny4gTcYIFF+ZBpHVMhqYF7qvBap4i17iqmCCCZLjoqGy4xZPmEJviMdeYp 6YtEQAPGJpsUjRCUcK+84qe5bmVbXILrhUQmR4BnSiQ8ruo2Q58QcSbku9ApbXesp+w6 g8nlRX4j2ULmVlIHHaPqWH2x/P4xYEkx9QWsmqGWszEh1Zve0kTEvrhgBwgvQD/FGXG/ pELm6xyGWbFGizWfbT7RQtZJVasxUiunun1N36fSwWGq82ohRXrZOrSZ42jkPBWwaal7 jBtoLQ8sB4oh9XUiDRHzdOLxkJ2aHIWTGFdWihNkJ8AxFetx+UkNHtktp4177XJHVZ3q LUkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qBnP1LUtL1lPvTaQu1K5opjTBFX/oiTkx2S5tpMBj/4=; b=WOXXwPq5zWzNPW/W7K9i1nj/zJ5q9Y9G16IG81AJ96VU2KMr7zSwfRaIZDGj1asjer fBO4Q5DishSOGpxJ508nDkRtDYo5zE0aB7DhCu/RBrr7vz9N3EBDgTeHaOofyg/xAggV N9jVkSncgG3UEebSQoPlcB1H/MgI2qAwWOHaB7qOvm9q/IDuZXZXPnd4Z+2pUDSvvlsD 2Gqj64RhtfSq2wtNChsK+uO8dFdVaKrwM0CtZyt+faGrCblLo4sTny9cVpi+hOqhah2X eOr8tLuw+AszrCkHrCaKIDBLw7OZDZd7b6U2n0d+HBYRZO9WsHm01mCO32RzCZJelFQo XVOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="r3z6/sPF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si3933282ejz.245.2019.11.27.13.06.07; Wed, 27 Nov 2019 13:06:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="r3z6/sPF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731637AbfK0VDA (ORCPT + 99 others); Wed, 27 Nov 2019 16:03:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:55970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731201AbfK0VC5 (ORCPT ); Wed, 27 Nov 2019 16:02:57 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8EB921789; Wed, 27 Nov 2019 21:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888577; bh=lFZ2Su7NDncLo585KI/7HcUFWThnKbksZPXbbog348E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r3z6/sPFwFknQEWH27pSsMLNg6yXd6UJTTWRQAR2YV2IOMt07kdIQyYaiathuAg6E jwE4oML8sz/IAK4QGBRjV1uukIFjC9q88lq+HSdLrzk0kEi068JQvSW6kq8d/tQkYi FQ2qc5X29dUrcdV2S5NkshJrHF9nyq862tXFVh7k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Huazhong Tan , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 186/306] net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem Date: Wed, 27 Nov 2019 21:30:36 +0100 Message-Id: <20191127203128.863824979@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan [ Upstream commit 0d4411408a7fb9aad0645f23911d9bfdd2ce3177 ] The current driver supports handling two vector0 interrupts, reset and mailbox. When the hardware reports an interrupt of another type of interrupt source, if the driver does not process the interrupt, but enables the interrupt, the hardware will repeatedly report the unknown interrupt. Therefore, the driver enables the vector0 interrupt after clearing the known type of interrupt source. Other conditions are not enabled. Fixes: cd8c5c269b1d ("net: hns3: Fix for hclge_reset running repeatly problem") Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index b04df79f393f8..f8cc8d1f0b209 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -2574,7 +2574,7 @@ static irqreturn_t hclge_misc_irq_handle(int irq, void *data) } /* clear the source of interrupt if it is not cause by reset */ - if (event_cause != HCLGE_VECTOR0_EVENT_RST) { + if (event_cause == HCLGE_VECTOR0_EVENT_MBX) { hclge_clear_event_cause(hdev, event_cause, clearval); hclge_enable_vector(&hdev->misc_vector, true); } -- 2.20.1