iommu: msm: Refactor remote spinlock defconfig

Refactor the remote spinlock defconfig to allow it to be used with
subsystems other than GPU. This will enhance the usability of this
feature and minimize the chance of errors when enabling this feature.

CRs-fixed: 517873
Change-Id: I609cd77ece4e8d2e15e1a24d87a23be05a61b60f
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
iommu: msm: Add support for selecting remote spinlock in device tree

Certain SoCs need to aquire a remote spinlock before accessing SMMU
registers. This adds support for specifying in the device tree which
SMMUs must take the remote spinlock.

CRs-fixed: 517873
Change-Id: I28582c137d2ff4f98c982b5a12aa6fd3c9e295bc
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
iommu: msm: Refactor use of remote spinlock

The remote spinlock was originally meant to synchronize access between
GPU and CPU accessing SMMU. However, there are more use cases that
this remote spinlock serves. This change decouples the spinlock from
GPU and adds support for taking the spinlock only for SMMUs that are
specified in the device tree.

CRs-fixed: 517873
Change-Id: Ic50992d0d1a102fbd05855e09e254e627f99ec33
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: Kconfig: Enable SMMU remote spinlock for msm8610

Enable the remote spinlock in the SMMU driver. This allows
us to take the remote spinlock for individual SMMUs based
on device tree configuration.

CRs-fixed: 517873
Change-Id: I803f8bcba9701cfd1a7bf7f9917f6f20d7525966
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
dts: ARM: msm: Enable remote spinlock for LPASS SMMU on msm8610

LPASS SMMU access must be protected by remote spinlock to ensure
reliable operation of the SoC.

CRs-fixed: 517873
Change-Id: I01968f574db6e137126758f9f0aef919bb9d8e4b
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
Merge "iommu: msm: Refactor remote spinlock defconfig"
Merge "iommu: msm: Add support for selecting remote spinlock in device tree"
Merge "iommu: msm: Refactor use of remote spinlock"
Merge "msm: Kconfig: Enable SMMU remote spinlock for msm8610"
Merge "dts: ARM: msm: Enable remote spinlock for LPASS SMMU on msm8610"