diff mbox series

[v3,2/2] arm64: defconfig: Enable DMA_RESTRICTED_POOL

Message ID 20230130200820.82084-2-nfraprado@collabora.com (mailing list archive)
State New, archived
Headers show
Series [v3,1/2] arm64: defconfig: Enable missing configs for mt8192-asurada | expand

Commit Message

Nícolas F. R. A. Prado Jan. 30, 2023, 8:08 p.m. UTC
Enable support for restricted DMA pools which provide a level of DMA
memory protection on systems with limited hardware protection
capabilities, such as those lacking an IOMMU.

For instance, mt8192-asurada-spherion makes use of this to provide a
restricted DMA region for WiFi since its MT7921E WiFi card is connected
through PCIe, and the MT8192 SoC doesn't have an IOMMU context for the
PCIe controller.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---

Changes in v3:
- Added this patch

 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

AngeloGioacchino Del Regno Feb. 1, 2023, 1:13 p.m. UTC | #1
Il 30/01/23 21:08, Nícolas F. R. A. Prado ha scritto:
> Enable support for restricted DMA pools which provide a level of DMA
> memory protection on systems with limited hardware protection
> capabilities, such as those lacking an IOMMU.
> 
> For instance, mt8192-asurada-spherion makes use of this to provide a
> restricted DMA region for WiFi since its MT7921E WiFi card is connected
> through PCIe, and the MT8192 SoC doesn't have an IOMMU context for the
> PCIe controller.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> 

On MT8173 Elm, MT8192 Spherion, MT8195 Tomato:

Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff mbox series

Patch

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index be40004a0259..4e806d8068f6 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1422,6 +1422,7 @@  CONFIG_CRYPTO_DEV_HISI_SEC2=m
 CONFIG_CRYPTO_DEV_HISI_ZIP=m
 CONFIG_CRYPTO_DEV_HISI_HPRE=m
 CONFIG_CRYPTO_DEV_HISI_TRNG=m
+CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_CMA_SIZE_MBYTES=32
 CONFIG_PRINTK_TIME=y
 CONFIG_DEBUG_KERNEL=y