Re: CPU C-state storange on Panasonic TOUGH BOOK CF-R9

From: Andriy Gapon <avg_at_icyb.net.ua>
Date: Sun, 12 Sep 2010 18:38:58 +0300
on 12/09/2010 18:22 Andriy Gapon said the following:
> Observations are correct, but incomplete; the conclusions are wrong.
> At the end of the boot there are message like this one:
> PROCESSOR-0722 [402244] cpu_cx_cst            : acpi_cpu0: Got C2 - 245 latency
> This is a result of re-evaluation of _CST because of a notification from ACPI.
> 

But still, as you suggest, a patch like the following should be tested and
committed:

--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
_at__at_ -828,7 +828,8 _at__at_ acpi_cpu_cx_list(struct acpi_cpu_softc *sc)
     sbuf_new(&sb, sc->cpu_cx_supported, sizeof(sc->cpu_cx_supported),
 	SBUF_FIXEDLEN);
     for (i = 0; i < sc->cpu_cx_count; i++) {
-	sbuf_printf(&sb, "C%d/%d ", i + 1, sc->cpu_cx_states[i].trans_lat);
+	sbuf_printf(&sb, "C%d/%d ", sc->cpu_cx_states[i].type,
+	    sc->cpu_cx_states[i].trans_lat);
 	if (sc->cpu_cx_states[i].type < ACPI_STATE_C3)
 	    sc->cpu_non_c3 = i;
     }

P.S. I restored acpi_at_ cc: which I think is quite relevant, but was somehow lost.
-- 
Andriy Gapon
Received on Sun Sep 12 2010 - 13:39:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:07 UTC