From patchwork Mon Jan 30 20:08:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13121732 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF147C636D3 for ; Mon, 30 Jan 2023 20:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8mOTdT5BgUOKRDmqiv79xkzOHP06iQ4+MaUhcJhGmXM=; b=O4cGrDo2aCHM+Z cZYGAo2HQoHDoIRg7Fw9/9EKm77YLUJvl5OSLChMKcvQ6Zo0WzT+SG+9w67NwTYpj7x5mYuLa/F4W SfLygCOKaRugssXQIXFmEv0LC8j1pylqtgiQFgWvPrbdCUbH58lzz1kCG/RChK3zjSKD6DdABNMcm DmCp9v3AtzsrMAgxJ6pau0ZmqcjpCnFqpNIs6cavg6C+zO3AvrfUMV+8AGtoRyXp3w59GCHD7a9pt 7iGqUYENxyg86niueh2mMv2EW9CIG2HYP/m+imN9B/fWmCAczTjuzklvL9t+hbTQh73rHq7vv3ggK ll6cEJF0HyyYQM27ZRCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMaSD-005J7E-Jo; Mon, 30 Jan 2023 20:08:37 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMaSA-005J5Q-Q0 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jan 2023 20:08:36 +0000 Received: from notapiano.myfiosgateway.com (unknown [IPv6:2600:4041:5b1a:cd00:524d:e95d:1a9c:492a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3DB6D6602EB0; Mon, 30 Jan 2023 20:08:30 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675109312; bh=04swUGoUqfLzO/4GYJ0FTGA8WmbYd7gvyrdjrpSIOFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GsSTtJHd2vBscdTddI8ZOpBQl8DfB5rTDqJC14DyiOnJnQa9rskw02+R9XAoYcBhQ 5yrOKECmzR7Q82W1zkPW1r87I0mdDqBSN7qf02llezIGDoDnEq7rzXXjfX0zpg9abL Jt/7wmrhBoB3HancDDfVamY2NMuF54uTZC/+gg7QoBtD1paCbMhKKYYirX+kkUVoFz Wt8TQXJLIXSTYVF0BpPdzv9UhDitROp2wJ3cmvw7EokCb4C9dgARtgzEnhIG84YQt8 9gdQU34TgpiFIx5hnOXRJUOnKLhazkqCVwVxQNLh+VUiGFL193+jT9z96R0Pxfd39w eDYjWJqVMy3dw== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Matthias Brugger Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Arnd Bergmann , Bjorn Andersson , Catalin Marinas , Dmitry Baryshkov , Geert Uytterhoeven , Krzysztof Kozlowski , Marcel Ziswiler , Shawn Guo , Will Deacon , 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 Message-Id: <20230130200820.82084-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230130200820.82084-1-nfraprado@collabora.com> References: <20230130200820.82084-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230130_120835_106097_ECEA9643 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Tested-by: AngeloGioacchino Del Regno --- 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