summaryrefslogtreecommitdiff
path: root/lib/test_blackhole_dev.c
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe@linaro.org>2020-09-18 13:18:49 +0300
committerWill Deacon <will@kernel.org>2020-09-29 01:48:06 +0300
commit3e63033675c9b1e79b14655481a8c4ecaf23821f (patch)
tree516470303273975b20f5559d8f5ccced2ea4baf3 /lib/test_blackhole_dev.c
parent3f1ce8e85ee06dbe6a8b2e037e9b35f6b32e9ab3 (diff)
downloadlinux-3e63033675c9b1e79b14655481a8c4ecaf23821f.tar.xz
iommu/arm-smmu-v3: Seize private ASID
The SMMU has a single ASID space, the union of shared and private ASID sets. This means that the SMMU driver competes with the arch allocator for ASIDs. Shared ASIDs are those of Linux processes, allocated by the arch, and contribute in broadcast TLB maintenance. Private ASIDs are allocated by the SMMU driver and used for "classic" map/unmap DMA. They require command-queue TLB invalidations. When we pin down an mm_context and get an ASID that is already in use by the SMMU, it belongs to a private context. We used to simply abort the bind, but this is unfair to users that would be unable to bind a few seemingly random processes. Try to allocate a new private ASID for the context, and make the old ASID shared. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20200918101852.582559-10-jean-philippe@linaro.org Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'lib/test_blackhole_dev.c')
0 files changed, 0 insertions, 0 deletions