diff options
author | Thierry Reding <treding@nvidia.com> | 2017-03-09 20:04:56 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-04-05 18:11:44 +0200 |
commit | 347ad49d35a1c65d509e7ef5b0760e97ede41ec2 (patch) | |
tree | b78421d8a9d21a0ea6a4606eba2301be8abc1de1 /drivers/gpu/drm/tegra/drm.h | |
parent | 398cbaadecdd168fe175d559ddb1671dfa11e582 (diff) | |
download | linux-347ad49d35a1c65d509e7ef5b0760e97ede41ec2.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 5205790dd679..d168beaf13ef 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -42,6 +42,7 @@ struct tegra_drm { struct drm_device *drm; struct iommu_domain *domain; + struct mutex mm_lock; struct drm_mm mm; struct mutex clients_lock; |