Skip to contentSkip to conversation

remoteproc/mediatek: change MT8192 CFG register base

PATCH Applied Tzung-Bi Shih 3 participants 5 messages Dec 10, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remoteproc/mediatek: change MT8192 CFG register base

The correct MT8192 CFG register base is 0x20000 off. Changes the registers accordingly.

Fixes fd0b6c1ff85a ("remoteproc/mediatek: Add support for mt8192 SCP")
---
 drivers/remoteproc/mtk_common.h | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/remoteproc/mtk_common.h +13 -13
index b3397d327786..fb022ff93dc1 100644
@@ -32,22 +32,22 @@
 #define MT8183_SCP_CACHESIZE_8KB	BIT(8)
 #define MT8183_SCP_CACHE_CON_WAYEN	BIT(10)
 
-#define MT8192_L2TCM_SRAM_PD_0		0x210C0
-#define MT8192_L2TCM_SRAM_PD_1		0x210C4
-#define MT8192_L2TCM_SRAM_PD_2		0x210C8
-#define MT8192_L1TCM_SRAM_PDN		0x2102C
-#define MT8192_CPU0_SRAM_PD		0x21080
-
-#define MT8192_SCP2APMCU_IPC_SET	0x24080
-#define MT8192_SCP2APMCU_IPC_CLR	0x24084
+#define MT8192_L2TCM_SRAM_PD_0		0x10C0
+#define MT8192_L2TCM_SRAM_PD_1		0x10C4
+#define MT8192_L2TCM_SRAM_PD_2		0x10C8
+#define MT8192_L1TCM_SRAM_PDN		0x102C
+#define MT8192_CPU0_SRAM_PD		0x1080
+
+#define MT8192_SCP2APMCU_IPC_SET	0x4080
+#define MT8192_SCP2APMCU_IPC_CLR	0x4084
 #define MT8192_SCP_IPC_INT_BIT		BIT(0)
-#define MT8192_SCP2SPM_IPC_CLR		0x24094
-#define MT8192_GIPC_IN_SET		0x24098
+#define MT8192_SCP2SPM_IPC_CLR		0x4094
+#define MT8192_GIPC_IN_SET		0x4098
 #define MT8192_HOST_IPC_INT_BIT		BIT(0)
 
-#define MT8192_CORE0_SW_RSTN_CLR	0x30000
-#define MT8192_CORE0_SW_RSTN_SET	0x30004
-#define MT8192_CORE0_WDT_CFG		0x30034
+#define MT8192_CORE0_SW_RSTN_CLR	0x10000
+#define MT8192_CORE0_SW_RSTN_SET	0x10004
+#define MT8192_CORE0_WDT_CFG		0x10034
 
 #define SCP_FW_VER_LEN			32
 #define SCP_SHARE_BUFFER_SIZE		288
Signature · 7 lines
2.29.2.576.ga3fc446d84-goog


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#1 lore raw
Quoted 5 lines · Tzung-Bi Shih

The correct MT8192 CFG register base is 0x20000 off. Changes the registers accordingly.

Fixes fd0b6c1ff85a ("remoteproc/mediatek: Add support for mt8192 SCP")

I presume there's an associated DT change with this?

I'm okay with taking this, but would like to have Matthias ack on the fact that we're breaking backwards compatibility with older DTS.

(Or I could ack this and Matthias can take it together with the DT change, to reduce the breakage gap in the git history?)

Regards,
Bjorn

Quoted 47 lines
---
 drivers/remoteproc/mtk_common.h | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/remoteproc/mtk_common.h +13 -13
index b3397d327786..fb022ff93dc1 100644
@@ -32,22 +32,22 @@
 #define MT8183_SCP_CACHESIZE_8KB	BIT(8)
 #define MT8183_SCP_CACHE_CON_WAYEN	BIT(10)
 
