All of lore.kernel.org
 help / color / mirror / Atom feed
* DMA/PCIe driver: pci_map_sg not merging chunks in the scatterlist?
@ 2016-03-17 22:09 Evan Lavelle
  0 siblings, 0 replies; only message in thread
From: Evan Lavelle @ 2016-03-17 22:09 UTC (permalink / raw)
  To: LKML

Everything I've read makes me think that pci_map_sg will merge 
consecutive physical pages into one scatterlist entry, if possible.

However, this isn't happening on a driver I'm currently writing. The 
returned scatterlist contains one entry per page, with the physical 
addresses incrementing by 4K per page.

Is this expected behaviour, or do I have to do something to enable 
merging? This wouldn't be a major problem, except that the PCIe card I'm 
working on only has enough local storage for about 300 scatterlist 
entries, which means that DMA ops are limited to a little over 1Mbyte at 
a time, which isn't much use.

I'm on x86_64, RHEL6.7, IOMMU not enabled, and I don't need to support 
anything prior to 2.6.32. The PCIe card has 32-bit addressing. uname shows:

2.6.32-431.el6.x86_64 #1 SMP x86_64 x86_64 x86_64

Thanks.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-17 22:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 22:09 DMA/PCIe driver: pci_map_sg not merging chunks in the scatterlist? Evan Lavelle

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.