All of lore.kernel.org
 help / color / mirror / Atom feed
* Use of pci_map_page in nouveau, radeon TTM.
@ 2013-10-01 10:16 Thomas Hellstrom
  2013-10-01 10:34 ` Lucas Stach
  2013-10-01 14:14 ` Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Hellstrom @ 2013-10-01 10:16 UTC (permalink / raw)
  To: Jerome Glisse, Konrad Rzeszutek Wilk; +Cc: dri-devel@lists.freedesktop.org

Jerome, Konrad

Forgive an ignorant question, but it appears like both Nouveau and 
Radeon may use pci_map_page() when populating TTMs on
pages obtained using the ordinary (not DMA pool). These pages will, if I 
understand things correctly, not be pages allocated with
DMA_ALLOC_COHERENT.

 From what I understand, at least for the corresponding dma_map_page() 
it's illegal for the CPU to access these pages without calling
dma_sync_xx_for_cpu(). And before the device is allowed to access them 
again, you need to call dma_sync_xx_for_device().
So mapping for PCI really invalidates the TTM interleaved CPU / device 
access model.

Or did I miss something here?

Thanks,
Thomas

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

end of thread, other threads:[~2013-10-03 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 10:16 Use of pci_map_page in nouveau, radeon TTM Thomas Hellstrom
2013-10-01 10:34 ` Lucas Stach
2013-10-01 11:13   ` Thomas Hellstrom
2013-10-01 11:56     ` Lucas Stach
2013-10-01 14:14 ` Konrad Rzeszutek Wilk
2013-10-03 16:19   ` Alex Ivanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.