Patchwork P-states for selected socket 754 processors

login
register
about
Submitter Jonathan A. Kollasch
Date 2011-03-04 14:55:37
Message ID <20110304145537.GB18832@tarantulon.kollasch.net>
Download mbox | patch
Permalink /patch/2738/
State Accepted
Commit r6432
Headers show

Comments

Jonathan A. Kollasch - 2011-03-04 14:55:37
Add P-states for select Socket 754 processors.

States for AMA3000BEX5AR, SDA3100AIO3BX, and SDA3400AIO3BX
are from AMD document 30430 3.51.  States for ADA3200AIO4BX
derived from SSDT of a MS-7135.  States for TMDML34BKX5LD derived
from legacy PowerNow! table of a MS-7135, and therefore lack accurate
TDP information.

Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net>
-----
Marc Jones - 2011-03-04 16:37:11
On Fri, Mar 4, 2011 at 7:55 AM, Jonathan A. Kollasch
<jakllsch@kollasch.net> wrote:
> Add P-states for select Socket 754 processors.
>
> States for AMA3000BEX5AR, SDA3100AIO3BX, and SDA3400AIO3BX
> are from AMD document 30430 3.51.  States for ADA3200AIO4BX
> derived from SSDT of a MS-7135.  States for TMDML34BKX5LD derived
> from legacy PowerNow! table of a MS-7135, and therefore lack accurate
> TDP information.
>
> Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net>

Acked-by: Marc Jones <marcj303@gmail.com>

Patch

Index: src/cpu/amd/model_fxx/powernow_acpi.c
===================================================================
--- src/cpu/amd/model_fxx/powernow_acpi.c	(revision 6430)
+++ src/cpu/amd/model_fxx/powernow_acpi.c	(working copy)
@@ -563,6 +563,21 @@ 
 	  {1800, 1200, 748}, {1000, 1100, 466}}},
 	{3000, 0x4, 0x10ff0, 0xa, 0xa, 670,
 	 {{1000, 1100, 210}}},
+	/* AMA3000BEX5AR */
+	{3000, 0x4, 0xf4a, 0xa, 0x0, 815,
+	 {{1600, 1400, 570}, {800, 1100, 190}}},
+	/* TMDML34BKX5LD, needs real TDP info */
+	{34, 0xa, 0x20f42, 0xa, 0x0, 350,
+	 {{1600, 1400, 340}, {800, 1000, 330}}},
+	/* SDA3100AIO3BX */
+	{3100, 0x26, 0x20fc2, 0xa, 0xa, 590,
+	 {{1000, 1100, 217}}},
+	/* SDA3400AIO3BX */
+	{3400, 0x26, 0x20fc2, 0xc, 0xc, 590,
+	 {{1800, 1350, 496}, {1000, 1100, 207}}},
+	/* ADA3200AIO4BX */
+	{3200, 0x4, 0x20fc2, 0xe, 0xe, 670,
+	 {{2000, 1350, 647}, {1800, 1300, 548}, {1000, 1100, 275}}},
 };
 
 static int pstates_algorithm(u32 pcontrol_blk, u8 plen, u8 onlyBSP)