-
Notifications
You must be signed in to change notification settings - Fork 105
[Deepin-Kernel-SIG] [linux-6.6.y] [deepin] workaround 920 desktop cpufreq #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| { | ||
|
|
||
| if (read_cpuid_implementor() == ARM_CPU_IMP_HISI) { | ||
| /* For normal memory we already have a cacheable mapping. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| int ret = -ENODATA; | ||
|
|
||
| if (!osc_sb_cppc2_support_acked) { | ||
| if (read_cpuid_implementor() != ARM_CPU_IMP_HISI && !osc_sb_cppc2_support_acked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
…cess kernel memory If we have a buggy bios,and we have no bios update for it, we cannot access the _OSC map, so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Log: ACPI CPPC: Failed to ioremap PCC comm region mem for 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 Link:https://gitee.com/openeuler/kernel/issues/I39AN0 Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
If we have a buggy bios,and we have no bios update for it, we cannot acked CPPCv2. so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Test result: cpu freq can from 200Mhz to 2.6Ghz. Log: cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked
fcb93a6 to
a52a204
Compare
| { | ||
| #ifdef CONFIG_ARM64 | ||
| if (read_cpuid_implementor() == ARM_CPU_IMP_HISI) { | ||
| /* For normal memory we already have a cacheable mapping. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| int ret = -ENODATA; | ||
|
|
||
| #ifdef CONFIG_ARM64 | ||
| if (read_cpuid_implementor() != ARM_CPU_IMP_HISI && !osc_sb_cppc2_support_acked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review关键摘要:
是否建议立即修改: |
…cess kernel memory If we have a buggy bios,and we have no bios update for it, we cannot access the _OSC map, so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Log: ACPI CPPC: Failed to ioremap PCC comm region mem for 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 Link: https://gitee.com/openeuler/kernel/issues/I39AN0 Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Link: deepin-community#409 (cherry picked from commit 534de05) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
If we have a buggy bios,and we have no bios update for it, we cannot acked CPPCv2. so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Test result: cpu freq can from 200Mhz to 2.6Ghz. Log: cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked Link: deepin-community#409 (cherry picked from commit 816c5ec) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
…cess kernel memory If we have a buggy bios,and we have no bios update for it, we cannot access the _OSC map, so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Log: ACPI CPPC: Failed to ioremap PCC comm region mem for 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 Link: https://gitee.com/openeuler/kernel/issues/I39AN0 Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Link: deepin-community#409 (cherry picked from commit 534de05) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
If we have a buggy bios,and we have no bios update for it, we cannot acked CPPCv2. so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Test result: cpu freq can from 200Mhz to 2.6Ghz. Log: cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked Link: deepin-community#409 (cherry picked from commit 816c5ec) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
…cess kernel memory If we have a buggy bios,and we have no bios update for it, we cannot access the _OSC map, so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Log: ACPI CPPC: Failed to ioremap PCC comm region mem for 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 ACPI CPPC: Failed to find PCC channel for subspace 0 Link: https://gitee.com/openeuler/kernel/issues/I39AN0 Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Link: #409 (cherry picked from commit 534de05) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
If we have a buggy bios,and we have no bios update for it, we cannot acked CPPCv2. so the CPPC cpufreq driver will not probed in some case. example: Kunpeng 920 8 core Desktop Board Test result: cpu freq can from 200Mhz to 2.6Ghz. Log: cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked cppc_acpi:acpi_cppc_processor_probe: ACPI CPPC: CPPC v2 _OSC not acked Link: #409 (cherry picked from commit 816c5ec) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
workaround由于BIOS bug 导致 桌面版本 鲲鹏920 不能使能cppc-cpufreq的问题。