[th1520] Clean up and Cherry-pick mailbox with upstream mainline driver#247
[th1520] Clean up and Cherry-pick mailbox with upstream mainline driver#247zhuzhenxxx-collab wants to merge 10 commits intoRVCK-Project:rvck-6.6from
Conversation
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/23426728491 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[07:51:28] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/247/ 87645c575760b5646250aae38bd5fa84 /srv/guix_result/219c767302c18b6902f80064a773c75c6ff94062/Image LAVA Checkargs:
result:Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1619 lava result count: [fail]: 173, [pass]: 1436, [skip]: 290 Check Patch Result
|
219c767 to
c3c35c8
Compare
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/24328011198 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[06:00:34] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
|
/check 开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/24350754869 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[15:10:44] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
c3c35c8 to
680909d
Compare
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/24439800125 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[06:29:50] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
680909d to
9949bbe
Compare
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/24440951604 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[07:04:25] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Check Patch Result
|
9949bbe to
a2cb159
Compare
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/24756549471 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:15:18] Testing complete. Ran 457 tests: passed: 445, skipped: 12
Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/247_24756549471_1/ 6cb1937e4884ae7c1a88eb2406633222 /srv/guix_result/a2cb159e575bec1e390fd9773a9964f9b055a6e6/Image
LAVA Check
result: Lava check done!
Check Patch Result
|
…uct-crash.dts for kdump" dist inclusion category: cleanup Link: RVCK-Project#227 -------------------------------- This reverts commit 4dd71d4. Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc3 commit 30e7573 category: feature bugzilla: RVCK-Project#236 -------------------------------- Add a YAML schema for the T-HEAD TH1520 SoC reset controller. This controller manages resets for subsystems such as the GPU within the TH1520 SoC. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://lore.kernel.org/r/20250303152511.494405-2-m.wilczynski@samsung.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc3 commit 4a65326 category: feature bugzilla: RVCK-Project#236 -------------------------------- Add reset controller driver for the T-HEAD TH1520 SoC that manages hardware reset lines for various subsystems. The driver currently implements support for GPU reset control, with infrastructure in place to extend support for NPU and Watchdog Timer resets in future updates. Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://lore.kernel.org/r/20250303152511.494405-3-m.wilczynski@samsung.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc3 commit cf5e81d category: feature bugzilla: RVCK-Project#236 -------------------------------- Add the "gpu-clkgen" reset property to the AON device tree node. This allows the AON power domain driver to detect the capability to power sequence the GPU and spawn the necessary pwrseq-thead-gpu auxiliary driver for managing the GPU's complex power sequence. This commit also adds the prerequisite dt-bindings/reset/thead,th1520-reset.h include to make the TH1520_RESET_ID_GPU_CLKGEN available. This include was previously dropped during a conflict resolution [1]. Link: https://lore.kernel.org/all/aAvfn2mq0Ksi8DF2@x1/ [1] Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Drew Fustini <drew@pdp7.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Signed-off-by: Drew Fustini <drew@pdp7.com> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
dist inclusion category: cleanup Link: RVCK-Project#240 -------------------------------- This reverts commit cc271cf. Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
dist inclusion category: cleanup Link: RVCK-Project#240 -------------------------------- This reverts commit bd576f6. Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc5 commit 5d4d263 category: feature bugzilla: RVCK-Project#240 -------------------------------- This driver was tested using the drm/imagination GPU driver. It was able to successfully power on the GPU, by passing a command through mailbox from E910 core to E902 that's responsible for powering up the GPU. The GPU driver was able to read the BVNC version from control registers, which confirms it was successfully powered on. [ 33.957467] powervr ffef400000.gpu: [drm] loaded firmware powervr/rogue_36.52.104.182_v1.fw [ 33.966008] powervr ffef400000.gpu: [drm] FW version v1.0 (build 6621747 OS) [ 38.978542] powervr ffef400000.gpu: [drm] *ERROR* Firmware failed to boot Though the driver still fails to boot the firmware, the mailbox driver works when used with the not-yet-upstreamed firmware AON driver. There is ongoing work to get the BXM-4-64 supported with the drm/imagination driver [1], though it's not completed yet. This work is based on the driver from the vendor kernel [2]. Link: https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/2 [1] Link: https://github.com/revyos/thead-kernel.git [2] Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc5 commit c95c136 category: feature bugzilla: RVCK-Project#240 -------------------------------- Add mailbox device tree node. This work is based on the vendor kernel [1]. Link: https://github.com/revyos/thead-kernel.git [1] Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Reviewed-by: Drew Fustini <dfustini@tenstorrent.com> Signed-off-by: Drew Fustini <dfustini@tenstorrent.com> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc5 commit 1037885 category: feature bugzilla: RVCK-Project#240 -------------------------------- Document bindings for the T-Head TH1520 AP sub-system clock controller. Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf Co-developed-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Drew Fustini <dfustini@tenstorrent.com> Link: https://lore.kernel.org/r/20240623-th1520-clk-v2-1-ad8d6432d9fb@tenstorrent.com Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
mainline inclusion from Linux 7.0-rc5 commit e919fe0 category: feature bugzilla: RVCK-Project#240 -------------------------------- Add node for the AP_SUBSYS clock controller on the T-Head TH1520 SoC. Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf Link: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/docs Signed-off-by: Drew Fustini <dfustini@tenstorrent.com> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: ZhenXing Zhu <zhenxing.zhu@linux.alibaba.com>
a2cb159 to
5ab26f3
Compare
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/24869597564 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:51:09] Testing complete. Ran 457 tests: passed: 445, skipped: 12
Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/247_24869597564_1/ 6741a42f6d1d55e871eb7843839ff76b /srv/guix_result/5ab26f30a6d658087be4d6527bfc30511192418e/Image
LAVA Check
result: Lava check done!
Check Patch Result
|
This PR cleans up the out-of-tree TH1520 mailbox implementation and replaces it with the mainline version.
Changes
Reverts (cleanup):
Revert "mailbox: add XuanTie TH1520 Mailbox IPC driver"
Revert "riscv: dts: thead: Add XuanTie TH1520 Mailbox device node"
Cherry-picks from mainline:
mailbox: Introduce support for T-head TH1520 Mailbox driver
riscv: dts: thead: Add mailbox node