From: "Nícolas F. R. A. Prado" <nfraprado@collabora.com> To: Matthias Brugger <matthias.bgg@gmail.com> Cc: kernel@collabora.com, "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>, "Nícolas F. R. A. Prado" <nfraprado@collabora.com>, "Arnd Bergmann" <arnd@arndb.de>, "Bjorn Andersson" <quic_bjorande@quicinc.com>, "Catalin Marinas" <catalin.marinas@arm.com>, "Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>, "Geert Uytterhoeven" <geert+renesas@glider.be>, "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>, "Marcel Ziswiler" <marcel.ziswiler@toradex.com>, "Shawn Guo" <shawnguo@kernel.org>, "Will Deacon" <will@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: defconfig: Enable DMA_RESTRICTED_POOL Date: Mon, 30 Jan 2023 15:08:20 -0500 [thread overview] Message-ID: <20230130200820.82084-2-nfraprado@collabora.com> (raw) In-Reply-To: <20230130200820.82084-1-nfraprado@collabora.com> 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(+) 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 -- 2.39.1
WARNING: multiple messages have this Message-ID (diff)
From: "Nícolas F. R. A. Prado" <nfraprado@collabora.com> To: Matthias Brugger <matthias.bgg@gmail.com> Cc: kernel@collabora.com, "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>, "Nícolas F. R. A. Prado" <nfraprado@collabora.com>, "Arnd Bergmann" <arnd@arndb.de>, "Bjorn Andersson" <quic_bjorande@quicinc.com>, "Catalin Marinas" <catalin.marinas@arm.com>, "Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>, "Geert Uytterhoeven" <geert+renesas@glider.be>, "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>, "Marcel Ziswiler" <marcel.ziswiler@toradex.com>, "Shawn Guo" <shawnguo@kernel.org>, "Will Deacon" <will@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: defconfig: Enable DMA_RESTRICTED_POOL Date: Mon, 30 Jan 2023 15:08:20 -0500 [thread overview] Message-ID: <20230130200820.82084-2-nfraprado@collabora.com> (raw) In-Reply-To: <20230130200820.82084-1-nfraprado@collabora.com> 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(+) 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 -- 2.39.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-01-30 20:08 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-30 20:08 [PATCH v3 1/2] arm64: defconfig: Enable missing configs for mt8192-asurada Nícolas F. R. A. Prado 2023-01-30 20:08 ` Nícolas F. R. A. Prado 2023-01-30 20:08 ` Nícolas F. R. A. Prado [this message] 2023-01-30 20:08 ` [PATCH v3 2/2] arm64: defconfig: Enable DMA_RESTRICTED_POOL Nícolas F. R. A. Prado 2023-02-01 13:13 ` AngeloGioacchino Del Regno 2023-02-01 13:13 ` AngeloGioacchino Del Regno 2023-01-31 11:29 ` [PATCH v3 1/2] arm64: defconfig: Enable missing configs for mt8192-asurada Matthias Brugger 2023-01-31 11:29 ` Matthias Brugger
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230130200820.82084-2-nfraprado@collabora.com \ --to=nfraprado@collabora.com \ --cc=angelogioacchino.delregno@collabora.com \ --cc=arnd@arndb.de \ --cc=catalin.marinas@arm.com \ --cc=dmitry.baryshkov@linaro.org \ --cc=geert+renesas@glider.be \ --cc=kernel@collabora.com \ --cc=krzysztof.kozlowski@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=marcel.ziswiler@toradex.com \ --cc=matthias.bgg@gmail.com \ --cc=quic_bjorande@quicinc.com \ --cc=shawnguo@kernel.org \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.