Re: [PATCH/RFC] I/O-check interface for driver's error handling

From: Linas Vepstas <>
Date: 2005-03-03 05:22:05
On Tue, Mar 01, 2005 at 08:49:45AM -0800, Linus Torvalds was heard to remark:
> The new API is what _allows_ a driver to care. It doesn't handle DMA, but
> I think that's because nobody knows how to handle it (ie it's probably
> hw-dependent and all existign implementations would thus be
> driver-specific anyway).

We could add a call 

int pci_was_there_an_error_during_dma (struct pci_dev);

right?  And it could return true/false, right?  I can certainly 
do that today with ppc64.  I just can't tell you which dma triggered
the problem.

> And yes, CLEARLY drivers will have to do all the heavy lifting. 

well .. maybe.  On ppc64, we have one hack-ish solution for
hotplug-capable but pci-error-unaware device drivers, and that
is to hot unplug the driver, clear the pci error condition, and 
and replug the driver.  Works great for ethernet; haven't tested 

I'm getting greif from the guys over here because my hack-ish code
is hackish, and isn't arch-generic, and Paul Mackerras doesn't like it, 
which is why Benh is threatening to re-write it, and etc. ... 
which is why Seto is involved, and we're having this conversation ... 


To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Mar 2 13:31:52 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:36 EST