drm/tegra: Protect IOMMU operations by mutex
authorThierry Reding <treding@nvidia.com>
Thu, 9 Mar 2017 19:04:56 +0000 (20:04 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 5 Apr 2017 16:11:44 +0000 (18:11 +0200)
commit347ad49d35a1c65d509e7ef5b0760e97ede41ec2
treeb78421d8a9d21a0ea6a4606eba2301be8abc1de1
parent398cbaadecdd168fe175d559ddb1671dfa11e582
drm/tegra: Protect IOMMU operations by mutex

IOMMU support is currently not thread-safe, which can cause crashes,
amongst other things, under certain workloads.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/gem.c