PCI Error Recovery API Proposal. (WAS:: [PATCH/RFC] PCI Error Recovery)

Nguyen, Tom L tom.l.nguyen at intel.com
Thu Mar 17 03:43:25 EST 2005


On Tue, Mar 15, 2005 at 04:32:20PM, Benjamin Herrenschmidt wrote:
> 
> Ok, let's propose what i think is a proper API and simple enough on
the
> driver side, ...
> That
> should cover all the needs we discussed so far:
> 
> I think we need a callback in pci_driver, as I explained all along,
with
> a very simple semantic:
> 
>    int (*error_handler)(struct pci_dev *dev, int message);

This API does not support PCI Express AER precise errors. I prefer to
have param int message being replaced by union error_src structure as
below to include PCI Express AER precise errors.

union error_src {
	int message;	 		/* This for PCI Error */  
	struct {				/* This for PCI Express
Precise Error */
		int type;   
		unsigned int flags;  
		unsigned int status; 
		struct header_log_regs *log; 
	}pcie_aer;
};

Please let me know what you think?

Thanks,
Long



More information about the Linuxppc64-dev mailing list