]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/amd: Preallocate dma_ops apertures based on dma_mask
authorJoerg Roedel <jroedel@suse.de>
Tue, 22 Dec 2015 15:06:49 +0000 (16:06 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Dec 2015 16:18:54 +0000 (17:18 +0100)
commita639a8eecf2be962b5dcd38dedd8b6bd10c2354b
treee3649abc2af73a3107354cf32f076ad3bbf63162
parent7b5e25b84eba25e78bce736a5c99649f7ff0f5c2
iommu/amd: Preallocate dma_ops apertures based on dma_mask

Preallocate between 4 and 8 apertures when a device gets it
dma_mask. With more apertures we reduce the lock contention
of the domain lock significantly.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c