Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3538649imm; Fri, 19 Oct 2018 12:17:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV63EtLu/p6CP3OgyEll/Mi8Rirp2XhfvUtickiZyqbXW87LsNmypq21zfXyuoe79tXyP/q84 X-Received: by 2002:a63:d502:: with SMTP id c2-v6mr33796812pgg.324.1539976664868; Fri, 19 Oct 2018 12:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539976664; cv=none; d=google.com; s=arc-20160816; b=jvJUKXVVSLrOF4ZXgul65qQj3b/wNNAK0jXmTLxBiFSvaY7aw8jd+UzxZOV0eTxxPS yZM1FVfQ9QYKda8HplDMZ8mH3+WnSGpqWrSMoi0uKhdstQv8At3GmWv8Usvc54Lq27XR XQiSKyfyKQ+ULafoVIuGV8gfimNvMzraA0znU8s/mbUYFQ+2pyC0bqnKJ54Yy5AaMyC1 Z8qiWe0E5Pym/jS9mgBxi62Zovxl3qcAxHgew3ijq7I0n1ZrdOaOE2K2ptDATOUz+d8E xRRqcYpdXPu/faaTje8GPC+bXwgvVg7cMQgS8MYi5XkK6QJixpz2D4koHNFAWDKefCFs jnQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bij76hxsr4EghQJGQielKf2S1XdEBgFiEk3gzIH5spI=; b=rzEyMpUtE0Y1Vy76hcx+hHi/KN2TNaGrgGNsccVS6gJDoQIp2ZNt28BTSZneVnk+AO aGLwWDTYrqI/0VJwJ7z7TgD4UMY4oq3HmpjLb+aAWobgf93qBTJJLABAgEU5pvB5xxT8 m9WK30KzsyPIQUKYlVpg/zsZ1HgIrQXenLEcQWUl6vadse6US7sbxalhQxV55LmvevZj 94ks4LeSuoBHM7XKsgGSF4cu0rcbK41DnQpnjD+kvErbKjtJ3qH+geHXNYLbT97dwGEW QVNyvzKRHpLAk0MPPGaXsTacsybFrZjsTEqhbq273fvCQv95Mv1wWvfwc5ikp+4rg1zt lMFA== 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 g7-v6si24087839plb.167.2018.10.19.12.17.28; Fri, 19 Oct 2018 12:17: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 S1727819AbeJTDYa (ORCPT + 99 others); Fri, 19 Oct 2018 23:24:30 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14095 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727682AbeJTDY3 (ORCPT ); Fri, 19 Oct 2018 23:24:29 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6093F350689D1; Sat, 20 Oct 2018 03:17:02 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Sat, 20 Oct 2018 03:16:55 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH net-next 0/7] Adds support of RAS Error Handling in HNS3 Driver Date: Fri, 19 Oct 2018 20:15:25 +0100 Message-ID: <20181019191532.10088-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set adds support related to RAS Error handling to the HNS3 Ethernet PF Driver. Set of errors occurred in the HNS3 hardware are reported to the driver through the PCIe AER interface. The received error information is then used to classify the received errors and then decide the appropriate receovery action depending on the type of error. Shiju Jose (7): net: hns3: Add PCIe AER callback error_detected net: hns3: Add PCIe AER error recovery net: hns3: Add support to enable and disable hw errors net: hns3: Add enable and process common ecc errors net: hns3: Add enable and process hw errors from IGU, EGU and NCSI net: hns3: Add enable and process hw errors from PPP net: hns3: Add enable and process hw errors of TM scheduler drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 50 +- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile | 2 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 22 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 1088 ++++++++++++++++++++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h | 83 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 33 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 3 +- 8 files changed, 1276 insertions(+), 8 deletions(-) create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h -- 2.7.4