public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* How to directly pass a dma physical address and length from SCSI upper layer to LLD without mapping the dma memory to kernel pages
@ 2008-06-09 20:52 Pan, Weimin
  2008-06-09 21:06 ` James Bottomley
  0 siblings, 1 reply; 4+ messages in thread
From: Pan, Weimin @ 2008-06-09 20:52 UTC (permalink / raw)
  To: linux-scsi@vger.kernel.org

SCSI upper layer can pass a scatterlist to middle layer and LLD. Normally the page_link, length, and offset is set in the scatterlist. LLD will convert to dma_address from pages by itself. That means the dma physical memory has to map to kernel memory space before it can be passed to LLD for data transfer. If I have a large dma memroy and it doesn't need to be touched by kernel or user mode Apps, it is a performance penalty to force to do that.

Is there a way to directly pass a dma physical address from upper layer to LLD (like use dma_address in a scatterlist)?
I looked at a couple of LLD drivers and none of them handle this kind of situation.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-09 21:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 20:52 How to directly pass a dma physical address and length from SCSI upper layer to LLD without mapping the dma memory to kernel pages Pan, Weimin
2008-06-09 21:06 ` James Bottomley
     [not found]   ` <6B24EEDBA38D764293B27C04FE414CC64E40604E33@G1W0491.americas.hpqcorp.net>
2008-06-09 21:43     ` James Bottomley
2008-06-09 21:53       ` Pan, Weimin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox