Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13473919ybl; Sun, 29 Dec 2019 12:46:20 -0800 (PST) X-Google-Smtp-Source: APXvYqz0bQ0ilrbKuVwiTgIq2mGlJ0rNQ+p2PjcyjLUzhW426HliDFAIoZKnh+BCDswhmR7fNwjK X-Received: by 2002:a05:6830:2111:: with SMTP id i17mr65869824otc.24.1577652380858; Sun, 29 Dec 2019 12:46:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652380; cv=none; d=google.com; s=arc-20160816; b=Xt9V8I4trnXrZutKnRPikUQasKCwIRtojA1sNNbB0kqHNpamw5Y5xtDR2ov9euwEVJ chgF/+LaiUE57G9tBssWsqrFoNU7Axm1DaJ26F7BCdPFF6eni3HTHHOieKBNtDfBiVud gSoxPfnFBSjuOc2uBeNKPXYYEday7ADjc/ittxaEZqVAaLdotja+ijCtrwYpPfhYCmsg xcZusK1BSTuTlsPkOfYtfiTd1O/klDLczwZv1un2upibyQN8pnhpQQ49dJFXr6hI2TmJ fxyhqVsH+bKfw9tsM8AE1nHBgxU2rSesGDfV1vk4UUCLx3WGHcdbMJwr1XeukECUrpi1 BlSQ== 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=E/kgnBc07upXt9QQ64snYlIZzwdDIQ/OLNt162GdIIY=; b=pX+/tKzQJvhSFQDaoJFs1cB8JwlZW4RXA/AKjqze1RK6uK6kj32c015/QXu1T8QS7R WAMUeaHAph+Usm8IWWk70lw0b2kYOZMyJJD3Eeo+XC+pyPmqi2WPHZI4V6FqOTrzu8Pw Iu2uVDAu7uFTVhOD3xBQ8K02/bfsabJefDInn41In1ZHpucsZLjJrJSkX8JUZwqfoyES vdK5MhgfmvshXzuv3jct+uYSzZ3pincntifgojcdH29KPnQ85ocIK6EfjWrI7IVnKXYH euQ4ePPzPYHhJ/72jJUBbfEhJvVQbB6+CcGp7OQSk1jbO/HPaIOEjXmoIAIECykLf5Zi kSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GWIfByTZ; 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 q124si18630104oig.228.2019.12.29.12.46.10; Sun, 29 Dec 2019 12:46:20 -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=GWIfByTZ; 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 S1731386AbfL2RsD (ORCPT + 99 others); Sun, 29 Dec 2019 12:48:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:58946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731368AbfL2Rr6 (ORCPT ); Sun, 29 Dec 2019 12:47:58 -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 24CCE206A4; Sun, 29 Dec 2019 17:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641677; bh=ot7C7BgLlTHzgcxd/QU4FIRu3ygxaVMu4VTKToAEDkc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GWIfByTZFPtQhYq45TWBPiCGwPw4mdW3P4662Cs0FCu/WTztY+uzbClkFxAVhJK1q Mm+piBIClHApZwtgAKXFZTp+7mcn80eI02rFL3oMgKDdlnCv2VQFMJOlCuJwGQzbxS WcBWK/4SsouZNVV+0WQPubSAtaXehrl1x1V4Ge18= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian Shen , Huazhong Tan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 165/434] net: hns3: log and clear hardware error after reset complete Date: Sun, 29 Dec 2019 18:23:38 +0100 Message-Id: <20191229172712.760614935@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@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: Jian Shen [ Upstream commit 4fdd0bca6152aa201898454e63cbb255a18ae6e9 ] When device is resetting, the CMDQ service may be stopped until reset completed. If a new RAS error occurs at this moment, it will no be able to clear the RAS source. This patch fixes it by clear the RAS source after reset complete. Signed-off-by: Jian Shen 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index c052bb33b3d3..162881005a6d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -9443,6 +9443,9 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev) return ret; } + /* Log and clear the hw errors those already occurred */ + hclge_handle_all_hns_hw_errors(ae_dev); + /* Re-enable the hw error interrupts because * the interrupts get disabled on global reset. */ -- 2.20.1