-#define MT8192_L2TCM_SRAM_PD_0		0x210C0
-#define MT8192_L2TCM_SRAM_PD_1		0x210C4
-#define MT8192_L2TCM_SRAM_PD_2		0x210C8
-#define MT8192_L1TCM_SRAM_PDN		0x2102C
-#define MT8192_CPU0_SRAM_PD		0x21080
-
-#define MT8192_SCP2APMCU_IPC_SET	0x24080
-#define MT8192_SCP2APMCU_IPC_CLR	0x24084
+#define MT8192_L2TCM_SRAM_PD_0		0x10C0
+#define MT8192_L2TCM_SRAM_PD_1		0x10C4
+#define MT8192_L2TCM_SRAM_PD_2		0x10C8
+#define MT8192_L1TCM_SRAM_PDN		0x102C
+#define MT8192_CPU0_SRAM_PD		0x1080
+
+#define MT8192_SCP2APMCU_IPC_SET	0x4080
+#define MT8192_SCP2APMCU_IPC_CLR	0x4084
 #define MT8192_SCP_IPC_INT_BIT		BIT(0)
-#define MT8192_SCP2SPM_IPC_CLR		0x24094
-#define MT8192_GIPC_IN_SET		0x24098
+#define MT8192_SCP2SPM_IPC_CLR		0x4094
+#define MT8192_GIPC_IN_SET		0x4098
 #define MT8192_HOST_IPC_INT_BIT		BIT(0)
 
-#define MT8192_CORE0_SW_RSTN_CLR	0x30000
-#define MT8192_CORE0_SW_RSTN_SET	0x30004
-#define MT8192_CORE0_WDT_CFG		0x30034
+#define MT8192_CORE0_SW_RSTN_CLR	0x10000
+#define MT8192_CORE0_SW_RSTN_SET	0x10004
+#define MT8192_CORE0_WDT_CFG		0x10034
 
 #define SCP_FW_VER_LEN			32
 #define SCP_SHARE_BUFFER_SIZE		288
Signature · 1 line
2.29.2.576.ga3fc446d84-goog

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#2 lore raw
Quoted 9 lines · Bjorn Andersson
Quoted 5 lines · Tzung-Bi Shih

The correct MT8192 CFG register base is 0x20000 off. Changes the registers accordingly.

Fixes fd0b6c1ff85a ("remoteproc/mediatek: Add support for mt8192 SCP")
Quoted 7 lines

I presume there's an associated DT change with this?

I'm okay with taking this, but would like to have Matthias ack on the fact that we're breaking backwards compatibility with older DTS.

(Or I could ack this and Matthias can take it together with the DT change, to reduce the breakage gap in the git history?)

Yes, it has associated DT changes. But the board "MT8192 SCP" is still under development, the DTS part hasn't been sent to upstream yet.

Thus, it won't break anyone else.

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#3 lore raw
Quoted 16 lines · Tzung-Bi Shih
Quoted 14 lines · Bjorn Andersson
Quoted 5 lines · Tzung-Bi Shih

The correct MT8192 CFG register base is 0x20000 off. Changes the registers accordingly.

Fixes fd0b6c1ff85a ("remoteproc/mediatek: Add support for mt8192 SCP")

I presume there's an associated DT change with this?

I'm okay with taking this, but would like to have Matthias ack on the fact that we're breaking backwards compatibility with older DTS.

Quoted 8 lines
Quoted 2 lines

(Or I could ack this and Matthias can take it together with the DT change, to reduce the breakage gap in the git history?)

Yes, it has associated DT changes. But the board "MT8192 SCP" is still under development, the DTS part hasn't been sent to upstream yet.

Thus, it won't break anyone else.

Then I don't mind merging this, will include it in v5.11.

Thank you,
Bjorn

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#4 lore raw
In reply to Tzung-Bi Shih
This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Hello:

This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Quoted 8 lines · On Thu, 10 Dec 2020 13:41:09 +0800 you wrote:

The correct MT8192 CFG register base is 0x20000 off. Changes the registers accordingly.

Fixes fd0b6c1ff85a ("remoteproc/mediatek: Add support for mt8192 SCP")
---
 drivers/remoteproc/mtk_common.h | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

Here is the summary with links:
- remoteproc/mediatek: change MT8192 CFG register base

    https://git.kernel.org/andersson/remoteproc/c/0a441514bc2b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html