Re: [PATCH] dc395x: dynamically map scatter-gather for PIO (take 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 21 Apr 2006 23:42:43 +0200 (CEST) Guennadi Liakhovetski wrote:

> On Wed, 19 Apr 2006, Randy.Dunlap wrote:
> 
> > I have a patch that seems to work for the data-in phase of the
> > aha152x (_cs) driver.  However, the data-out phase is causing
> > data corruption.  (I'm only using it on a test target, so no big
> > deal.)
> 
> Could you provide some detail? Your current patch? Maybe try to debug the 
> data corruption if it is reproducible / predictable?

I think I see the problem.  If the data-out phase terminates early
(due to some chip interrupt), the driver (datao_end) needs to set
the sg, residual, etc., fields to cause another data-out phase
at the correct buffer address, but my modifications don't quite
maintain that buffer address, residual, etc., so that datao_end
can back up to them.  I hope to have a fix for that soon.

My current (ugly, debug) patch is at
  http://www.xenotime.net/linux/patches/aha152x-sg-pio.patch 

---
~Randy
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux