On Sun, 16 Mar 2008, Alan Cox wrote:Well, I admittedly haven't been involved in IDE in about a decade, so yeah, maybe it's simply no longer true. That said, if the second bisection was accurate (which is admittedly a rasonably big "if"), it really looks like it would be related to the fact that we used to empty the data buffer before handling errors for REQ_TYPE_ATA_CMD commands. .. but as you noticed, it's almost never wrong to drain (the only chipset it's marked for is some broken pdc202xx one), and it definitely *is* wrong not to drain. Also, one reason you'd not necessarily even see this is that with DMA, this is a non-issue (since the hardware DMA engine will be doing all the draining), so in order to ever see this you have to still use PIO _and_ you have to see IDE command errors in the first place _and_ you have to have a device that actually keeps DRQ enabled even at an error. All of which are hopefully fairly rare by now (and getting rarer, at last for the PIO one). I also wouldn't be entirely surprised if the DRQ behavior may even be command-specific, with the regular data path for read/write quite possibly being different from the special commands that go through some internal drive firmware logic paths. So I could well imagine (for example) that when a drive raises an IO error due to a read or write fault, the DRQ line will be cleared by the drive, but that special commands might have some firmware-directed separate FIFO that needs draining. Linus --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | -mm merge plans for 2.6.23 |
| James Bottomley | [Ksummit-2008-discuss] Fixing the Kernel Janitors project |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
| Tantilov, Emil S | WARNING: at include/net/sock.h:417 udp_lib_unhash |
