Skip to content

PMU: phytium: update phytium PMUcontroller driver support to 6.6.0.4 - #2257

Open
wangchenlu2236 wants to merge 18 commits into
deepin-community:linux-6.6.yfrom
wangchenlu2236:pmu-6.6.y
Open

wangchenlu2236 wants to merge 18 commits into
deepin-community:linux-6.6.yfrom
wangchenlu2236:pmu-6.6.y

Conversation

@wangchenlu2236

Copy link
Copy Markdown
Contributor

This patches updates the support for phytium PMU controller driver.

Added some functional improvements for PCIe PMU.
Added some functional improvements for DDR PMU.
Add DDR PMU Support for PS240XX.
Add PCIe PMU Support for PS240XX.
Add DDR PMU Support for PD2408 SoCs
Modify the name of DMU PMU cycles event.
Modify the name of DDR PMU cycles event.
Modify the name of PCIe PMU cycles event.
Fix issue with PS23X00 DDR PMU on PBF < 1.20.
Fix issue in dmu pmu driver when cpu is offlined
Rename DDR PMU event names
Add driver support for PCIe PMU v2.0
Add a unified driver support for DDR PMU
Add driver support for PCIe Link
Add driver support for MSI PMU
Bugfix DDR PMU driver count error
Fix PCIe PMU driver compile failure
Modify the enable logic of time mode

…CIe PMU.

This reverts commit c019dd510742274e7faadf2ccf934902638c7199.
Reason for revert: <Modify the HID for PS240XX PCIe PMU>

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Hu Xianghua <huxianghua@phytium.com.cn>
…DR PMU.

This reverts commit 6b95559ae805afcc01cd1960da56c96214ef3522.
Reason for revert: <Modify the HID for PS240XX DDR PMU>

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Hu Xianghua <huxianghua@phytium.com.cn>
Add a new HID to differentiate between PS230XX and PS240XX DDR PMU
and add support for PS240XX platforms.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Hu Xianghua <huxianghua@phytium.com.cn>
Add a new HID to differentiate between PS230XX and PS240XX PCIe PMU
and add support for PS240XX platforms.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Add DDR controller performance monitoring unit (PMU) Support for
Phytium PD2408 SoCs.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Add a prefix before the name of the pd2408 dmu pmu cycles event.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Add a prefix before the name of the ddr pmu cycles event.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Add a prefix before the name of the pcie pmu cycles event.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Fix a system panic issue caused by the PS23X00 DDR PMU on Phytium PBF
firmware version below 1.20.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
When the dmu pmu driver is migrated to the target cpu, offlining
the target cpu will cause the system panic. We fix this issue.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Standarize event naming to use all lowercase and avoid
mixing uppercase mixing uppercase and lowercase letters.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Introduce driver support for the PCIe PMU v2p0. The driver enables
discovery and registration of PMU capabilities in PCIe devices.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Introduce a unified driver support for the DDR performance monitoring
unit. The driver enables discovery and registration of
PMU capabilities in DDR devices.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Fu Boyi <fuboyi2150@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Introduce driver support for the PCIe Link performance monitoring
unit. The driver enables discovery and registration of
PMU capabilities in PCIe Link devices.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Fu Boyi <fuboyi2150@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Introduce driver support for the MSI performance monitoring
unit. The driver enables discovery and registration of
PMU capabilities in MSI devices.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Fu Boyi <fuboyi2150@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Resolve the count error issue caused by acquiring event index error
for DDR PMU drivers.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Fu Boyi <fuboyi2150@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
When CONFIG_ARCH_PHYTIUM and CONFIG_ACPI are not set,
but CONFIG_COMPILE_TEST is enabled, the pcie pmu driver
fails to compile.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Tan Rui <tanrui2142@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Modify the enable logic in PCIe Link PMU driver to properly set up
time mode and start-stop mode.

Signed-off-by: Zhang Fuxiang <zhangfuxiang2144@phytium.com.cn>
Signed-off-by: Fu Boyi <fuboyi2150@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Sorry @wangchenlu2236, your pull request is larger than the review limit of 150,000 diff characters

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign dongert for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot

Copy link
Copy Markdown

Hi @wangchenlu2236. Thanks for your PR.

I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Sorry @wangchenlu2236, your pull request is larger than the review limit of 150,000 diff characters

@deepin-ci-robot

Copy link
Copy Markdown

Hi @wangchenlu2236. Thanks for your PR.

I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants