iommu/arm-smmu-v3: Separate s/w and h/w views of prod and cons indexes
authorWill Deacon <will@kernel.org>
Tue, 2 Jul 2019 16:12:24 +0000 (17:12 +0100)
committerWill Deacon <will@kernel.org>
Mon, 29 Jul 2019 16:30:20 +0000 (17:30 +0100)
commit2a8868f16e6b1987cf43f1f46d2a12b7b6ddcd88
tree131fd8d1d14203fcadae158c9481441709c196a8
parent3951c41af4a65ba418e6b1b973d398552bedb84f
iommu/arm-smmu-v3: Separate s/w and h/w views of prod and cons indexes

In preparation for rewriting the command queue insertion code to use a
new algorithm, separate the software and hardware views of the prod and
cons indexes so that manipulating the software state doesn't
automatically update the hardware state at the same time.

No functional change.

Tested-by: Ganapatrao Kulkarni <gkulkarni@marvell.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c