Skip to content

TH1520: reboot broken after upstream replacement reverts#303

Merged
sterling-teng merged 4 commits into
RVCK-Project:rvck-6.6from
zhuzhenxxx-collab:fix/reboot
Jun 11, 2026
Merged

TH1520: reboot broken after upstream replacement reverts#303
sterling-teng merged 4 commits into
RVCK-Project:rvck-6.6from
zhuzhenxxx-collab:fix/reboot

Conversation

@zhuzhenxxx-collab

Copy link
Copy Markdown

Fix reboot failure on TH1520 (LicheePi 4A) caused by upstream replacement reverts removing the PMIC watchdog driver and its dependencies.

The removed drivers have been restored and adapted to the current th1520-aon protocol API, which changed during the upstream replacement process.

Commits:

  1. riscv: dts: th1520: add watchdog nodes for reboot support — Add DW watchdog device nodes to th1520.dtsi. The resets property is omitted as reset-th1520 driver only supports GPU resets.
  2. drivers/watchdog: Add THEAD TH1520 pmic watchdog driver — Restore the PMIC watchdog driver providing the AON-based restart handler.
  3. drivers/soc/event: Add THEAD TH1520 event driver — Restore the TH1520 event driver required by the PMIC watchdog for AON firmware communication.
  4. soc: thead: adapt AON drivers to new th1520-aon protocol API — Adapt the restored drivers to the updated th1520-aon protocol API and remove stale CONFIG_TH1520_AON_PD=y from defconfig.

Link: #302

dist inclusion
category: feature
Link: RVCK-Project#302

--------------------------------

Add DW watchdog device nodes (watchdog0/watchdog1) to th1520.dtsi.
The resets property is omitted as the reset-th1520 driver only
supports GPU resets and would cause probe failures for other devices.

Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/26999663684

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build success
check-patch failure
lava-trigger-qemu success
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[06:41:22] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 17
Total Warnings 23

LAVA Check (qemu)

args value
testcase_repo RVCK-Project/lavaci
lava_template lava-job-template/qemu/qemu-ltp.yaml
testcase_path lava-testcases/common-test/ltp/ltp.yaml
kernel_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/303_26999663684_1/Image
initramfs_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/303_26999663684_1/initramfs.img
rootfs_download_url https://fast-mirror.isrc.ac.cn/openeuler-sig-riscv/openEuler-RISC-V/RVCK/openEuler24.03-LTS-SP1/openeuler-rootfs.img.zst
testcase_ref main
testitem_name RVCK-Project_rvck_pull_request_target_303__common-test_qemu

result: Lava check done!

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/27000218645

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch failure
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[06:56:35] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 17
Total Warnings 23

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/27001079270

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch failure
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[07:17:54] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 17
Total Warnings 23

ZhenXing Zhu added 2 commits June 5, 2026 07:23
dist inclusion
category: feature
Link: RVCK-Project#302

--------------------------------

Restore TH1520 PMIC watchdog driver which provides the AON-based
restart handler. The DW WDT restart cannot perform a full system
reset on TH1520, so the PMIC watchdog is needed for reboot support.

Signed-off-by: Xiangyi Zeng <xiangyi.zeng@linux.alibaba.com>
Signed-off-by: Yanteng Si <si.yanteng@linux.dev>
Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
dist inclusion
category: feature
Link: RVCK-Project#302

--------------------------------

Restore TH1520 event driver required by the PMIC watchdog driver
for AON firmware communication and system restart support.

Signed-off-by: Xiangyi Zeng <xiangyi.zeng@linux.alibaba.com>
Signed-off-by: Yanteng Si <si.yanteng@linux.dev>
Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/27001565984

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[07:29:37] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 11

@zhuzhenxxx-collab

zhuzhenxxx-collab commented Jun 8, 2026

Copy link
Copy Markdown
Author

/check


开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/27111210378

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[01:40:26] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 11

@sterling-teng

sterling-teng commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

/check


开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/27127679508

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[09:19:08] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 11

dist inclusion
category: feature
Link: RVCK-Project#302

--------------------------------

Adapt the restored event and PMIC watchdog drivers to the updated
th1520-aon protocol API. Remove stale CONFIG_TH1520_AON_PD=y from
defconfig as the corresponding driver was removed.

Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/27180046246

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/303/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build success
check-patch success
lava-trigger-qemu success
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[02:33:45] Testing complete. Ran 482 tests: passed: 466, skipped: 16

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 11

LAVA Check (qemu)

args value
testcase_repo RVCK-Project/lavaci
lava_template lava-job-template/qemu/qemu-ltp.yaml
testcase_path lava-testcases/common-test/ltp/ltp.yaml
kernel_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/303_27180046246_1/Image
initramfs_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/303_27180046246_1/initramfs.img
rootfs_download_url https://fast-mirror.isrc.ac.cn/openeuler-sig-riscv/openEuler-RISC-V/RVCK/openEuler24.03-LTS-SP1/openeuler-rootfs.img.zst
testcase_ref main
testitem_name RVCK-Project_rvck_pull_request_target_303__common-test_qemu

result: Lava check done!

@sterling-teng sterling-teng merged commit 5a5237b into RVCK-Project:rvck-6.6 Jun 11, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants