Received: by 10.223.164.221 with SMTP id h29csp2060842wrb; Thu, 2 Nov 2017 05:22:38 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Sl6QdUlefDYRaSWmtKUb1KVtRltbJYdPhJ6SOJ6kuywZ9P0PLRJNSg9OqBI773Ho39e4qj X-Received: by 10.84.240.2 with SMTP id y2mr3031644plk.372.1509625358144; Thu, 02 Nov 2017 05:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509625358; cv=none; d=google.com; s=arc-20160816; b=We5iZzjyWNMYxa0+DIl74+K6CvKQvO2CUhOkX91T9AXybnFpgvakqCQqBjJExxOklR hetUp/zuxlX/8lPBoz3rKxFZPSJTy0oH3KkFDcgxGv4qpV1+gHvurO3YVk0mCTWcYgO7 eqLtmt1GiGxTzHh324mtDKEa+UFeRIDHIKcM1zpkEr2UR6JpKdaplRQnh3ytCwy6jRN5 GHmvz8c9OFLyOO1aDFvqPD03cNjJPuX6V3tGx/T8ZvNKRxJt+Um5kf5abfdb08G5gW// t6hcsIPOhrzCD7hDD/7JeovUII2N629T//Lp1kb4N3uOHem4+xITjviKUbL9wdhGGulf 7jkg== 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:arc-authentication-results; bh=P+YACc3AIdhgoKsQ6goXr3rZ6ub0QKR4v56S4BjxldU=; b=LIH0ERmLRDiDd/klMaAjkRnWOGw1j2GZ+L95sDZTsNDE703ZptA0GIx8BteyOSdahs Dl5XbmAqLa3KJ8VyXEzcCMme0OYMKjeJbv7S3pgWpQFyM2iAtDjaVTxNhBWm39ED8Sx1 aJGBMAUW8bbkfES5tibTcDisPZ69wiWadhtIKwXzXbBe61pmikpAlbD8bRAtGJflTL72 KwGsEIWb9HGVXdASKG+zu+a9Z67jziUtSZ/jaeAZHR0+IymrgaSk7evCFy//0YkDiIOs LsMfoOWa4w0kX5O3iLz+6pxp2BFTDusXJ4QOOKIjTHbHWOauJEzBz4iD1Ml1W3gxUNOi KalQ== 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 72si2270518pla.652.2017.11.02.05.22.12; Thu, 02 Nov 2017 05:22:38 -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 S1755155AbdKBMTG (ORCPT + 96 others); Thu, 2 Nov 2017 08:19:06 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:51476 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752377AbdKBMTE (ORCPT ); Thu, 2 Nov 2017 08:19:04 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4C3794DE3BDEB; Thu, 2 Nov 2017 20:18:50 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Thu, 2 Nov 2017 20:17:46 +0800 From: Lipeng To: CC: , , , , Subject: [PATCH V2 net-next 0/9] net: hns3: add support for reset Date: Thu, 2 Nov 2017 20:45:14 +0800 Message-ID: <1509626723-18619-1-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are 4 reset types for HNS3 PF driver, include global reset, core reset, IMP reset, PF reset.The core reset will reset all datapath of all functions except IMP, MAC and PCI interface. Global reset is equal with the core reset plus all MAC reset. IMP reset is caused by watchdog timer expiration, the same range with core reset. PF reset will reset whole physical function. This patchset adds reset support for hns3 driver and fix some related bugs. --- Change log: V1 -> V2: 1, fix some comments from Yunsheng Lin. --- Lipeng (6): net: hns3: Refactor the mapping of tqp to vport net: hns3: Refactor the initialization of command queue net: hns3: Add support for misc interrupt net: hns3: Add reset process in hclge_main net: hns3: Add timeout process in hns3_enet net: hns3: Add reset interface implementation in client qumingguang (3): net: hns3: Refactor mac_init function net: hns3: Fix a misuse to devm_free_irq net: hns3: hns3:fix a bug about statistic counter in reset process drivers/net/ethernet/hisilicon/hns3/hnae3.h | 19 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 39 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 13 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 450 ++++++++++++++++++++- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 17 + .../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 244 ++++++++++- .../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h | 2 + 7 files changed, 747 insertions(+), 37 deletions(-) -- 1.9.1 From 1582970800861303508@xxx Thu Nov 02 16:03:16 +0000 2017 X-GM-THRID: 1577992818368267790 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread