Re: [PATCH 2/3] tmscsim: remove bogus endianness conversions

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

 



On Sat, 5 May 2007, Christoph Hellwig wrote:

> On Fri, May 04, 2007 at 10:59:40PM +0200, Guennadi Liakhovetski wrote:
> > cpu_to_le32 endianness conversions in tmscsim.c, followed by
> > arithmetic operations don't look correct. Besides, {in,out}[wl]
> > already perform the necessary conversions. Further, bus addresses
> > of request buffers are guaranteed to be (mapped) under 4G by
> > current scsi- and block-layer defaults. This could be explicitly
> > enforced by using blk_queue_bounce_limit(), which, however,
> > doesn't seem to be the common practice among SCSI drivers.
> 
> Looks good to me.  If there are structures in dma memory in the driver
> it would help to give the __le annotation to get the whole endianess
> handling completely right.

Yeah, but these variables are not like that. Actually, I don't think 
there are any variables in tmscsim that get passed to the controller over 
DMA.

Thanks
Guennadi
---
Guennadi Liakhovetski
-
To unsubscribe from this list: 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