Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp867260pxb; Tue, 1 Feb 2022 12:04:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDdMf55HejN9PetEcLGdDPoba2dJucqMwh54L6+D7pmkJ3rp0klxV7CibIaxuR7jKBFKrM X-Received: by 2002:a17:907:d8d:: with SMTP id go13mr21696476ejc.440.1643745868475; Tue, 01 Feb 2022 12:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643745868; cv=none; d=google.com; s=arc-20160816; b=rTxewgtgZJb7qP660SC1gpKzhgvKYuRmv92vOg1tEVxk7PEg3B6ltVw7P0jOigHIgB XHYURKBHkOcE4ZFx0onMT24QkcwWoB2VZ9smkaE9Hnth3TRsLD48ZJiLzB7731Q9z0xa L31Llsoh1qgK8m0zldqG4BD+qTHOAde/VQn+ACtMU63VZBZz3h4WUUbhXRvRBxjBq6aJ bh6goPvl5iDl61tDyA9BHVn7pgottamuTwZBaoBxsThvfDdutME1wVBLOXIaEjbFwsck EIhB4Te2+NO55B7yBGHju3D9AJxNRtpyJuiiX0oIlARZ1oOT1oYAWoL7QOU1dPlcb4fL gF7w== 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=e3HRK3gM3/Iu4sNnpCJDk9CWDdmXO21WVpZBE2DGD7c=; b=HFFOOGIXuOBg/+MKjw4T2vOs3eG6V9AcC7CSbr+LkPQ/4atIrlMEY0Ys+JMgmG6htN GHyfpmtx72HVkXSIimO6y7sZvX/FWhURggEqhMiNlVfGo+4DxnXGNB3X0PIk6gZOS5IT sfRADb56k8UWyEA+tAJgK+rb00yEhBniMBODZPCi1Pcf8IDrKlvN4JF24P20LublvQsb MbgBENPRXsnE8qLr3AZwIhKRrpsiyjAtXE/dpoMQvx2TrqGRuV/9Gb+YzMuqipBlF8ww xZ7iN/s+s5mqei7IXrNHEBqxrKTDNH/hgmiGakmMuVnIdNCtGAvqwhXZ1xjbl6Uyndc3 pMUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cSvNyB8X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si10570195ejt.402.2022.02.01.12.03.59; Tue, 01 Feb 2022 12:04:28 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cSvNyB8X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349482AbiAaLO0 (ORCPT + 99 others); Mon, 31 Jan 2022 06:14:26 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:53778 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359087AbiAaLFy (ORCPT ); Mon, 31 Jan 2022 06:05:54 -0500 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 070F1B82A6B; Mon, 31 Jan 2022 11:05:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 383ADC340EE; Mon, 31 Jan 2022 11:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643627150; bh=iLf+aQshedKdJMZ/kjXdA49LDG7dvJiXr2Q4KVVJcKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cSvNyB8X525aWAbfONEHmyr+hbYOqk4Yr6lG1qbR2aQk3HFExbCqTX3O9hUoB5Vhu nwYKbmsPGFISa7JfrLXK29P2CITebjBslLx2O/jveQtkO5Af7p6RQk2ttBgzl731Mq IGX7InZCIDwAv6a1kdqBOIS3TSkjWH6QfgmwZK7I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yufeng Mo , Guangbin Huang , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 090/100] net: hns3: handle empty unknown interrupt for VF Date: Mon, 31 Jan 2022 11:56:51 +0100 Message-Id: <20220131105223.483458541@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105220.424085452@linuxfoundation.org> References: <20220131105220.424085452@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yufeng Mo [ Upstream commit 2f61353cd2f789a4229b6f5c1c24a40a613357bb ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- 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 6e7da1dc2e8c3..d6580e942724d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -2382,8 +2382,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.34.1