Skip to content

dma: passing "attributes" to dma_map_* routines

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dma: create linux/dma-direction.hinclude/linux/dma-direction.h include/linux/dma-mapping.h+54 -162 replies
2/3dma: ia64/sn2 allow "attributes" to be used by dma_map_*arch/ia64/sn/pci/pci_dma.c include/asm-ia64/machvec.h lib/swiotlb.c+44 -210 replies
3/3dma: x86_64 allow "attributes" to be used by dma_map_*arch/x86/kernel/pci-calgary_64.c arch/x86/kernel/pci-gart_64.c arch/x86/kernel/pci-nommu_64.c +3 more+55 -381 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC/PARTIAL PATCH 0/3] dma: passing "attributes" to dma_map_* routines

The following patchset allows additional "attributes" to be passed to dma_map_*/dma_unmap_* implementations. (The reason why this is useful/necessary has been mentioned several times, most recently here:
http://marc.info/?l=linux-kernel&m=119258541412724&w=2.)

This is incomplete in that only ia64 and x86_64 are supported - the purpose is mainly to give us something specific to discuss.

The approach here is to change the dma_map_* interface so that the last argument is an u32 which encodes the direction of the dma and, optionally, other attributes. Changing the interface is a bit intrusive, but callers of dma_map_* don't need to be modified.

There are 3 patches:

[1/3] dma: create linux/dma-direction.h
[2/3] dma: ia64/sn2 allow "attributes" to be used by dma_map_* [2/3] dma: x86_64 allow "attributes" to be used by dma_map_*

Signature · 1 line
Arthur