Enable 1 GHz frequency for Panthor on mainline.#10035
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe patch updates RK3588 Panthor GPU bindings, adds 200 MHz OPP entries for RK3588 and RK3588J, wires devfreq clock-rate programming through an OPP callback, and adds optional bus-clock handling in Panthor resume and suspend paths. ChangesRK3588 Panthor clock and OPP updates
Sequence Diagram(s)OPP transition clock programmingsequenceDiagram
participant PanthorDevfreq
participant PMOPP
participant RuntimePM
participant ClockFramework
PanthorDevfreq->>PMOPP: devm_pm_opp_set_config(clk_names=["core"], config_clks)
PMOPP->>PanthorDevfreq: call config_clks during OPP transition
PanthorDevfreq->>RuntimePM: gate device while updating clocks
PanthorDevfreq->>ClockFramework: clk_set_rate(core, target_rate)
PanthorDevfreq->>RuntimePM: release gate after rate change
Optional bus clock resume and suspendsequenceDiagram
participant panthor_clk_init
participant panthor_device_resume
participant ClockFramework
participant panthor_device_suspend
panthor_clk_init->>ClockFramework: get optional bus clock
panthor_device_resume->>ClockFramework: enable bus clock
panthor_device_resume->>ClockFramework: enable core, stacks, and coregroup clocks
ClockFramework-->>panthor_device_resume: report core enable failure
panthor_device_resume->>ClockFramework: disable bus clock on unwind
panthor_device_suspend->>ClockFramework: disable bus clock
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ba0e5c3 to
c8aaa60
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@patch/kernel/archive/rockchip64-7.0/rk3588-panthor-1GHz.patch`:
- Around line 1-6: The patch header is using placeholder provenance, so update
the metadata in the archive patch header to reflect the real upstream
author/sign-off chain instead of John Doe. Replace the From/Date/Signed-off-by
fields with the correct upstream RFC provenance, and add a Link field if
available so the provenance is traceable. Make this change in the patch header
for rk3588-panthor-1GHz.patch, keeping the subject intact while fixing the
author/sign-off metadata.
In `@patch/kernel/archive/rockchip64-7.1/rk3588-panthor-1GHz.patch`:
- Around line 1-6: The patch header still uses placeholder provenance, so update
the archive copy to match the real upstream author and signed-off-by chain
instead of John Doe. Edit the metadata in the Panthor 1 GHz patch header so the
From, Signed-off-by, and subject/provenance fields reflect the actual
upstream/RFC source, and make sure this 7.1 archive stays consistent with the
7.0 copy.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 46ea8296-a466-4b1b-88cf-5a5c9673a7dd
📒 Files selected for processing (2)
patch/kernel/archive/rockchip64-7.0/rk3588-panthor-1GHz.patchpatch/kernel/archive/rockchip64-7.1/rk3588-panthor-1GHz.patch
|
Thanks for raising this again |
|
✅ This PR has been reviewed and approved — all set for merge! |
This was long time coming, and Collabora isn't going to tackle this anytime soon, so we're just going to adopt @Kwiboo's patches (which were still in RFC state) from here: https://github.com/Kwiboo/linux-rockchip/commits/next-20250428-rk35xx-scmi-gpu-clk/ — but only for rk3588 for now, rebased and checked to compile and work.
Summary by CodeRabbit