iommu/arm-smmu-v3: limit use of 2-level stream tables
authorNate Watterson <nwatters@codeaurora.org>
Tue, 10 Jan 2017 19:47:13 +0000 (14:47 -0500)
committerWill Deacon <will.deacon@arm.com>
Thu, 26 Jan 2017 18:16:57 +0000 (18:16 +0000)
commit692c4e422dae023a5247c0c6fc3b7b89305ca974
treee6e8e9fadbb079dd5c61e9e6b9807a9e762fbfce
parent810871c57011eb3e89e6768932757f169d666cd2
iommu/arm-smmu-v3: limit use of 2-level stream tables

In the current arm-smmu-v3 driver, all smmus that support 2-level
stream tables are being forced to use them. This is suboptimal for
smmus that support fewer stream id bits than would fill in a single
second level table. This patch limits the use of 2-level tables to
smmus that both support the feature and whose first level table can
possibly contain more than a single entry.

Signed-off-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c