All of lore.kernel.org
 help / color / mirror / Atom feed
* Function Level Reset notification to PCIe device driver
       [not found] ` <178b67644d1.107ad1ec3132641.8033434734705028022@zoho.com>
@ 2021-04-09 11:50   ` ragas gupta
  2021-04-09 15:18     ` Keith Busch
       [not found]   ` <178b6770c4e.111847ae9132647.4668617079131551849@zoho.com>
  1 sibling, 1 reply; 3+ messages in thread
From: ragas gupta @ 2021-04-09 11:50 UTC (permalink / raw)
  To: linux-pci

Hello, 
  
This query is regarding Function level reset feature for 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)? 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Fwd: Function Level Reset notification to PCIe device driver
       [not found]   ` <178b6770c4e.111847ae9132647.4668617079131551849@zoho.com>
@ 2021-04-09 11:51     ` ragas gupta
  0 siblings, 0 replies; 3+ messages in thread
From: ragas gupta @ 2021-04-09 11:51 UTC (permalink / raw)
  To: linux-kernel

 Hello, 
  
 This query is regarding Function level reset feature for 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)? 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Function Level Reset notification to PCIe device driver
  2021-04-09 11:50   ` Function Level Reset notification to PCIe device driver ragas gupta
@ 2021-04-09 15:18     ` Keith Busch
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Busch @ 2021-04-09 15:18 UTC (permalink / raw)
  To: ragas gupta; +Cc: linux-pci

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-09 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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
     [not found]   ` <178b6770c4e.111847ae9132647.4668617079131551849@zoho.com>
2021-04-09 11:51     ` Fwd: " ragas gupta

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.