-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Deepin-Kernel-SIG] [linux-6.6.y] [deepin] workaround 920 desktop cpufreq #409
Conversation
@@ -269,6 +269,20 @@ pgprot_t __acpi_get_mem_attribute(phys_addr_t addr) | |||
|
|||
void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) | |||
{ | |||
|
|||
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?)
@@ -681,7 +681,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr) | |||
acpi_status status; | |||
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
@@ -269,6 +269,20 @@ pgprot_t __acpi_get_mem_attribute(phys_addr_t addr) | |||
|
|||
void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) | |||
{ | |||
#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?)
@@ -681,7 +681,11 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr) | |||
acpi_status status; | |||
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.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
deepin pr auto review关键摘要:
是否建议立即修改: |
workaround由于BIOS bug 导致 桌面版本 鲲鹏920 不能使能cppc-cpufreq的问题。