All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Busch <kbusch@kernel.org>
To: ragas gupta <ragasgupta@zoho.com>
Cc: linux-pci <linux-pci@vger.kernel.org>
Subject: Re: Function Level Reset notification to PCIe device driver
Date: Sat, 10 Apr 2021 00:18:39 +0900	[thread overview]
Message-ID: <20210409151839.GA32304@redsun51.ssa.fujisawa.hgst.com> (raw)
In-Reply-To: <178b6784bd7.f1a37c91132657.4038524595161012155@zoho.com>

On Fri, Apr 09, 2021 at 05:20:40PM +0530, ragas gupta wrote:
> Hello, 
>   
> This query is regarding Function level reset feature for SRIOV. 

Just FYI, FLR support is independent of SRIOV.

> As per code in Linux PCIe driver the function level reset is done by writing “1” to “reset” under sysfs interface. 
> e.g. “echo 1 > /sys/bus/pci/devices/<interface id> /reset “ 
>  
> As function level reset is not triggered via the PCIe device driver how PCIe device driver can get the notification of the function level reset(FLR)? 

Driver's wishing to be notified of the reset can implement the
pci_error_handlers .reset_prepare() and .reset_done() callbacks for the
notification.

  reply	other threads:[~2021-04-09 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <178b641aeb9.ec6e71c9132052.6218745065153370962@zoho.com>
     [not found] ` <178b67644d1.107ad1ec3132641.8033434734705028022@zoho.com>
2021-04-09 11:50   ` Function Level Reset notification to PCIe device driver ragas gupta
2021-04-09 15:18     ` Keith Busch [this message]
     [not found]   ` <178b6770c4e.111847ae9132647.4668617079131551849@zoho.com>
2021-04-09 11:51     ` Fwd: " ragas gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210409151839.GA32304@redsun51.ssa.fujisawa.hgst.com \
    --to=kbusch@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=ragasgupta@zoho.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.