Re: SATA exceptions with 2.6.20-rc5
- From: Robert Hancock <hancockr@xxxxxxx>
- Date: Sun, 21 Jan 2007 16:26:07 -0600
Björn Steinbrink wrote:
On 2007.01.21 23:08:11 +0100, Björn Steinbrink wrote:On 2007.01.21 13:58:01 -0600, Robert Han*** wrote:Björn Steinbrink wrote:I went for the "I feel lucky" route and did just add mmio reads after theAll kernels were bad using that approach. So back to square 1. :/OK guys, here's a new patch to try against 2.6.20-rc5:
Björn
Right now when switching between ADMA mode and legacy mode (i.e. when going from doing normal DMA reads/writes to doing a FLUSH CACHE) we just set the ADMA GO register bit appropriately and continue with no delay. It looks like in some cases the controller doesn't respond to this immediately, it takes some nanoseconds for the controller's status registers to reflect the change that was made. It's possible that if we were trying to issue commands during this time, the controller might not react properly. This patch adds some code to wait for the status register to change to the state we asked for before continuing.
mmio writes, posting them. Rationale being that if it is a write posting
issue, the debug patch would/could actually hide it AFAICT.
It's the "I feel lucky" route, because my whole "knowledge" about mmio
and write posting originates from the few things I read up on when you
discovered the comment about write posting in the generic ata code.
Uhm, yeah, exception occured about the time that I hit "send".
Björn
Yeah, I don't think just adding reads to flush posted writes is enough here - it seems to need more delay than that, and it also wasn't always in the idle state even before we would write the register..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: SATA exceptions with 2.6.20-rc5
- From: Robert Han***
- Re: SATA exceptions with 2.6.20-rc5
- From: Chr
- Re: SATA exceptions with 2.6.20-rc5
- From: Robert Han***
- Re: SATA exceptions with 2.6.20-rc5
- From: Jeff Garzik
- Re: SATA exceptions with 2.6.20-rc5
- From: Björn Steinbrink
- Re: SATA exceptions with 2.6.20-rc5
- From: Robert Han***
- Re: SATA exceptions with 2.6.20-rc5
- From: Björn Steinbrink
- Re: SATA exceptions with 2.6.20-rc5
- From: Björn Steinbrink
- Re: SATA exceptions with 2.6.20-rc5
- From: Robert Han***
- Re: SATA exceptions with 2.6.20-rc5
- From: Björn Steinbrink
- Re: SATA exceptions with 2.6.20-rc5
- From: Björn Steinbrink
- Re: SATA exceptions with 2.6.20-rc5
- Prev by Date: Re: SATA exceptions with 2.6.20-rc5
- Next by Date: Re: [PATCH] Undo some of the pseudo-security madness
- Previous by thread: Re: SATA exceptions with 2.6.20-rc5
- Next by thread: Re: SATA exceptions with 2.6.20-rc5
- Index(es):