Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4006976pxb; Tue, 25 Jan 2022 01:12:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9xdux7mBtdDujAq0p6RPlJ0IndjAG4sM9N1WL0FA6vBIru19J7oxAt/uPbNSPHSAtTx+D X-Received: by 2002:a63:2c51:: with SMTP id s78mr7608185pgs.363.1643101937231; Tue, 25 Jan 2022 01:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101937; cv=none; d=google.com; s=arc-20160816; b=p5tTHZRIUKudGlW2CLyJTdhwm8ujBsgVLMvtTmg+HhMExOhL9UnHMhbdL9q5xcXDJB d83MTKqPjpX1e5yA5ZNNh2Q3Wt8+Br2qSmg+ItZDq+QeauEIpbh70MBUojyHf54nQKr3 0XOQDS94pc5tc8lA6Nk+vESfnpxq3j1Lw/wbEkW3HwMOavJc71hjSvi6VROThiErKg+j WEEZVEsNPGmIrT24tKrCaCTtVBOoyIx7EaORhQR6uUpDutzl8CqSVAKJx7JiqWr/rLrj D6YkDksxw+r1sV/w+1zmxLaJI1c4ZYmExLAc47HgBzDvmdYbcSABGQuMvBgZiDcLmiNA 6hDA== 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 :message-id:date:subject:cc:to:from; bh=xZQlmD0+Y/UFt3Lpsy03hvXBrB5C22vIFu91xe014X8=; b=tePqVGtlkFuSh9kkT1U22OT0+lTi1pnYkqPjNXq6VK/nYhpk0cGyS7uFXY78xl5+8w fRTilMeSXYFMws3X34tnvhG7PUn43ju8lnrfWTQ+sR/ZHOxAseLE3zTCvK2uWZpLVyjM AWiMRAhclz3a2JVGammf5pab9bLw80aYZp4See3lZfoaQd/ZsI7FnQQX8rbI1LuwZXek kaBYmA0z7HaSFqL3AykBKDuxfVoSuyvzdfjo1RbQ2WYKy+LFx6OP4uXJjgeMq5uP8hGW 4GHNOWkcjDnDXKimfs2T9nWezHDTKXEsszLjeJ3izKlMgdya01jQko7loxRslS1Vuvgy qmsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si17104621pgu.398.2022.01.25.01.11.59; Tue, 25 Jan 2022 01:12:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442170AbiAYHKv (ORCPT + 99 others); Tue, 25 Jan 2022 02:10:51 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:17805 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377695AbiAYHIY (ORCPT ); Tue, 25 Jan 2022 02:08:24 -0500 Received: from kwepemi500003.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4JjdFf65y5z9sS2; Tue, 25 Jan 2022 15:07:02 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by kwepemi500003.china.huawei.com (7.221.188.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 25 Jan 2022 15:08:21 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 25 Jan 2022 15:08:21 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [PATCH net] net: hns3: handle empty unknown interrupt for VF Date: Tue, 25 Jan 2022 15:03:12 +0800 Message-ID: <20220125070312.53945-1-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600016.china.huawei.com (7.193.23.20) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yufeng Mo Since some interrupt states may be cleared by hardware, the driver may receive an empty interrupt. Currently, the VF driver directly disables the vector0 interrupt in this case. As a result, the VF is unavailable. Therefore, the vector0 interrupt should be enabled in this case. Fixes: b90fcc5bd904 ("net: hns3: add reset handling for VF when doing Core/Global/IMP reset") Signed-off-by: Yufeng Mo Signed-off-by: Guangbin Huang --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 7df87610ad96..21442a9bb996 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -2043,8 +2043,7 @@ static irqreturn_t hclgevf_misc_irq_handle(int irq, void *data) break; } - if (event_cause != HCLGEVF_VECTOR0_EVENT_OTHER) - hclgevf_enable_vector(&hdev->misc_vector, true); + hclgevf_enable_vector(&hdev->misc_vector, true); return IRQ_HANDLED; } -- 2.33.0