Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1806509ybg; Sat, 19 Oct 2019 02:55:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1BcJWXwTF4j7CktrDXyoMCkw5O5n2ICvRQfeXdWNB6Nt70U9Efh5v+ZMa0wh+gzhyrGa6 X-Received: by 2002:a50:ee81:: with SMTP id f1mr14344542edr.243.1571478944766; Sat, 19 Oct 2019 02:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571478944; cv=none; d=google.com; s=arc-20160816; b=FgwysKHrncIqv7cmiO8isxSRiERyVaC8X19aZIOCOeBjOVPLzXhiYjyNBYACTyFOsy zhA10hx0a/rpU5Ffixf5ZXfzhlc/VjNO6sRZWlTDIiFg6SQ1UPXWQbprvQS84OC+m2ic j1mbtsdEgSRCOMRrZ8mWKh1pOUhGQFioDiOEMaiTd1/fGIsMquvyA9RWjE0VYkv98/bC eWGKogUrgBAfJPme+wbIZmseagPYksXrLXDEPM+OIAAcG10KvJxPjkK3NDxk3opFperG cW7HWtP9i9upuV+65/JGAsVSwm9LHNEVP8QHpKb/EKahFqy8DZh93K19Fd8sIq+BNlMT S4ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=x9GySMMK52dBkERBKKXf/cxhLxTIvsQmycnIPQQHDG4=; b=xOABgGK8Q5wMKJ1DsQGy4ALIlNcUUax09oAOimu4wfqOy30GVIPRHS7CYlFzwi0z33 YNNGUNH/vXKotMhXLD9IpfKFNLaDJFIB7sz8I9LesKdb8fqyXPVq9qrvdAtgN0M6tVA5 bh4RLRRV6eSi31qZlgH0SU2YV+SurWMDaaDG8RwL0PXq6QF460beQAjdFm0nrlVmJ/OE mdDVvPb4R+5fST5oQzMOuksziCrWErgV6314BznYmAAQmEjyid0/cajds3xw4N3OlPWz RgSobnfnzzDyPUSQihzD4j3ztu+B9BQqCx4xdoEJ76e8EFG5nUI/yTE5vV3dFKFkic06 gyRg== ARC-Authentication-Results: i=1; mx.google.com; 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 f33si5840912edb.281.2019.10.19.02.55.21; Sat, 19 Oct 2019 02:55:44 -0700 (PDT) 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; 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 S1728215AbfJSIEK (ORCPT + 99 others); Sat, 19 Oct 2019 04:04:10 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33734 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727306AbfJSID1 (ORCPT ); Sat, 19 Oct 2019 04:03:27 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CACA915AB3B07595D382; Sat, 19 Oct 2019 16:03:25 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Sat, 19 Oct 2019 16:03:17 +0800 From: Huazhong Tan To: CC: , , , , , , Jian Shen , "Huazhong Tan" Subject: [PATCH net-next 8/8] net: hns3: log and clear hardware error after reset complete Date: Sat, 19 Oct 2019 16:03:56 +0800 Message-ID: <1571472236-17401-9-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571472236-17401-1-git-send-email-tanhuazhong@huawei.com> References: <1571472236-17401-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen 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 --- 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 ffdb8ce..95c3897 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -9781,6 +9781,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.7.4