[PATCH v2] iommu/arm-smmu-v3: limit use of 2-level stream tables
Will Deacon
will.deacon at arm.com
Thu Jul 14 06:31:07 PDT 2016
On Tue, Jul 12, 2016 at 02:19:20PM -0400, Nate Watterson wrote:
> 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.
Just to be clear, what exactly are you seeing as being suboptimal here?
Is it the memory wastage from overallocating the L2 table, or something
more?
if it's just the memory allocation, I'd sooner restrict the span field
in the L1 desc.
Will
More information about the linux-arm-kernel
mailing list