iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48
authorMagnus Damm <damm+renesas@opensource.se>
Thu, 14 Jun 2018 10:48:21 +0000 (12:48 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 6 Jul 2018 12:12:27 +0000 (14:12 +0200)
commitddbbddd76a3fcec12fe59bb1b8b855842e1e7fe8
tree78b01abb2ad10ce0b9b29b5ef0a4ee786d252bb4
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48

Bump up the maximum numbers of micro-TLBS to 48.

Each IPMMU device instance get micro-TLB assignment via
the "iommus" property in DT. Older SoCs tend to use a
maximum number of 32 micro-TLBs per IPMMU instance however
newer SoCs such as r8a7796 make use of up to 48 micro-TLBs.

At this point no SoC specific handling is done to validate
the maximum number of micro-TLBs, and because of that the
DT information is assumed to be within correct range for
each particular SoC.

If needed in the future SoC specific feature flags can be
added to handle the maximum number of micro-TLBs without
requiring DT changes, however at this point this does not
seem necessary.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c