FreeBSD Bugzilla – Attachment 237490 Details for
Bug 253288
hwpstate_intel: modern ThinkPads wedge under any kind of load or during boot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
simple debug patch
debug.patch (text/plain), 1.31 KB, created by
Luís Henriques
on 2022-10-20 22:06:58 UTC
(
hide
)
Description:
simple debug patch
Filename:
MIME Type:
Creator:
Luís Henriques
Created:
2022-10-20 22:06:58 UTC
Size:
1.31 KB
patch
obsolete
>diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c >index 3321019beaf..95ec8899ca8 100644 >--- a/sys/dev/acpica/acpi_cpu.c >+++ b/sys/dev/acpica/acpi_cpu.c >@@ -403,8 +403,16 @@ acpi_cpu_attach(device_t dev) > * Work around a lingering SMM bug which leads to freezes when handling > * CPPC notifications. Tell the SMM we will handle any CPPC notifications. > */ >- if ((cpu_power_eax & CPUTPM1_HWP_NOTIFICATION) && cppc_notify) >+ if ((cpu_power_eax & CPUTPM1_HWP_NOTIFICATION) && cppc_notify) { >+ device_printf(dev, "==> DEBUG: OK\n"); > sc->cpu_features |= ACPI_CAP_INTR_CPPC; >+ } else { >+ device_printf(dev, "==> DEBUG: res: %d eax: 0x%x mask: 0x%x " >+ "cppc_notify: %d\n", >+ (cpu_power_eax & CPUTPM1_HWP_NOTIFICATION), >+ cpu_power_eax, CPUTPM1_HWP_NOTIFICATION, >+ cppc_notify); >+ } > #endif > > if (devclass_get_drivers(acpi_cpu_devclass, &drivers, &drv_count) == 0) { >@@ -990,6 +998,7 @@ acpi_cpu_startup(void *arg) > SYSCTL_ADD_BOOL(&cpu_sysctl_ctx, SYSCTL_CHILDREN(cpu_sysctl_tree), > OID_AUTO, "cppc_notify", CTLFLAG_RDTUN | CTLFLAG_MPSAFE, > &cppc_notify, 0, "Register for CPPC Notifications"); >+ device_printf(sc->cpu_dev, "==> DEBUG init cppc_notify: %d\n", cppc_notify); > > /* Take over idling from cpu_idle_default(). */ > cpu_cx_lowest_lim = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253288
: 237490