From patchwork Fri Oct 19 19:15:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 149344 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3687987lji; Fri, 19 Oct 2018 12:17:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61uayDIrjNgIZJsc7oUSd5EWjz4nlbdhPpe/8t+dEvkWFJO5+1EdxfMkSMXB58kuaaCN+Qb X-Received: by 2002:a63:2c8a:: with SMTP id s132-v6mr32859532pgs.73.1539976629209; Fri, 19 Oct 2018 12:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539976629; cv=none; d=google.com; s=arc-20160816; b=OQssKMdCK5YEbFBYaIDWERJ5GRcfMRebB5Qqxz2dFzCy3U6SLwl7b8rtWWCFQ/cSuC LxjliJQUuThF1L9L8+I6dhtfpBUz8cZWLPGfMq9k9kAG82n4n09epSHYPwk1gbqnSvEs hT3shzU7vJs4gzdXtguaemYxsdWzG5xBmhSLf0V2VgIujmgmU2pm36m5TRF6gT30XL+a N1CPHCejT6y/f6O5Bdz3Db4rEBfEtZoPut1VXtRmOh8EJGU7asbI/CN4kv/YtvZOt2rX FyrARW9PiOAsMxu7wbkvSatr25BH9XlYpFHTs9INcFUPRriyY/AVMkuZ5qBmCmTPmiTE Ok1Q== 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 g4-v6si24410420plo.254.2018.10.19.12.17.08; Fri, 19 Oct 2018 12:17:09 -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 S1727827AbeJTDYa (ORCPT + 32 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 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