Skip to content

Add support for MT8195 SCP 2nd core

Tinghan Shen linux-arm-kernel linux-devicetree linux-mediatek linux-remoteproc lkml 17 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v17 Latest14 patches 16 repliesIn review
  2. v1614 patches 2 repliesSuperseded
  3. v1513 patches 5 repliesSuperseded
Earlier versions · 14
VersionPostedPatchesRepliesStatus
v1412 patches6 repliesSuperseded
v1311 patches13 repliesSuperseded
v1211 patches4 repliesSuperseded
v1111 patches6 repliesSuperseded
v1011 patches3 repliesSuperseded
v911 patches7 repliesSuperseded
v811 patches6 repliesSuperseded
v712 patches4 repliesSuperseded
v612 patches6 repliesSuperseded
v512 patches6 repliesSuperseded
v412 patches6 repliesSuperseded
v311 patches18 repliesSuperseded
v29 patches12 repliesSuperseded
v115 patches15 repliesApplied

Changes in v17 from the cover letter

1. add a comment in scp_add_multi_core() at patchset 8

Patches in v17 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode definitionDocumentation/devicetree/bindings/remoteproc/mtk,scp.yaml+15 -160 replies
2/14arm64: dts: mediatek: Update the node name of SCP rpmsg subnodearch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi+2 -20 replies
3/14dt-bindings: remoteproc: mediatek: Support MT8195 dual-core SCPDocumentation/devicetree/bindings/remoteproc/mtk,scp.yaml+141 -40 replies
4/14remoteproc: mediatek: Add MT8195 SCP core 1 operationsdrivers/remoteproc/mtk_common.h drivers/remoteproc/mtk_scp.c+64 -00 replies
5/14remoteproc: mediatek: Extract SCP common registersdrivers/remoteproc/mtk_common.h drivers/remoteproc/mtk_scp.c drivers/remoteproc/mtk_scp_ipi.c+96 -851 reply
6/14remoteproc: mediatek: Revise SCP rproc initialization flow for multi-core SCPdrivers/remoteproc/mtk_scp.c+39 -241 reply
7/14remoteproc: mediatek: Probe SCP cluster on single-core SCPdrivers/remoteproc/mtk_common.h drivers/remoteproc/mtk_scp.c+63 -251 reply
8/14remoteproc: mediatek: Probe SCP cluster on multi-core SCPdrivers/remoteproc/mtk_scp.c+118 -50 replies
9/14remoteproc: mediatek: Remove dependency of MT8195 SCP L2TCM power control on dual-core SCPdrivers/remoteproc/mtk_common.h drivers/remoteproc/mtk_scp.c+59 -151 reply
10/14remoteproc: mediatek: Setup MT8195 SCP core 1 SRAM offsetdrivers/remoteproc/mtk_common.h drivers/remoteproc/mtk_scp.c+35 -00 replies
11/14remoteproc: mediatek: Handle MT8195 SCP core 1 watchdog timeoutdrivers/remoteproc/mtk_common.h drivers/remoteproc/mtk_scp.c+29 -10 replies
12/14remoteproc: mediatek: Report watchdog crash to all coresdrivers/remoteproc/mtk_scp.c+7 -11 reply
13/14remoteproc: mediatek: Refine ipi handler error messagedrivers/remoteproc/mtk_scp.c+1 -10 replies
14/14arm64: dts: mediatek: mt8195: Add SCP 2nd corearch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi arch/arm64/boot/dts/mediatek/mt8195.dtsi+30 -101 reply

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del RegnoRob HerringMatthias Brugger
SeriesT-b
1/14R-b A-b
2/14R-b A-b
3/14R-b R-b
4/14R-b R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v17 thread

Cover letter [PATCH v17 00/14] Add support for MT8195 SCP 2nd core

The mediatek remoteproc driver currently only allows bringing up a single core SCP, e.g. MT8183. It also only bringing up the 1st core in SoCs with a dual-core SCP, e.g. MT8195. This series support to bring-up the 2nd core of the dual-core SCP.

v16 -> v17:
1. add a comment in scp_add_multi_core() at patchset 8

v15 -> v16:
1. fix the checkpatch warning at patchset 1
2. move changes on scp_probe() to the new added patchset 6
3. revise platform_set_drvdata() at patchset 8
4. fix commit message at patchset 9

v15 -> v14:
1. use the common SCP registers in struct mtk_scp_of_cluster instead of copy it to struct mtk_scp at patchset 5
2. use platform_set_drvdata instead of platform_device_add_data at patchset 5
3. rename l2tcm_lock to cluster_lock at patchset 8
4. check l2tcm_refcnt value before decreasing at patchset 8
5. revise the commit message at patchset 11

