]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Limit command submission when no IOMMU
authorRob Clark <robdclark@chromium.org>
Mon, 2 May 2022 17:29:08 +0000 (10:29 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 7 May 2022 16:56:42 +0000 (09:56 -0700)
commit2bc64153f290c0f154bf5fe50ad935e1e4c5ac3c
treeff5741087e29a410444142b2ba0d0c75687c6dfa
parent0144e72e31add338ceadd102c1d5bb9f3aaba480
drm/msm: Limit command submission when no IOMMU

Running the GPU without an IOMMU is not really a supported (or sane)
configuration.  Yet it can be useful during SoC bringup (ie. if the
iommu driver doesn't work yet).

Lets limit it to users who already have /dev/mem access, to avoid the
chance that a user accidentially configures kernel without IOMMU
support.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220502172908.3569799-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gem_submit.c