OSDN Git Service

arm64: dma-mapping: Attach IOMMUs as groups
authorMitchel Humpherys <mitchelh@codeaurora.org>
Fri, 27 May 2016 21:58:31 +0000 (14:58 -0700)
committerKyle Yan <kyan@codeaurora.org>
Thu, 2 Jun 2016 23:12:47 +0000 (16:12 -0700)
commit6a70911936b598b3d79c4a295c9b89ec4474d4df
tree90acec451a538d46d39284ec8e991fc42c473428
parent78f42e35787024a0327a8fb7d7d5043d9e5a5387
arm64: dma-mapping: Attach IOMMUs as groups

Some devices behind IOMMUs might end up in IOMMU groups due to DMA
aliasing.  The iommu_attach_device API expects a single device in a
group all by its lonesome, so it fails when a device is passed in that's
part of a group.  Use iommu_attach_group to accommodate these types of
devices.

CRs-Fixed: 1023180
Change-Id: I9601efd300c7f428c4576e6ecf6d31791d0b47bd
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
arch/arm64/mm/dma-mapping.c