[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211123112104.3530135-4-hsinyi@chromium.org>
Date: Tue, 23 Nov 2021 19:21:04 +0800
From: Hsin-Yi Wang <hsinyi@...omium.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: Marek Szyprowski <m.szyprowski@...sung.com>,
Robin Murphy <robin.murphy@....com>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
Maxime Ripard <maxime@...no.tech>,
- <devicetree-spec@...r.kernel.org>, devicetree@...r.kernel.org,
Matthias Brugger <matthias.bgg@...il.com>,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, senozhatsky@...omium.org,
tfiga@...omium.org
Subject: [PATCH 3/3] arm64: dts: mt8183: use restricted swiotlb for scp mem
Use restricted-dma-pool for mtk_scp's reserved memory. And set the
io-tlb-segsize to 4096 since the driver needs at least 2560 slabs to
allocate memory.
Signed-off-by: Hsin-Yi Wang <hsinyi@...omium.org>
---
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
index 94c13c45919445..de94b2fd7f33e7 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
@@ -109,9 +109,9 @@ reserved_memory: reserved-memory {
ranges;
scp_mem_reserved: scp_mem_region {
- compatible = "shared-dma-pool";
+ compatible = "restricted-dma-pool";
reg = <0 0x50000000 0 0x2900000>;
- no-map;
+ io-tlb-segsize = <4096>;
};
};
--
2.34.0.rc2.393.gf8c9666880-goog
Powered by blists - more mailing lists