summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorShiju Jose <shiju.jose@huawei.com>2019-06-13 12:12:23 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-15 05:26:15 +0300
commite4193e24a52016d9088e796c313f6eb3c9c540e0 (patch)
tree3e158ea4f6e52b9fb87153e6587f336e3860f933 /drivers/gpio
parenta955d71df26c43337ca0ab8f9279d54715cd601f (diff)
downloadlinux-e4193e24a52016d9088e796c313f6eb3c9c540e0.tar.xz
net: hns3: process H/W errors occurred before HNS dev initialization
Presently the HNS driver enables the HNS H/W error interrupts after the dev initialization is completed. However some exceptions such as NCSI errors can occur when the network port driver is not loaded and those errors required reporting to the BMC. Therefore the firmware enabled all the HNS ras error interrupts before the driver is loaded. And in some cases, there will be some H/W errors remained unclear before reboot. Thus the HNS driver needs to process and recover those hw errors occurred before HNS driver is initialized. This patch adds processing of the HNS hw errors(RAS and MSI-X) which occurred before the driver initialization. For RAS, because they are enabled by firmware, so we can detect specific bits, then log and clear them. But for MSI-X which can not be enabled before open vector0 irq, we can't detect the specific error bits, so we just write 1 to all interrupt source registers to clear. Signed-off-by: Shiju Jose <shiju.jose@huawei.com> Signed-off-by: Weihang Li <liweihang@hisilicon.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions