]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Add a flag for iova 34bits case
authorYong Wu <yong.wu@mediatek.com>
Mon, 11 Jan 2021 11:18:55 +0000 (19:18 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Feb 2021 11:31:17 +0000 (11:31 +0000)
commita418f1bc3024294bf543aa9bd6a3ee32644f6d2b
tree3512b2d4995b09f923eb554e6dc6370fb412f405
parent3b8256d45cefec4cb2ffeca03e1fd7320588fcc3
iommu/mediatek: Add a flag for iova 34bits case

Add a HW flag for if the HW support 34bit IOVA. the previous SoC
still use 32bit. normally the lvl1 pgtable size is 16KB when ias == 32.
if ias == 34, lvl1 pgtable size is 16KB * 4. The purpose of this patch
is to save 16KB*3 continuous memory for the previous SoC.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-15-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/mtk_iommu.c