Re: [PATCH] sata_nv: don't use legacy DMA in ADMA mode (v2)

2007-11-23 Thread Tejun Heo
Tejun Heo wrote: > Robert Hancock wrote: >> We need to run any DMA command with result taskfile requested in ADMA mode >> when the port is in ADMA mode, otherwise it may try to use the legacy DMA >> engine >> in ADMA mode which is not allowed. Enforce this with BUG_ON() since data >> corruption

Re: [PATCH] sata_nv: don't use legacy DMA in ADMA mode (v2)

2007-11-23 Thread Tejun Heo
Robert Hancock wrote: > We need to run any DMA command with result taskfile requested in ADMA mode > when the port is in ADMA mode, otherwise it may try to use the legacy DMA > engine > in ADMA mode which is not allowed. Enforce this with BUG_ON() since data > corruption could potentially result

Re: [PATCH] sata_nv: don't use legacy DMA in ADMA mode (v2)

2007-11-23 Thread Tejun Heo
Robert Hancock wrote: We need to run any DMA command with result taskfile requested in ADMA mode when the port is in ADMA mode, otherwise it may try to use the legacy DMA engine in ADMA mode which is not allowed. Enforce this with BUG_ON() since data corruption could potentially result if

Re: [PATCH] sata_nv: don't use legacy DMA in ADMA mode (v2)

2007-11-23 Thread Tejun Heo
Tejun Heo wrote: Robert Hancock wrote: We need to run any DMA command with result taskfile requested in ADMA mode when the port is in ADMA mode, otherwise it may try to use the legacy DMA engine in ADMA mode which is not allowed. Enforce this with BUG_ON() since data corruption could

[PATCH] sata_nv: don't use legacy DMA in ADMA mode (v2)

2007-11-22 Thread Robert Hancock
We need to run any DMA command with result taskfile requested in ADMA mode when the port is in ADMA mode, otherwise it may try to use the legacy DMA engine in ADMA mode which is not allowed. Enforce this with BUG_ON() since data corruption could potentially result if this happened. Also WARN_ON()

[PATCH] sata_nv: don't use legacy DMA in ADMA mode (v2)

2007-11-22 Thread Robert Hancock
We need to run any DMA command with result taskfile requested in ADMA mode when the port is in ADMA mode, otherwise it may try to use the legacy DMA engine in ADMA mode which is not allowed. Enforce this with BUG_ON() since data corruption could potentially result if this happened. Also WARN_ON()