Commit 585e58f
iommu/mediatek: Add iova_region structure
Add a new structure for the iova_region. Each a region will be a
independent iommu domain.
For the previous SoC, there is single iova region(0~4G). For the SoC
that need support multi-domains, there will be several regions.
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-27-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent b7875eb commit 585e58f
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| |||
901 | 910 | | |
902 | 911 | | |
903 | 912 | | |
| 913 | + | |
| 914 | + | |
904 | 915 | | |
905 | 916 | | |
906 | 917 | | |
907 | 918 | | |
908 | 919 | | |
909 | 920 | | |
910 | 921 | | |
| 922 | + | |
| 923 | + | |
911 | 924 | | |
912 | 925 | | |
913 | 926 | | |
914 | 927 | | |
915 | 928 | | |
916 | 929 | | |
917 | 930 | | |
| 931 | + | |
| 932 | + | |
918 | 933 | | |
919 | 934 | | |
920 | 935 | | |
| |||
923 | 938 | | |
924 | 939 | | |
925 | 940 | | |
| 941 | + | |
| 942 | + | |
926 | 943 | | |
927 | 944 | | |
928 | 945 | | |
929 | 946 | | |
930 | 947 | | |
931 | 948 | | |
932 | 949 | | |
| 950 | + | |
| 951 | + | |
933 | 952 | | |
934 | 953 | | |
935 | 954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments