Will Deacon a44a9791e7 iommu/arm-smmu: use mutex instead of spinlock for locking page tables
When creating IO mappings, we lazily allocate our page tables using the
standard, non-atomic allocator functions. This presents us with a
problem, since our page tables are protected with a spinlock.

This patch reworks the smmu_domain lock to use a mutex instead of a
spinlock. iova_to_phys is then reworked so that it only reads the page
tables, and can run in a lockless fashion, leaving the mutex to guard
against concurrent mapping threads.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2013-12-06 16:44:13 +00:00
..
2013-11-27 01:03:27 +01:00
2013-11-27 13:55:16 -05:00
2013-11-19 15:53:02 -05:00
2013-11-27 01:03:43 +01:00
2013-11-28 09:57:46 -08:00
2013-11-27 01:03:27 +01:00
2013-11-19 01:06:28 +01:00
2013-11-15 14:05:15 -08:00
2013-11-18 15:35:09 -08:00