]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/ipmmu-vmsa: Write IMCTR twice
authorMagnus Damm <damm+renesas@opensource.se>
Mon, 16 Oct 2017 12:30:18 +0000 (21:30 +0900)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 6 Nov 2017 17:29:39 +0000 (10:29 -0700)
commitd574893aee991efa67fefa849347c49de5df8108
treea3f7280771139668021b51b0c6a18f67dfb5671a
parent1c894225bf5b1cdffac0c6ef935b61273203d7d5
iommu/ipmmu-vmsa: Write IMCTR twice

Write IMCTR both in the root device and the leaf node.

To allow access of IMCTR introduce the following function:
 - ipmmu_ctx_write_all()

While at it also rename context functions:
 - ipmmu_ctx_read() -> ipmmu_ctx_read_root()
 - ipmmu_ctx_write() -> ipmmu_ctx_write_root()

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