]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/ipmmu-vmsa: Enable multi context support
authorMagnus Damm <damm+renesas@opensource.se>
Mon, 16 Oct 2017 12:29:46 +0000 (21:29 +0900)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 6 Nov 2017 17:29:39 +0000 (10:29 -0700)
commit98845e2736ae4c04476fa602942fb1b255a13273
treeca16476ac85e91b195ecdbf2547c3849db8515ac
parentd5378ef6a4e172405c5c5adef05fcf0b2e3b12b0
iommu/ipmmu-vmsa: Enable multi context support

Add support for up to 8 contexts. Each context is mapped to one
domain. One domain is assigned one or more slave devices. Contexts
are allocated dynamically and slave devices are grouped together
based on which IPMMU device they are connected to. This makes slave
devices tied to the same IPMMU device share the same IOVA space.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/ipmmu-vmsa.c