From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51055C43441 for ; Sat, 10 Nov 2018 00:47:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0851120855 for ; Sat, 10 Nov 2018 00:47:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0851120855 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=davemloft.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728581AbeKJKa5 (ORCPT ); Sat, 10 Nov 2018 05:30:57 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:34350 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727210AbeKJKa5 (ORCPT ); Sat, 10 Nov 2018 05:30:57 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B29A714C0CB67; Fri, 9 Nov 2018 16:47:51 -0800 (PST) Date: Fri, 09 Nov 2018 16:47:51 -0800 (PST) Message-Id: <20181109.164751.191496935220130040.davem@davemloft.net> To: tanhuazhong@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, salil.mehta@huawei.com, yisen.zhuang@huawei.com, linuxarm@huawei.com Subject: Re: [Patch net-next 00/11] add code optimization for VF reset and some new reset feature From: David Miller In-Reply-To: <1541772476-41478-1-git-send-email-tanhuazhong@huawei.com> References: <1541772476-41478-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 09 Nov 2018 16:47:52 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan Date: Fri, 9 Nov 2018 22:07:45 +0800 > Currently hardware supports below reset: > 1. VF reset: triggered by sending cmd to IMP(Integrated Management > Processor). Only reset specific VF function and do not affect > other PF or VF. > 2. PF reset: triggered by sending cmd to IMP. Only reset specific PF > and it's VF. > 3. PF FLR: triggered by PCIe subsystem. Only reset specific PF and > it's VF. > 4. VF FLR: triggered by PCIe subsystem. Only reset specific VF function > and do not affect other PF or VF. > 5. Core reset: triggered by writing to register. Reset most hardware > unit, such as SSU, which affects all the PF and VF. > 6. Global reset: triggered by writing to register. Reset all hardware > unit, which affects all the PF and VF. > 7. IMP reset: triggered by IMU(Intelligent Management Unit) when > IMP is not longer feeding IMU's watchdog. IMU will reload the IMP > firmware and IMP will perform global reset after firmware reloading, > which affects all the PF and VF. > > Current driver only support PF/VF reset, incomplete core and global > reset(lacking the vf reset handling). So this patchset adds complete > reset support in hns3 driver. > > Also, this patchset contains some optimization related to reset. Series applied, thank you.