Skip to contentSkip to conversation

Acer 1304xc powernowk7 patch & kernel 2.6.8-rc3-mm1

PATCH Marijan Peh 1 participant 1 message Aug 9, 2004

lore
Share & tools
lore
#0 lore raw

How to implement this patch in kernel 2.6.8-rc3-mm1.

[aspire_patch text/x-diff (2606 bytes)]

arch/i386/kernel/powernow-k7.c 2003-06-30 13:41:19.000000000 +0200 renamed from arch/i386/kernel/powernow-k7.c 2003-06-30 13:40:16.000000000 +0200 +1 -0
@@ -167,6 +167,29 @@
        unsigned int j, speed;
        u8 fid, vid;
 
+/* hardcoded modifies for mobile Athlon xp 1800+ on Acer Aspire 1300

with buggy bios */+
+ pst = kmalloc(10*sizeof(unsigned char), GFP_KERNEL);
+ if (!pst)
+ return -ENOMEM;
+

+       *pst++ = 4;  /*  666 MHz */
+       *pst++ = 19; /*   1.20 V */
+       *pst++ = 6;  /*  800 Mhz */
+       *pst++ = 19; /*   1.20 V */
+       *pst++ = 10; /* 1066 Mhz */
+       *pst++ = 19; /*   1.20 V */
+       *pst++ = 14; /* 1333 Mhz */
+       *pst++ = 11; /*   1.45 V */
+       *pst++ = 1;  /* 1533 Mhz */
+       *pst = 9;    /*   1.55 V */

+
+ pst -= 9;
+
+ fsb=133;
+
+/*************************************************/
+
powernow_table = kmalloc((sizeof(struct cpufreq_frequency_table)
* (number_scales + 1)), GFP_KERNEL); if (!powernow_table)

                return -ENOMEM;
@@ -187,7 +210,7 @@
 #endif
                }
-               dprintk (KERN_INFO PFX "   FID: 0x%x (%d.%dx [%dMHz])\t", fid,
+               dprintk (KERN_INFO PFX "   FID: 0x%x (%d.%dx [%dMHz])  ", fid,

fid_codes[fid] / 10, fid_codes[fid] % 10, speed);

if (speed < minimum_speed)
@@ -328,9 +351,11 @@

                                if ((etuple == pst->cpuid) && (maxfid==pst->maxfid) &&
(startvid==pst->startvid))                              {
                                        dprintk (KERN_INFO PFX "PST:%d (@%p)\n", i,
pst);-                                  dprintk (KERN_INFO PFX " cpuid: 0x%x\t", pst->
cpuid);
-                                       dprintk ("fsb: %d\t", pst->fsbspeed);
-                                       dprintk ("maxFID: 0x%x\t", pst->maxfid);
+                                       dprintk (KERN_INFO PFX " cpuid: 0x%x  ", pst->
cpuid);
+                                       /* modified for mobile Athlon XP 1800+ */
+                                       dprintk ("fsb: %d  ", 133);
+                                       /***************************************/
+                                       dprintk ("maxFID: 0x%x  ", pst->maxfid);
                                        dprintk ("startvid: 0x%x\n", pst->startvid);
 
                                        fsb = pst->fsbspeed;

-- end --

I have no programming exp.
Patch was full functional in older cpufreq code.

Thnx

Signature · 1 line
http://nymos.dyndns.org/