v13 -> v14:
1. add review tag to patchset 1,6
2. exchange the order of sram power on and reset assert in mt8195_scp_c1_before_load at patchset 2
3. use ERR_CAST in patchset 5
4. re-write patchset 7 to remove dependency between core 0 and core 1
5. add patch set 10 to report watchdot timeout to all cores

v12 -> v13:
1. replace subdevice with new mediatek scp operations in patchset 7
2. add review tag to patchset 3
3. modify mediatek,scp phandle name of video-codec@18000000 at patchset 11

v11 -> v12:
1. add scp_add_single/multi_core() to patchset 6
2. remove unused comment in patchset 6
3. rename list name from mtk_scp_cluster to mtk_scp_list
4. rewrite the multi-core probe flow
5. disable rproc->autoboot and boot rproc by request_firmware_nowait at patchset 7
6. remove patchset 7 review tag

v10 -> v11:
1. rewrite patchset 5 to probe single-core SCP with the cluster list
2. Also in patchset 5, move the pointer of mtk_scp object from the platform data property to the driver data property
3. move the appearance of mtk_scp cluster property to patcheset 7

v9 -> v10:
1. move the global mtk_scp list into the platform device driver data structure
2. remove an unnecessary if() condition

v8 -> v9:
1. initialize l1tcm_size/l1tcm_phys at patchset 05/11
2. rewrite patchset 06/11 to unify the flow and remove hacks

v7 -> v8:
1. update the node name of mt8192 asurada SCP rpmsg subnode
2. squash register definitions into driver patches
3. initialize local variables on the declaration at patch v8 06/11

v6 -> v7:
1. merge the mtk_scp_cluster struct into the mtk_scp structure at the "Probe multi-core SCP" patch

v5 -> v6:
1. move the mtk_scp_of_regs structure from mtk_common.h to mtk_scp.c
2. rename the SCP core 0 label from 'scp' to 'scp_c0'

v4 -> v5:
1. move resource release actions to the platform driver remove operation
2. fix dual-core watchdog handling

v3 -> v4:
1. change the representation of dual-core SCP in dts file and update SCP yaml
2. rewrite SCP driver to reflect the change of dts node
3. drop 'remove redundant call of rproc_boot for SCP' in v3 for further investigation

v2 -> v3:
1. change the representation of dual-core SCP in dts file and update SCP yaml
2. rewrite SCP driver to reflect the change of dts node
3. add SCP core 1 node to mt8195.dtsi
4. remove redundant call of rproc_boot for SCP
5. refine IPI error message

v1 -> v2:
1. update dt-binding property description
2. remove kconfig for scp dual driver
3. merge mtk_scp_dual.c and mtk_scp_subdev.c to mtk_scp.c

Tinghan Shen (14):
dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode
definition
arm64: dts: mediatek: Update the node name of SCP rpmsg subnode
dt-bindings: remoteproc: mediatek: Support MT8195 dual-core SCP
remoteproc: mediatek: Add MT8195 SCP core 1 operations
remoteproc: mediatek: Extract SCP common registers
remoteproc: mediatek: Revise SCP rproc initialization flow for
multi-core SCP
remoteproc: mediatek: Probe SCP cluster on single-core SCP
remoteproc: mediatek: Probe SCP cluster on multi-core SCP
remoteproc: mediatek: Remove dependency of MT8195 SCP L2TCM power
control on dual-core SCP
remoteproc: mediatek: Setup MT8195 SCP core 1 SRAM offset
remoteproc: mediatek: Handle MT8195 SCP core 1 watchdog timeout
remoteproc: mediatek: Report watchdog crash to all cores
remoteproc: mediatek: Refine ipi handler error message
arm64: dts: mediatek: mt8195: Add SCP 2nd core

 .../bindings/remoteproc/mtk,scp.yaml          | 176 +++++-
 .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi |   2 +-
 .../boot/dts/mediatek/mt8192-asurada.dtsi     |   2 +-
 .../boot/dts/mediatek/mt8195-cherry.dtsi      |   6 +-
 arch/arm64/boot/dts/mediatek/mt8195.dtsi      |  34 +-
 drivers/remoteproc/mtk_common.h               |  39 +-
 drivers/remoteproc/mtk_scp.c                  | 539 ++++++++++++++----
 drivers/remoteproc/mtk_scp_ipi.c              |   4 +-
 8 files changed, 656 insertions(+), 146 deletions(-)
Signature · 1 line
2.18.0