]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Remove pm_runtime calls from msm_iommu.c
authorJordan Crouse <jcrouse@codeaurora.org>
Tue, 19 Feb 2019 18:48:20 +0000 (11:48 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 18 Apr 2019 17:04:09 +0000 (10:04 -0700)
commitf9ce20a137fddab27f9f891e3a5bc1711b0e3e43
tree419a127be8f1a2689ca7fd265d40e7fba5160161
parent170e782f7a18f07411986578bf6eb92e2bdfe531
drm/msm: Remove pm_runtime calls from msm_iommu.c

Currently the IOMMU code calls pm_runtime_get/put on the GPU or display
device before doing a IOMMU operation. This was because usually the
IOMMU driver didn't do power control of its own and since the hardware
used the same clocks and power as the respective multimedia device it
was a easy way to make sure that the power was available.

Now two things have changed. First, the SMMU devices can do their own power
control and more important bringing up the a6xx GPU isn't as easy as
turning on some clocks. To bring the GPU up we need the GMU which itself
needs the IOMMU so we have a chicken and egg problem.

Luckily this is easily fixed by removing the pm_runtime calls from the
functions and letting the device link to the IOMMU device handle the magic.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_iommu.c