DragonFly submit List (threaded) for 2006-12
DragonFly BSD
DragonFly submit List (threaded) for 2006-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

est.c table patch


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Wed, 13 Dec 2006 00:01:43 +0900
Mail-followup-to: submit@crater.dragonflybsd.org

Hello.
Attached is a patch to add some tables to the current EST driver that
I'm intending to commit in a few days if it doesn't hurt anyone.  It's
based on the patches posted to kernel@ (but as before, I'm not going
to replace the original ones as I'm not sure if there's CPU model which
does work with the original table).

http://les.ath.cx/DragonFly/est.c.patch

Regards.
o Add modified tables based on the patches from the following people:
  Pentium M 750 1.86GHz		(Vlad Galu)
  Pentium M 760 2.00GHz		(Victor Balada Diaz)
  Pentium M 715 1.50GHz		(Ryan O'Connor)

o Bring in some fixes from NetBSD
  rev 1.27: Fix Pentium M 770 table.
  rev 1.25: Added 'Low Voltage Intel Pentium M processor 1.30 GHz' entry.

Index: est.c
===================================================================
RCS file: /home/source/dragonfly/cvs/src/sys/machine/pc32/i386/est.c,v
retrieving revision 1.2
diff -u -p -r1.2 est.c
--- est.c	30 Jun 2006 07:34:59 -0000	1.2
+++ est.c	12 Dec 2006 14:46:46 -0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: est.c,v 1.24 2006/03/15 22:56:38 dogcow Exp $	*/
+/*	$NetBSD: est.c,v 1.25 2006/06/18 16:39:56 nonaka Exp $	*/
 /*
  * Copyright (c) 2003 Michael Eriksson.
  * All rights reserved.
@@ -84,7 +84,7 @@
  *
  *   ACPI objects: _PCT is MSR location, _PSS is freq/voltage, _PPC is caps.
  *
- * $NetBSD: est.c,v 1.24 2006/03/15 22:56:38 dogcow Exp $
+ * $NetBSD: est.c,v 1.25 2006/06/18 16:39:56 nonaka Exp $
  * $DragonFly: src/sys/machine/pc32/i386/est.c,v 1.2 2006/06/30 07:34:59 y0netan1 Exp $
  */
 
@@ -139,6 +139,17 @@ static const struct fq_info pentium_m_12
 	{  600,  956 },
 };
 
+/* Low Voltage Intel Pentium M processor 1.30 GHz */
+static const struct fq_info pentium_m_1300_lv[] = {
+	{ 1300, 1180 },
+	{ 1200, 1164 },
+	{ 1100, 1100 },
+	{ 1000, 1020 },
+	{  900, 1004 },
+	{  800,  988 },
+	{  600,  956 },
+};
+
 /* Intel Pentium M processor 1.30 GHz */
 static const struct fq_info pentium_m_1300[] = {
 	{ 1300, 1388 },
@@ -348,6 +359,14 @@ static const struct fq_info pentium_m_n7
 	{  800,  988 }
 };
 
+static const struct fq_info pentium_m_n750_2[] = {
+	{ 1867, 1356 },
+	{ 1600, 1228 },
+	{ 1333, 1148 },
+	{ 1067, 1068 },
+	{  800,  988 }
+};
+
 /* Intel Pentium M processor 755 2.0 GHz */
 static const struct fq_info pentium_m_n755[] = {
 	{ 2000, 1340 },
@@ -369,6 +388,15 @@ static const struct fq_info pentium_m_n7
 	{  800,  988 }
 };
 
+/* Intel Pentium M processor 760 2.0 GHz */
+static const struct fq_info pentium_m_n760_2[] = {
+	{ 2000, 1308 },
+	{ 1600, 1244 },
+	{ 1333, 1164 },
+	{ 1067, 1084 },
+	{  800,  988 }
+};
+
 /* Intel Pentium M processor 765 2.1 GHz */
 static const struct fq_info pentium_m_n765[] = {
 	{ 2100, 1340 },
@@ -383,14 +411,12 @@ static const struct fq_info pentium_m_n7
 
 /* Intel Pentium M processor 770 2.13 GHz */
 static const struct fq_info pentium_m_n770[] = {
-	{ 2133, 1551 },
-	{ 1800, 1429 },
-	{ 1600, 1356 },
-	{ 1400, 1180 },
-	{ 1200, 1132 },
-	{ 1000, 1084 },
-	{  800, 1036 },
-	{  600,  988 }
+	{ 2133, 1356 },
+	{ 1867, 1292 },
+	{ 1600, 1212 },
+	{ 1333, 1148 },
+	{ 1067, 1068 },
+	{  800,  988 }
 };
 
 struct fqlist {
@@ -408,6 +434,7 @@ static const struct fqlist pentium_m[] =
 	ENTRY("1100", 0x0695, pentium_m_1100, 3),
 	ENTRY("1200", 0x0695, pentium_m_1200, 3),
 	ENTRY("1300", 0x0695, pentium_m_1300, 3),
+	ENTRY("1300", 0x0695, pentium_m_1300_lv, 3),
 	ENTRY("1400", 0x0695, pentium_m_1400, 3),
 	ENTRY("1500", 0x0695, pentium_m_1500, 3),
 	ENTRY("1600", 0x0695, pentium_m_1600, 3),
@@ -430,6 +457,7 @@ static const struct fqlist pentium_m_dot
 	/* 'regular' 400 MHz FSB CPUs */
 	ENTRY("1.40", 0x06d6, pentium_m_n710, 3),
 	ENTRY("1.50", 0x06d6, pentium_m_n715, 3),
+	ENTRY("1.50", 0x06d8, pentium_m_n715, 3),
 	ENTRY("1.60", 0x06d6, pentium_m_n725, 3),
 	ENTRY("1.70", 0x06d6, pentium_m_n735, 3),
 	ENTRY("1.80", 0x06d6, pentium_m_n745, 3),
@@ -441,8 +469,11 @@ static const struct fqlist pentium_m_dot
 	ENTRY("1.73", 0x06d8, pentium_m_n740, 4),
 	ENTRY("1.73", 0x06d8, pentium_m_n740_2, 4),
 	ENTRY("1.86", 0x06d8, pentium_m_n750, 4),
+	ENTRY("1.86", 0x06d8, pentium_m_n750_2, 4),
 	ENTRY("2.00", 0x06d8, pentium_m_n760, 4),
+	ENTRY("2.00", 0x06d8, pentium_m_n760_2, 4),
 	ENTRY("2.13", 0x06d8, pentium_m_n770, 4),
+	ENTRY("2.13", 0x06d8, pentium_m_n770_2, 4),
 
 };
 #undef ENTRY


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]