* [PATCH] memory: mtk-smi: Add ostd setting for mt8192
@ 2025-03-07 5:45 Xueqi Zhang
2025-03-10 10:45 ` Yong Wu (吴勇)
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Xueqi Zhang @ 2025-03-07 5:45 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno
Cc: Project_Global_Chrome_Upstream_Group, linux-mediatek,
linux-kernel, linux-arm-kernel, Xueqi Zhang
Add initial ostd setting for mt8192. All the settings come from DE.
These settings help adjust Multimedia HW's bandwidth limits to achieve
a balanced bandwidth requirement.
Without this, the VENC HW work abnormal while stress testing.
Fixes: 02c02ddce427 ("memory: mtk-smi: Add mt8192 support")
Signed-off-by: Xueqi Zhang <xueqi.zhang@mediatek.com>
---
drivers/memory/mtk-smi.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index 5710348f72f6..a8f5467d6b31 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -332,6 +332,38 @@ static const u8 mtk_smi_larb_mt8188_ostd[][SMI_LARB_PORT_NR_MAX] = {
[25] = {0x01},
};
+static const u8 mtk_smi_larb_mt8192_ostd[][SMI_LARB_PORT_NR_MAX] = {
+ [0] = {0x2, 0x2, 0x28, 0xa, 0xc, 0x28,},
+ [1] = {0x2, 0x2, 0x18, 0x18, 0x18, 0xa, 0xc, 0x28,},
+ [2] = {0x5, 0x5, 0x5, 0x5, 0x1,},
+ [3] = {},
+ [4] = {0x28, 0x19, 0xb, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x4, 0x1,},
+ [5] = {0x1, 0x1, 0x4, 0x1, 0x1, 0x1, 0x1, 0x16,},
+ [6] = {},
+ [7] = {0x1, 0x3, 0x2, 0x1, 0x1, 0x5, 0x2, 0x12, 0x13, 0x4, 0x4, 0x1,
+ 0x4, 0x2, 0x1,},
+ [8] = {},
+ [9] = {0xa, 0x7, 0xf, 0x8, 0x1, 0x8, 0x9, 0x3, 0x3, 0x6, 0x7, 0x4,
+ 0xa, 0x3, 0x4, 0xe, 0x1, 0x7, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1,
+ 0x1, 0x1, 0x1, 0x1, 0x1,},
+ [10] = {},
+ [11] = {0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1,
+ 0x1, 0x1, 0x1, 0xe, 0x1, 0x7, 0x8, 0x7, 0x7, 0x1, 0x6, 0x2,
+ 0xf, 0x8, 0x1, 0x1, 0x1,},
+ [12] = {},
+ [13] = {0x2, 0xc, 0xc, 0xe, 0x6, 0x6, 0x6, 0x6, 0x6, 0x12, 0x6, 0x28,
+ 0x2, 0xc, 0xc, 0x28, 0x12, 0x6,},
+ [14] = {},
+ [15] = {0x28, 0x14, 0x2, 0xc, 0x18, 0x4, 0x28, 0x14, 0x4, 0x4, 0x4, 0x2,
+ 0x4, 0x2, 0x8, 0x4, 0x4,},
+ [16] = {0x28, 0x14, 0x2, 0xc, 0x18, 0x4, 0x28, 0x14, 0x4, 0x4, 0x4, 0x2,
+ 0x4, 0x2, 0x8, 0x4, 0x4,},
+ [17] = {0x28, 0x14, 0x2, 0xc, 0x18, 0x4, 0x28, 0x14, 0x4, 0x4, 0x4, 0x2,
+ 0x4, 0x2, 0x8, 0x4, 0x4,},
+ [18] = {0x2, 0x2, 0x4, 0x2,},
+ [19] = {0x9, 0x9, 0x5, 0x5, 0x1, 0x1,},
+};
+
static const u8 mtk_smi_larb_mt8195_ostd[][SMI_LARB_PORT_NR_MAX] = {
[0] = {0x0a, 0xc, 0x22, 0x22, 0x01, 0x0a,}, /* larb0 */
[1] = {0x0a, 0xc, 0x22, 0x22, 0x01, 0x0a,}, /* larb1 */
@@ -427,6 +459,7 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt8188 = {
static const struct mtk_smi_larb_gen mtk_smi_larb_mt8192 = {
.config_port = mtk_smi_larb_config_port_gen2_general,
+ .ostd = mtk_smi_larb_mt8192_ostd,
};
static const struct mtk_smi_larb_gen mtk_smi_larb_mt8195 = {
--
2.46.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] memory: mtk-smi: Add ostd setting for mt8192
2025-03-07 5:45 [PATCH] memory: mtk-smi: Add ostd setting for mt8192 Xueqi Zhang
@ 2025-03-10 10:45 ` Yong Wu (吴勇)
2025-03-10 13:06 ` AngeloGioacchino Del Regno
2025-03-10 14:18 ` Krzysztof Kozlowski
2 siblings, 0 replies; 4+ messages in thread
From: Yong Wu (吴勇) @ 2025-03-10 10:45 UTC (permalink / raw)
To: matthias.bgg@gmail.com, Xueqi Zhang (张雪琦),
krzk@kernel.org, AngeloGioacchino Del Regno
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
Project_Global_Chrome_Upstream_Group
On Fri, 2025-03-07 at 13:45 +0800, Xueqi Zhang wrote:
> Add initial ostd setting for mt8192. All the settings come from DE.
> These settings help adjust Multimedia HW's bandwidth limits to
> achieve
> a balanced bandwidth requirement.
> Without this, the VENC HW work abnormal while stress testing.
>
> Fixes: 02c02ddce427 ("memory: mtk-smi: Add mt8192 support")
> Signed-off-by: Xueqi Zhang <xueqi.zhang@mediatek.com>
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] memory: mtk-smi: Add ostd setting for mt8192
2025-03-07 5:45 [PATCH] memory: mtk-smi: Add ostd setting for mt8192 Xueqi Zhang
2025-03-10 10:45 ` Yong Wu (吴勇)
@ 2025-03-10 13:06 ` AngeloGioacchino Del Regno
2025-03-10 14:18 ` Krzysztof Kozlowski
2 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-03-10 13:06 UTC (permalink / raw)
To: Xueqi Zhang, Yong Wu, Krzysztof Kozlowski, Matthias Brugger
Cc: Project_Global_Chrome_Upstream_Group, linux-mediatek,
linux-kernel, linux-arm-kernel
Il 07/03/25 06:45, Xueqi Zhang ha scritto:
> Add initial ostd setting for mt8192. All the settings come from DE.
> These settings help adjust Multimedia HW's bandwidth limits to achieve
> a balanced bandwidth requirement.
> Without this, the VENC HW work abnormal while stress testing.
>
> Fixes: 02c02ddce427 ("memory: mtk-smi: Add mt8192 support")
> Signed-off-by: Xueqi Zhang <xueqi.zhang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] memory: mtk-smi: Add ostd setting for mt8192
2025-03-07 5:45 [PATCH] memory: mtk-smi: Add ostd setting for mt8192 Xueqi Zhang
2025-03-10 10:45 ` Yong Wu (吴勇)
2025-03-10 13:06 ` AngeloGioacchino Del Regno
@ 2025-03-10 14:18 ` Krzysztof Kozlowski
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-10 14:18 UTC (permalink / raw)
To: Yong Wu, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno, Xueqi Zhang
Cc: Project_Global_Chrome_Upstream_Group, linux-mediatek,
linux-kernel, linux-arm-kernel
On Fri, 07 Mar 2025 13:45:08 +0800, Xueqi Zhang wrote:
> Add initial ostd setting for mt8192. All the settings come from DE.
> These settings help adjust Multimedia HW's bandwidth limits to achieve
> a balanced bandwidth requirement.
> Without this, the VENC HW work abnormal while stress testing.
>
>
Applied, thanks!
[1/1] memory: mtk-smi: Add ostd setting for mt8192
https://git.kernel.org/krzk/linux-mem-ctrl/c/90a0fbaac4a588a1116a191521c3c837c25582ee
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-10 14:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07 5:45 [PATCH] memory: mtk-smi: Add ostd setting for mt8192 Xueqi Zhang
2025-03-10 10:45 ` Yong Wu (吴勇)
2025-03-10 13:06 ` AngeloGioacchino Del Regno
2025-03-10 14:18 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).