linux/drivers/memory
Yong Wu 8d2c749e52 iommu/mediatek: Support master use iova over 32bit
After extending v7s, our pagetable already support iova reach
16GB(34bit). the master got the iova via dma_alloc_attrs may reach
34bits, but its HW register still is 32bit. then how to set the
bit32/bit33 iova? this depend on a SMI larb setting(bank_sel).

we separate whole 16GB iova to four banks:
bank: 0: 0~4G; 1: 4~8G; 2: 8-12G; 3: 12-16G;
The bank number is (iova >> 32).

We will preassign which bank the larbs belong to. currently we don't
have a interface for master to adjust its bank number.

Each a bank is a iova_region which is a independent iommu-domain.
the iova range for each iommu-domain can't cross 4G.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org> #for memory part
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-31-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
2021-02-01 11:31:19 +00:00
..
samsung ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
tegra memory: tegra30: Support interconnect framework 2020-12-05 14:54:36 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
atmel-ebi.c memory: atmel-ebi: switch to SPDX license identifiers 2019-11-07 22:33:10 +01:00
atmel-sdramc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 340 2019-06-05 17:37:07 +02:00
brcmstb_dpfe.c memory: brcmstb_dpfe: Simplify with dev_err_probe() 2020-09-02 17:22:31 +02:00
bt1-l2-ctl.c memory: bt1-l2-ctl: Add blank lines after declarations 2020-07-27 11:13:33 +02:00
da8xx-ddrctl.c memory: da8xx-ddrctl: Remove unused 'node' variable 2020-07-24 16:18:32 +02:00
emif-asm-offsets.c memory: emif-asm-offsets: Add GPLv2 SPDX license header 2020-07-24 16:18:32 +02:00
emif.c memory: emif: Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-20 18:59:19 +02:00
emif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
fsl_ifc.c memory: fsl_ifc: Fix whitespace issues 2020-07-24 16:18:32 +02:00
fsl-corenet-cf.c memory: fsl-corenet-cf: Fix handling of platform_get_irq() error 2020-09-02 17:32:02 +02:00
jedec_ddr_data.c ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
jedec_ddr.h memory: Extend of_memory with LPDDR3 support 2019-10-01 20:28:38 +02:00
jz4780-nemc.c memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe() 2020-12-05 14:57:52 +01:00
Kconfig memory: ti-emif-sram: only build for ARMv7 2020-12-05 14:57:17 +01:00
Makefile memory: brcmstb_dpfe: add separate entry for compile test 2020-08-17 20:44:00 +02:00
mtk-smi.c iommu/mediatek: Support master use iova over 32bit 2021-02-01 11:31:19 +00:00
mvebu-devbus.c memory: mvebu-devbus: Align with open parenthesis 2020-07-27 11:13:33 +02:00
of_memory.c memory: of: Correct kerneldoc 2020-07-27 11:13:33 +02:00
of_memory.h memory: of: Remove unneeded extern from function declarations 2020-07-24 16:18:32 +02:00
omap-gpmc.c ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
pl172.c memory: pl172: Enclose macro argument usage in parenthesis 2020-07-27 11:13:33 +02:00
pl353-smc.c memory: pl353: Add driver for arm pl353 static memory controller 2018-12-13 16:07:04 +01:00
renesas-rpc-if.c memory: renesas-rpc-if: Make rpcif_enable/disable_rpm() as static inline 2020-11-28 12:37:18 +01:00
stm32-fmc2-ebi.c memory: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver 2020-07-07 20:58:17 +02:00
ti-aemif.c memory: ti-aemif: Rename SS to SSTROBE to avoid name conflicts 2020-07-24 16:18:32 +02:00
ti-emif-pm.c memory: ti-emif-pm: Fix cast to iomem pointer 2020-07-24 16:18:32 +02:00
ti-emif-sram-pm.S memory: ti-emif-sram: move driver-specific asm-offset.h to drivers/memory/ 2019-07-17 10:25:10 +09:00