RE: [PATCH v2] drivers/ata: add support to Freescale 3.0Gbps SATA Controller

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

 



> -----Original Message-----
> From: Alan Cox [mailto:alan@xxxxxxxxxxxxxxxxxxx] 
> Sent: Friday, October 12, 2007 9:55 PM
> To: Li Yang-r58472
> Cc: jgarzik@xxxxxxxxx; linux-ide@xxxxxxxxxxxxxxx; 
> linuxppc-dev@xxxxxxxxxx; Kalra Ashish-B00888; Li Yang-r58472
> Subject: Re: [PATCH v2] drivers/ata: add support to Freescale 
> 3.0Gbps SATA Controller
> 
> > +	cd = pp->cmdentry + tag;
> > +
> > +	memcpy(fis, &cd->sfis, 6 * 4);	/* should we use 
> memcpy_from_io() */
> 
> If cd->sfis points at memory over the PCI bus (eg mmio or 
> memory on the controller card) then you need to use 
> ioread/_io type functions. If
> cd->sfis points into host memory where the FIS is delivered 
> by DMA from
> the card you will be fine if it was allocated with an 
> _coherent allocator

Thanks for the clarification.  So the code here is ok, that we use
command descriptor from dma_alloc_coherent().  :)

- Leo
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux