[coreboot-gerrit] Patch set updated for coreboot: ec3bf18 macbook21: Add CST entries

Mono Moosbart (mono@posteo.de) gerrit at coreboot.org
Wed Dec 31 02:40:44 CET 2014


Mono Moosbart (mono at posteo.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7923

-gerrit

commit ec3bf181f1ec33e7eeaeee0d9834bf04aef0c376
Author: Mono <mono at posteo.de>
Date:   Thu Dec 25 08:11:54 2014 +0100

    macbook21: Add CST entries
    
    Due to the CST entries the machine uses less power. This can be
    seen by monitoring CPU temperature and time left the machine can
    run on battery. CPU temperature measurements have been done with
    "lm_sensors", battery querying with "acpi". Tests have been done
    before applying this patch and after. In both cases the battery
    was fully loaded and the machine powered up on battery, without
    AC. In both tests the machine was idleing for more than 1 hour.
    
    Without this patch battery was predicted to last 01:52:30 hours,
    CPU temperature first measurement showed 38 degrees. After 15 min
    idle, temperature has reached its maximum value in this test of
    61 and 62 degrees (Core 0 and 1). Fan speed begins to increase
    shortly after 15 min. From its minimal value 1800 rpm it reaches
    3100 rpm after 40 min. CPU temperature did not increase any further.
    After 60 min idle, the battery was predicted to still last 57 min.
    
    With this patch battery was predicted to last 02:22:40 hours. That
    is plus 30 min. CPU temperature begins at 35 degrees. After 15 min
    temperature has reached 45 degrees; after 30 min it has reached
    the maximal temperature during this test of about 50 degrees.
    That is 10 degrees improvement. The fan stayed at minimal speed.
    After 60 min idle, the batter was predicted to still last 01:22:48
    hours.
    
    Change-Id: I6b2173df1dc09300329b61b51b79f4b9f4a8fb13
    Signed-off-by: Axel Holewa <mono at posteo.de>
---
 src/mainboard/apple/macbook21/mainboard.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c
index 99527c1..7d8ffd9 100644
--- a/src/mainboard/apple/macbook21/mainboard.c
+++ b/src/mainboard/apple/macbook21/mainboard.c
@@ -36,9 +36,15 @@
 #include <drivers/intel/gma/int15.h>
 #define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
 
+static acpi_cstate_t cst_entries[] = {
+	{ 1,  1, 1000, { 0x7f, 1, 2, { 0 }, 0, 0 } },
+	{ 2,  1,  500, { 0x7f, 1, 2, { 0 }, 0x10, 0 } },
+};
+
 int get_cst_entries(acpi_cstate_t **entries)
 {
-	return 0;
+	*entries = cst_entries;
+	return ARRAY_SIZE(cst_entries);
 }
 
 static void mainboard_init(device_t dev)



More information about the coreboot-gerrit mailing list