All of lore.kernel.org
 help / color / mirror / Atom feed
* Acer Aspire  1350 broken PST
@ 2004-04-15 22:00 jy
  2004-04-16 12:05 ` Bruno Ducrot
  0 siblings, 1 reply; 14+ messages in thread
From: jy @ 2004-04-15 22:00 UTC (permalink / raw)
  To: cpufreq

I have Acer Aspire 1357LMi laptop with AMD Athlon XP 3000+ and of course 
cpufreq don't work

powernow: AMD K7 CPU detected.
powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: Found PSB header at c00f06f0
powernow: Table version: 0x12
powernow: Flags: 0x0 (Mobile voltage regulator)
powernow: Settling Time: 100 microseconds.
powernow: Has 8 PST tables. (Only dumping ones relevant to this CPU).
powernow: No PST tables match this cpuid (0x7a0)
powernow: This is indicative of a broken BIOS.
powernow: See 
http://www.codemonkey.org.uk/projects/cpufreq/powernow-k7.shtml

I've read many interesting threads here and I saw the patch which use 
acpi which would solve my problem I think. If you need volunteer to test 
it on an acer laptop I think I can.

I tried to flash the bios with the one on acer website but it seems that 
it is older than the one I already have, and it doesn't solve the 
problem anyway.

I managed to run at 2200 Mhz max and 800Mhz min under windows

here are some reports

cpuinfo :

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 10
model name	: Mobile AMD Athlon(tm) XP 3000+
stepping	: 0
cpu MHz		: 796.380
cache size	: 512 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips	: 1564.67

dmidecode :
# dmidecode 2.4
SMBIOS 2.3 present.
24 structures occupying 766 bytes.
Table at 0x000D8010.
Handle 0x0000
	DMI type 0, 20 bytes.
	BIOS Information
		Vendor: Acer
		Version: 3A24
		Release Date: 12/01/2003
		Address: 0xE28F0
		Runtime Size: 120592 bytes
		ROM Size: 512 kB
		Characteristics:
			PCI is supported
			PC Card (PCMCIA) is supported
			PNP is supported
			APM is supported
			BIOS is upgradeable
			BIOS shadowing is allowed
			Boot from CD is supported
			Selectable boot is supported
			EDD is supported
			5.25"/1.2 MB floppy services are supported (int 13h)
			Print screen service is supported (int 5h)
			8042 keyboard services are supported (int 9h)
			Serial services are supported (int 14h)
			Printer services are supported (int 17h)
			CGA/mono video services are supported (int 10h)
			ACPI is supported
			USB legacy is supported
			AGP is supported
			Smart battery is supported
			BIOS boot specification is supported
Handle 0x0001
	DMI type 1, 25 bytes.
	System Information
		Manufacturer: Acer,Inc.
		Product Name: Aspire 1350
		Version: 3A24
		Serial Number: LXA1005375405003AEEF15
		UUID: E0F35E22-3E51-D811-8C30-00C09F34DEC1
		Wake-up Type: Power Switch
Handle 0x0002
	DMI type 2, 8 bytes.
	Base Board Information
		Manufacturer: Acer,Inc.
		Product Name: Aspire 1350
		Version: Rev.A
		Serial Number: None
Handle 0x0003
	DMI type 3, 17 bytes.
	Chassis Information
		Manufacturer: Acer,Inc.
		Type: Notebook
		Lock: Not Present
		Version: 3A24
		Serial Number: LXA1005375405003AEEF15
		Asset Tag: ................................
		Boot-up State: Safe
		Power Supply State: Safe
		Thermal State: Safe
		Security Status: None
		OEM Information: 0x00001234
Handle 0x0004
	DMI type 4, 32 bytes.
	Processor Information
		Socket Designation: U23
		Type: Central Processor
		Family: Athlon
		Manufacturer: AMD
		ID: A0 06 00 00 FF F9 83 03
		Signature: Family 6, Model A, Stepping 0
		Flags:
			FPU (Floating-point unit on-chip)
			VME (Virtual mode extension)
			DE (Debugging extension)
			PSE (Page size extension)
			TSC (Time stamp counter)
			MSR (Model specific registers)
			PAE (Physical address extension)
			MCE (Machine check exception)
			CX8 (CMPXCHG8 instruction supported)
			SEP (Fast system call)
			MTRR (Memory type range registers)
			PGE (Page global enable)
			MCA (Machine check architecture)
			CMOV (Conditional move instruction supported)
			PAT (Page attribute table)
			PSE-36 (36-bit page size extension)
			MMX (MMX technology supported)
			FXSR (Fast floating-point save and restore)
			SSE (Streaming SIMD extensions)
		Version: AMD Athlon(tm) pr
		Voltage: 2.2 V
		External Clock: Unknown
		Max Speed: 1000 MHz
		Current Speed: 2200 MHz
		Status: Populated, Enabled
		Upgrade: ZIF Socket
		L1 Cache Handle: 0x0008
		L2 Cache Handle: 0x0009
		L3 Cache Handle: Not Provided
Handle 0x0005
	DMI type 5, 20 bytes.
	Memory Controller Information
		Error Detecting Method: None
		Error Correcting Capabilities:
			None
		Supported Interleave: One-way Interleave
		Current Interleave: One-way Interleave
		Maximum Memory Module Size: 128 MB
		Maximum Total Memory Size: 256 MB
		Supported Speeds:
			70 ns
			60 ns
		Supported Memory Types:
			FPM
			EDO
			DIMM
			SDRAM
		Memory Module Voltage: 3.3 V
		Associated Memory Slots: 2
			0x0000
			0x0001
		Enabled Error Correcting Capabilities:
			Unknown
[...]

x86info patched to dump pst :

x86info v1.13.  Dave Jones 2001-2003
Feedback to <davej@redhat.com>.

Found 1 CPU
--------------------------------------------------------------------------
Family: 6 Model: 10 Stepping: 0
CPU Model : Mobile Athlon XP (Barton)
PowerNOW! Technology information
Available features:
	Temperature sensing diode present.
	Bus divisor control
	Voltage ID control

MSR: 0xc0010041=0x0000000000110706 : 00000000 00000000 00000000 00000000
            00000000 00010001 00000111 00000110
MSR: 0xc0010042=0x00070707001b0606 : 00000000 00000111 00000111 00000111
            00000000 00011011 00000110 00000110

FID changes will happen
VID changes won't happen
Current FSB multiplier code: 6.0
Voltage ID codes: Maximum=1.650V Startup=1.650V Currently=1.650V
Frequency ID codes: Maximum=16.5x Startup=6.0x Currently=6.0x
Decoding BIOS PST tables (maxfid=1b, startvid=7)
Found PSB header at 0x4018f6f0
Table version: 0x12
Flags: 0x0 (Mobile voltage regulator)
numpst= 8
Settling Time: 100 microseconds.
Has 8 PST tables. (Only dumping ones relevant to this CPU).
  --DEBUG: 7a0 ?= 7a0 && 27 ?= 21, 7 ?= 8
  PST:0 (@0x4018f700)
  cpuid: 0x7a0	  fsb: 133	  maxFID: 0x15	  startvid: 0x8
   num of p states in this table: 7
     FID: 0xd (9.5x [1264MHz])	VID: 0xe (1.300V)
     FID: 0xe (10.0x [1330MHz])	VID: 0xd (1.350V)
     FID: 0xf (10.5x [1396MHz])	VID: 0xc (1.400V)
     FID: 0x0 (11.0x [1463MHz])	VID: 0xb (1.450V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0xa (1.500V)
     FID: 0x2 (12.0x [1596MHz])	VID: 0x9 (1.550V)
     FID: 0x15 (13.5x [1796MHz])	VID: 0x8 (1.600V)

  --DEBUG: 7a0 ?= 7a0 && 27 ?= 22, 7 ?= 7
  PST:1 (@0x4018f716)
  cpuid: 0x7a0	  fsb: 133	  maxFID: 0x16	  startvid: 0x7
   num of p states in this table: 8
     FID: 0xc (9.0x [1197MHz])	VID: 0xe (1.300V)
     FID: 0xd (9.5x [1264MHz])	VID: 0xd (1.350V)
     FID: 0xe (10.0x [1330MHz])	VID: 0xc (1.400V)
     FID: 0xf (10.5x [1396MHz])	VID: 0xb (1.450V)
     FID: 0x0 (11.0x [1463MHz])	VID: 0xa (1.500V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0x9 (1.550V)
     FID: 0x3 (12.5x [1662MHz])	VID: 0x8 (1.600V)
     FID: 0x16 (14.0x [1862MHz])	VID: 0x7 (1.650V)

  --DEBUG: 7a0 ?= 7a0 && 27 ?= 24, 7 ?= 7
  PST:2 (@0x4018f72e)
  cpuid: 0x7a0	  fsb: 133	  maxFID: 0x18	  startvid: 0x7
   num of p states in this table: 8
     FID: 0xf (10.5x [1396MHz])	VID: 0xe (1.300V)
     FID: 0x0 (11.0x [1463MHz])	VID: 0xd (1.350V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0xc (1.400V)
     FID: 0x2 (12.0x [1596MHz])	VID: 0xb (1.450V)
     FID: 0x3 (12.5x [1662MHz])	VID: 0xa (1.500V)
     FID: 0x14 (13.0x [1729MHz])	VID: 0x9 (1.550V)
     FID: 0x15 (13.5x [1796MHz])	VID: 0x8 (1.600V)
     FID: 0x18 (15.0x [1995MHz])	VID: 0x7 (1.650V)

  --DEBUG: 7a0 ?= 7a0 && 27 ?= 26, 7 ?= 7
  PST:3 (@0x4018f746)
  cpuid: 0x7a0	  fsb: 133	  maxFID: 0x1a	  startvid: 0x7
   num of p states in this table: 8
     FID: 0x0 (11.0x [1463MHz])	VID: 0xe (1.300V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0xd (1.350V)
     FID: 0x2 (12.0x [1596MHz])	VID: 0xc (1.400V)
     FID: 0x3 (12.5x [1662MHz])	VID: 0xb (1.450V)
     FID: 0x14 (13.0x [1729MHz])	VID: 0xa (1.500V)
     FID: 0x15 (13.5x [1796MHz])	VID: 0x9 (1.550V)
     FID: 0x18 (15.0x [1995MHz])	VID: 0x8 (1.600V)
     FID: 0x1a (16.0x [2128MHz])	VID: 0x7 (1.650V)

  --DEBUG: 7a0 ?= 780 && 27 ?= 3, 7 ?= 8
  PST:4 (@0x4018f75e)
  cpuid: 0x780	  fsb: 133	  maxFID: 0x3	  startvid: 0x8
   num of p states in this table: 7
     FID: 0x9 (7.5x [998MHz])	VID: 0xe (1.300V)
     FID: 0xc (9.0x [1197MHz])	VID: 0xd (1.350V)
     FID: 0xd (9.5x [1264MHz])	VID: 0xc (1.400V)
     FID: 0xe (10.0x [1330MHz])	VID: 0xb (1.450V)
     FID: 0xf (10.5x [1396MHz])	VID: 0xa (1.500V)
     FID: 0x0 (11.0x [1463MHz])	VID: 0x9 (1.550V)
     FID: 0x3 (12.5x [1662MHz])	VID: 0x8 (1.600V)

  --DEBUG: 7a0 ?= 780 && 27 ?= 21, 7 ?= 8
  PST:5 (@0x4018f774)
  cpuid: 0x780	  fsb: 133	  maxFID: 0x15	  startvid: 0x8
   num of p states in this table: 7
     FID: 0xd (9.5x [1264MHz])	VID: 0xe (1.300V)
     FID: 0xe (10.0x [1330MHz])	VID: 0xd (1.350V)
     FID: 0xf (10.5x [1396MHz])	VID: 0xc (1.400V)
     FID: 0x0 (11.0x [1463MHz])	VID: 0xb (1.450V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0xa (1.500V)
     FID: 0x2 (12.0x [1596MHz])	VID: 0x9 (1.550V)
     FID: 0x15 (13.5x [1796MHz])	VID: 0x8 (1.600V)

  --DEBUG: 7a0 ?= 780 && 27 ?= 24, 7 ?= 7
  PST:6 (@0x4018f78a)
  cpuid: 0x780	  fsb: 133	  maxFID: 0x18	  startvid: 0x7
   num of p states in this table: 8
     FID: 0xf (10.5x [1396MHz])	VID: 0xe (1.300V)
     FID: 0x0 (11.0x [1463MHz])	VID: 0xd (1.350V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0xc (1.400V)
     FID: 0x2 (12.0x [1596MHz])	VID: 0xb (1.450V)
     FID: 0x3 (12.5x [1662MHz])	VID: 0xa (1.500V)
     FID: 0x14 (13.0x [1729MHz])	VID: 0x9 (1.550V)
     FID: 0x15 (13.5x [1796MHz])	VID: 0x8 (1.600V)
     FID: 0x18 (15.0x [1995MHz])	VID: 0x7 (1.650V)

  --DEBUG: 7a0 ?= 780 && 27 ?= 26, 7 ?= 7
  PST:7 (@0x4018f7a2)
  cpuid: 0x780	  fsb: 133	  maxFID: 0x1a	  startvid: 0x7
   num of p states in this table: 8
     FID: 0x0 (11.0x [1463MHz])	VID: 0xe (1.300V)
     FID: 0x1 (11.5x [1530MHz])	VID: 0xd (1.350V)
     FID: 0x2 (12.0x [1596MHz])	VID: 0xc (1.400V)
     FID: 0x3 (12.5x [1662MHz])	VID: 0xb (1.450V)
     FID: 0x14 (13.0x [1729MHz])	VID: 0xa (1.500V)
     FID: 0x15 (13.5x [1796MHz])	VID: 0x9 (1.550V)
     FID: 0x18 (15.0x [1995MHz])	VID: 0x8 (1.600V)
     FID: 0x1a (16.0x [2128MHz])	VID: 0x7 (1.650V)

Sorry for my bad english
Thanks
JY

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-15 22:00 Acer Aspire 1350 broken PST jy
@ 2004-04-16 12:05 ` Bruno Ducrot
  2004-04-16 15:00   ` jy
  0 siblings, 1 reply; 14+ messages in thread
From: Bruno Ducrot @ 2004-04-16 12:05 UTC (permalink / raw)
  To: jy; +Cc: cpufreq

On Fri, Apr 16, 2004 at 12:00:58AM +0200, jy wrote:
> I have Acer Aspire 1357LMi laptop with AMD Athlon XP 3000+ and of course 
> cpufreq don't work
> 

Could you please try latest cpufreq?  it's at
http://www.codemonkey.org.uk/projects/bitkeeper/cpufreq/

with CONFIG_ACPI_PROCESSOR=YES ?

I would like also that you test dump_psb.c

wget http://poup.poupinou.org/cpufreq/powernow-k7/dump_psb.c
gcc -O2 -Wall dump_psb.c -o dump_psb
sudo ./dump_psb 9

in order to check if that model actually do have more PSTs.

Cheers,


-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 12:05 ` Bruno Ducrot
@ 2004-04-16 15:00   ` jy
  2004-04-16 15:11     ` Bruno Ducrot
  0 siblings, 1 reply; 14+ messages in thread
From: jy @ 2004-04-16 15:00 UTC (permalink / raw)
  To: cpufreq

Bruno Ducrot wrote:
> On Fri, Apr 16, 2004 at 12:00:58AM +0200, jy wrote:
> 
>>I have Acer Aspire 1357LMi laptop with AMD Athlon XP 3000+ and of course 
>>cpufreq don't work
>>
> 
> 
> Could you please try latest cpufreq?  it's at
> http://www.codemonkey.org.uk/projects/bitkeeper/cpufreq/
> 
> with CONFIG_ACPI_PROCESSOR=YES ?


powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: FSB:  48.270 MHz
powernow: Found PSB header at c00f06f0
powernow: Table version: 0x12
powernow: Flags: 0x0 (Mobile voltage regulator)
powernow: Settling Time: 100 microseconds.
powernow: Has 8 PST tables. (Only dumping ones relevant to this CPU).
powernow: No PST tables match this cpuid (0x7a0)
powernow: This is indicative of a broken BIOS.
powernow: Trying ACPI perflib
powernow: acpi:  P0: 2200 MHz 75000 mW 125 uS control 00d058fb SGTC 13334
powernow:    FID: 0x1b (16.5x [796MHz])	VID: 0x7 (1.650V)
powernow: acpi:  P1: 1800 MHz 55000 mW 125 uS control 00d05935 SGTC 13334
powernow:    FID: 0x15 (13.5x [651MHz])	VID: 0x9 (1.550V)
powernow: acpi:  P2: 1467 MHz 32000 mW 125 uS control 00d059c0 SGTC 13334
powernow:    FID: 0x0 (11.0x [530MHz])	VID: 0xe (1.300V)
powernow: acpi:  P3: 1064 MHz 30000 mW 125 uS control 00d059ca SGTC 13334
powernow:    FID: 0xa (8.0x [386MHz])	VID: 0xe (1.300V)
powernow: acpi:  P4: 800 MHz 26000 mW 125 uS control 00d059c6 SGTC 13334
powernow:    FID: 0x6 (6.0x [289MHz])	VID: 0xe (1.300V)
powernow: Minimum speed 289 MHz. Maximum speed 796 MHz.

------

x86info v1.12b.  Dave Jones 2001-2003
Feedback to <davej@redhat.com>.

Need to be root to use specified options.
Found 1 CPU
[...]
PowerNOW! Technology information
Available features:
	Temperature sensing diode present.
	Bus divisor control
	Voltage ID control

Connector type: Socket A (462 Pin PGA)


2.2Ghz processor (estimate).


Thanks, it seems to work according to x86info. But the fsb is wrong.


> I would like also that you test dump_psb.c
> 
> wget http://poup.poupinou.org/cpufreq/powernow-k7/dump_psb.c
> gcc -O2 -Wall dump_psb.c -o dump_psb
> sudo ./dump_psb 9
> 
> in order to check if that model actually do have more PSTs.

PSB version: 12 flags: 0 settling time 100us res1 0 num pst 8
Overriding number of pst :9
   PST 1  cpuid 7a0 fsb 133 mfid 15 svid 8 numberstates 7
     0  1263500kHz  FID 0d ( 9.5)  VID 0e (1300mV)
     1  1330000kHz  FID 0e (10.0)  VID 0d (1350mV)
     2  1396500kHz  FID 0f (10.5)  VID 0c (1400mV)
     3  1463000kHz  FID 00 (11.0)  VID 0b (1450mV)
     4  1529500kHz  FID 01 (11.5)  VID 0a (1500mV)
     5  1596000kHz  FID 02 (12.0)  VID 09 (1550mV)
     6  1795500kHz  FID 15 (13.5)  VID 08 (1600mV)
   PST 2  cpuid 7a0 fsb 133 mfid 16 svid 7 numberstates 8
     0  1197000kHz  FID 0c ( 9.0)  VID 0e (1300mV)
     1  1263500kHz  FID 0d ( 9.5)  VID 0d (1350mV)
     2  1330000kHz  FID 0e (10.0)  VID 0c (1400mV)
     3  1396500kHz  FID 0f (10.5)  VID 0b (1450mV)
     4  1463000kHz  FID 00 (11.0)  VID 0a (1500mV)
     5  1529500kHz  FID 01 (11.5)  VID 09 (1550mV)
     6  1662500kHz  FID 03 (12.5)  VID 08 (1600mV)
     7  1862000kHz  FID 16 (14.0)  VID 07 (1650mV)
   PST 3  cpuid 7a0 fsb 133 mfid 18 svid 7 numberstates 8
     0  1396500kHz  FID 0f (10.5)  VID 0e (1300mV)
     1  1463000kHz  FID 00 (11.0)  VID 0d (1350mV)
     2  1529500kHz  FID 01 (11.5)  VID 0c (1400mV)
     3  1596000kHz  FID 02 (12.0)  VID 0b (1450mV)
     4  1662500kHz  FID 03 (12.5)  VID 0a (1500mV)
     5  1729000kHz  FID 14 (13.0)  VID 09 (1550mV)
     6  1795500kHz  FID 15 (13.5)  VID 08 (1600mV)
     7  1995000kHz  FID 18 (15.0)  VID 07 (1650mV)
   PST 4  cpuid 7a0 fsb 133 mfid 1a svid 7 numberstates 8
     0  1463000kHz  FID 00 (11.0)  VID 0e (1300mV)
     1  1529500kHz  FID 01 (11.5)  VID 0d (1350mV)
     2  1596000kHz  FID 02 (12.0)  VID 0c (1400mV)
     3  1662500kHz  FID 03 (12.5)  VID 0b (1450mV)
     4  1729000kHz  FID 14 (13.0)  VID 0a (1500mV)
     5  1795500kHz  FID 15 (13.5)  VID 09 (1550mV)
     6  1995000kHz  FID 18 (15.0)  VID 08 (1600mV)
     7  2128000kHz  FID 1a (16.0)  VID 07 (1650mV)
   PST 5  cpuid 780 fsb 133 mfid 3 svid 8 numberstates 7
     0   997500kHz  FID 09 ( 7.5)  VID 0e (1300mV)
     1  1197000kHz  FID 0c ( 9.0)  VID 0d (1350mV)
     2  1263500kHz  FID 0d ( 9.5)  VID 0c (1400mV)
     3  1330000kHz  FID 0e (10.0)  VID 0b (1450mV)
     4  1396500kHz  FID 0f (10.5)  VID 0a (1500mV)
     5  1463000kHz  FID 00 (11.0)  VID 09 (1550mV)
     6  1662500kHz  FID 03 (12.5)  VID 08 (1600mV)
   PST 6  cpuid 780 fsb 133 mfid 15 svid 8 numberstates 7
     0  1263500kHz  FID 0d ( 9.5)  VID 0e (1300mV)
     1  1330000kHz  FID 0e (10.0)  VID 0d (1350mV)
     2  1396500kHz  FID 0f (10.5)  VID 0c (1400mV)
     3  1463000kHz  FID 00 (11.0)  VID 0b (1450mV)
     4  1529500kHz  FID 01 (11.5)  VID 0a (1500mV)
     5  1596000kHz  FID 02 (12.0)  VID 09 (1550mV)
     6  1795500kHz  FID 15 (13.5)  VID 08 (1600mV)
   PST 7  cpuid 780 fsb 133 mfid 18 svid 7 numberstates 8
     0  1396500kHz  FID 0f (10.5)  VID 0e (1300mV)
     1  1463000kHz  FID 00 (11.0)  VID 0d (1350mV)
     2  1529500kHz  FID 01 (11.5)  VID 0c (1400mV)
     3  1596000kHz  FID 02 (12.0)  VID 0b (1450mV)
     4  1662500kHz  FID 03 (12.5)  VID 0a (1500mV)
     5  1729000kHz  FID 14 (13.0)  VID 09 (1550mV)
     6  1795500kHz  FID 15 (13.5)  VID 08 (1600mV)
     7  1995000kHz  FID 18 (15.0)  VID 07 (1650mV)
   PST 8  cpuid 780 fsb 133 mfid 1a svid 7 numberstates 8
     0  1463000kHz  FID 00 (11.0)  VID 0e (1300mV)
     1  1529500kHz  FID 01 (11.5)  VID 0d (1350mV)
     2  1596000kHz  FID 02 (12.0)  VID 0c (1400mV)
     3  1662500kHz  FID 03 (12.5)  VID 0b (1450mV)
     4  1729000kHz  FID 14 (13.0)  VID 0a (1500mV)
     5  1795500kHz  FID 15 (13.5)  VID 09 (1550mV)
     6  1995000kHz  FID 18 (15.0)  VID 08 (1600mV)
     7  2128000kHz  FID 1a (16.0)  VID 07 (1650mV)
   PST 9  cpuid 000 fsb 0 mfid 0 svid eb numberstates 7
     0        0kHz  FID ffffffc1 ( 3.8)  VID 08 (1600mV)
     1        0kHz  FID 1c (17.0)  VID 0e (1300mV)
     2        0kHz  FID fffffff1 (23.2)  VID 0e (1300mV)
     3        0kHz  FID fffffffe ( 0.0)  VID 21 (622879794mV)
     4        0kHz  FID ffffffb7 (16.0)  VID 00 (2000mV)
     5        0kHz  FID ffffff96 (64936692.8)  VID 06 (1700mV)
     6        0kHz  FID fffffff4 (-7373406.-2)  VID 6e (  13mV)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 15:00   ` jy
@ 2004-04-16 15:11     ` Bruno Ducrot
  2004-04-16 15:19       ` jy
  0 siblings, 1 reply; 14+ messages in thread
From: Bruno Ducrot @ 2004-04-16 15:11 UTC (permalink / raw)
  To: jy; +Cc: cpufreq

On Fri, Apr 16, 2004 at 05:00:10PM +0200, jy wrote:
> Bruno Ducrot wrote:
> >On Fri, Apr 16, 2004 at 12:00:58AM +0200, jy wrote:
> >
> >>I have Acer Aspire 1357LMi laptop with AMD Athlon XP 3000+ and of course 
> >>cpufreq don't work
> >>
> >
> >
> >Could you please try latest cpufreq?  it's at
> >http://www.codemonkey.org.uk/projects/bitkeeper/cpufreq/
> >
> >with CONFIG_ACPI_PROCESSOR=YES ?
> 
> 
> powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
> powernow: FSB:  48.270 MHz
> powernow: Found PSB header at c00f06f0
> powernow: Table version: 0x12
> powernow: Flags: 0x0 (Mobile voltage regulator)
> powernow: Settling Time: 100 microseconds.
> powernow: Has 8 PST tables. (Only dumping ones relevant to this CPU).
> powernow: No PST tables match this cpuid (0x7a0)
> powernow: This is indicative of a broken BIOS.
> powernow: Trying ACPI perflib
> powernow: acpi:  P0: 2200 MHz 75000 mW 125 uS control 00d058fb SGTC 13334
> powernow:    FID: 0x1b (16.5x [796MHz])	VID: 0x7 (1.650V)
> powernow: acpi:  P1: 1800 MHz 55000 mW 125 uS control 00d05935 SGTC 13334
> powernow:    FID: 0x15 (13.5x [651MHz])	VID: 0x9 (1.550V)
> powernow: acpi:  P2: 1467 MHz 32000 mW 125 uS control 00d059c0 SGTC 13334
> powernow:    FID: 0x0 (11.0x [530MHz])	VID: 0xe (1.300V)
> powernow: acpi:  P3: 1064 MHz 30000 mW 125 uS control 00d059ca SGTC 13334
> powernow:    FID: 0xa (8.0x [386MHz])	VID: 0xe (1.300V)
> powernow: acpi:  P4: 800 MHz 26000 mW 125 uS control 00d059c6 SGTC 13334
> powernow:    FID: 0x6 (6.0x [289MHz])	VID: 0xe (1.300V)
> powernow: Minimum speed 289 MHz. Maximum speed 796 MHz.
> 
> ------
> 
> x86info v1.12b.  Dave Jones 2001-2003
> Feedback to <davej@redhat.com>.
> 
> Need to be root to use specified options.
> Found 1 CPU
> [...]
> PowerNOW! Technology information
> Available features:
> 	Temperature sensing diode present.
> 	Bus divisor control
> 	Voltage ID control
> 
> Connector type: Socket A (462 Pin PGA)
> 
> 
> 2.2Ghz processor (estimate).
> 
> 
> Thanks, it seems to work according to x86info. But the fsb is wrong.

Indeed.  Could you please post the full dmesg please?

> >I would like also that you test dump_psb.c
> >
> >wget http://poup.poupinou.org/cpufreq/powernow-k7/dump_psb.c
> >gcc -O2 -Wall dump_psb.c -o dump_psb
> >sudo ./dump_psb 9
> >
> >in order to check if that model actually do have more PSTs.

Ok, that one don't have more PSTs.  Thanks for your report.

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 15:11     ` Bruno Ducrot
@ 2004-04-16 15:19       ` jy
  2004-04-16 15:24         ` Bruno Ducrot
  0 siblings, 1 reply; 14+ messages in thread
From: jy @ 2004-04-16 15:19 UTC (permalink / raw)
  To: cpufreq

Bruno Ducrot wrote:
> On Fri, Apr 16, 2004 at 05:00:10PM +0200, jy wrote:

> 
> Indeed.  Could you please post the full dmesg please?
> 

Linux version 2.6.5 (root@jy-portable) (version gcc 3.3.3 (Debian 
20040401)) #1 SMP Fri Apr 16 15:06:26 CEST 2004
BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
  BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
  BIOS-e820: 00000000000d8000 - 0000000000100000 (reserved)
  BIOS-e820: 0000000000100000 - 000000001fef0000 (usable)
  BIOS-e820: 000000001fef0000 - 000000001fefb000 (ACPI data)
  BIOS-e820: 000000001fefb000 - 000000001ff00000 (ACPI NVS)
  BIOS-e820: 000000001ff00000 - 0000000020000000 (reserved)
  BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
510MB LOWMEM available.
On node 0 totalpages: 130800
   DMA zone: 4096 pages, LIFO batch:1
   Normal zone: 126704 pages, LIFO batch:16
   HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 PTLTD                                     ) @ 0x000f68c0
ACPI: RSDT (v001 PTLTD    RSDT   0x06040000  LTP 0x00000000) @ 0x1fef5b3e
ACPI: FADT (v001 KN400  PTLTW    0x06040000 PTL_ 0x000f4240) @ 0x1fefae74
ACPI: SSDT (v001 PTLTD  POWERNOW 0x06040000  LTP 0x00000001) @ 0x1fefaee8
ACPI: DSDT (v001  VIA   PTL_ACPI 0x06040000 MSFT 0x0100000e) @ 0x00000000
Built 1 zonelists
Kernel command line: BOOT_IMAGE=Knoppix ro ramdisk_size=100000 
init=/etc/init nomce lang=fr 2.6.5
Unknown boot option `2.6.5': ignoring
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 796.461 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 513196k/523200k available (1744k kernel code, 9232k reserved, 
701k data, 268k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1564.67 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU:     After generic identify, caps: 0383fbff c1cbfbff 00000000 00000000
CPU:     After vendor identify, caps: 0383fbff c1cbfbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU:     After all inits, caps: 0383fbff c1cbfbff 00000000 00000020
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
CPU0: AMD Mobile AMD Athlon(tm) XP 3000+ stepping 00
per-CPU timeslice cutoff: 1462.20 usecs.
task migration cache decay timeout: 2 msecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 795.0981 MHz.
..... host bus clock speed is 265.0326 MHz.
Brought up 1 CPUs
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xfd65c, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
spurious 8259A interrupt: IRQ7.
ACPI: IRQ10 SCI: Edge set to Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs *4)
ACPI: PCI Interrupt Link [LNKB] (IRQs *5)
ACPI: PCI Interrupt Link [LNKC] (IRQs *9)
ACPI: PCI Interrupt Link [LNKD] (IRQs *11)
ACPI: Embedded Controller [EC0] (gpe 1)
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00f6900
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xb5c9, dseg 0x400
pnp: 00:09: ioport range 0xfe00-0xfe01 has been reserved
pnp: 00:0c: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:0c: ioport range 0x4000-0x407f has been reserved
pnp: 00:0c: ioport range 0x8100-0x810f has been reserved
PnPBIOS: 18 nodes reported by PnP BIOS; 18 recorded by driver
SCSI subsystem initialized
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 9
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 4
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 
'acpi=off'
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Initializing Cryptographic API
PCI: Via IRQ fixup for 0000:00:10.0, from 0 to 4
PCI: Via IRQ fixup for 0000:00:10.1, from 0 to 5
PCI: Via IRQ fixup for 0000:00:10.2, from 0 to 9
ACPI: Processor [CPU0] (supports C1 C2)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Using anticipatory io scheduler
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
     ide0: BM-DMA at 0x2060-0x2067, BIOS settings: hda:DMA, hdb:pio
     ide1: BM-DMA at 0x2068-0x206f, BIOS settings: hdc:DMA, hdd:pio
hda: HITACHI_DK23FA-60, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: PIONEER DVD-RW DVR-K12RA, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 117210240 sectors (60011 MB) w/8192KiB Cache, CHS=65535/16/63
  hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 >
hdc: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache
Uniform CD-ROM driver Revision: 3.20
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
synaptics reset failed
synaptics reset failed
synaptics reset failed
Synaptics Touchpad, model: 1
  Firmware: 5.8
  180 degree mounted touchpad
  Sensor: 29
  new absolute packet format
  Touchpad has extended capability bits
  -> 4 multi-buttons, i.e. besides standard buttons
  -> multifinger detection
  -> palm detection
input: SynPS/2 Synaptics TouchPad on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
EISA: Probing bus 0 at eisa0
Cannot allocate resource for EISA slot 1
Cannot allocate resource for EISA slot 2
Cannot allocate resource for EISA slot 4
EISA: Detected 0 cards.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 15
PM: Reading pmdisk image.
PM: Resume from disk failed.
ACPI: (supports S0 S3 S4 S5)
EXT2-fs warning (device hda9): ext2_fill_super: mounting ext3 filesystem 
as ext2

VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 268k freed
Real Time Clock Driver v1.12
Adding 305192k swap on /dev/hda7.  Priority:-1 extents:1
warning: process `update' used the obsolete bdflush system call
Fix your initscripts?
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
Linux Kernel Card Services
   options:  [pci] [cardbus] [pm]
Yenta: CardBus bridge found at 0000:00:07.0 [1025:0033]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta: ISA IRQ mask 0x0088, PCI irq 5
Socket status: 30000006
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. USB
uhci_hcd 0000:00:10.0: irq 4, io base 00002000
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. USB (#2)
uhci_hcd 0000:00:10.1: irq 5, io base 00002020
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. USB (#3)
uhci_hcd 0000:00:10.2: irq 9, io base 00002040
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
usb 2-1: new low speed USB device using address 2
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1172 $ Ben Collins <bcollins@debian.org>
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[5] 
MMIO=[d0004000-d00047ff]  Max Packet=[2048]
drivers/usb/core/usb.c: registered new driver hiddev
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on 
usb-0000:00:10.1-1
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
ts: Compaq touchscreen protocol output
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00c09f000014c6a6]
sbp2: $Rev: 1170 $ Ben Collins <bcollins@debian.org>
ip1394: $Rev: 1175 $ Ben Collins <bcollins@debian.org>
ip1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
ehci_hcd 0000:00:10.3: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.3: irq 11, pci mem e0870c00
ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
ehci_hcd 0000:00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 6 ports detected
usb 2-1: USB disconnect, address 2
powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: FSB:  48.270 MHz
powernow: Found PSB header at c00f06f0
powernow: Table version: 0x12
powernow: Flags: 0x0 (Mobile voltage regulator)
powernow: Settling Time: 100 microseconds.
powernow: Has 8 PST tables. (Only dumping ones relevant to this CPU).
powernow: No PST tables match this cpuid (0x7a0)
powernow: This is indicative of a broken BIOS.
powernow: Trying ACPI perflib
powernow: acpi:  P0: 2200 MHz 75000 mW 125 uS control 00d058fb SGTC 13334
powernow:    FID: 0x1b (16.5x [796MHz])	VID: 0x7 (1.650V)
powernow: acpi:  P1: 1800 MHz 55000 mW 125 uS control 00d05935 SGTC 13334
powernow:    FID: 0x15 (13.5x [651MHz])	VID: 0x9 (1.550V)
powernow: acpi:  P2: 1467 MHz 32000 mW 125 uS control 00d059c0 SGTC 13334
powernow:    FID: 0x0 (11.0x [530MHz])	VID: 0xe (1.300V)
powernow: acpi:  P3: 1064 MHz 30000 mW 125 uS control 00d059ca SGTC 13334
powernow:    FID: 0xa (8.0x [386MHz])	VID: 0xe (1.300V)
powernow: acpi:  P4: 800 MHz 26000 mW 125 uS control 00d059c6 SGTC 13334
powernow:    FID: 0x6 (6.0x [289MHz])	VID: 0xe (1.300V)
powernow: Minimum speed 289 MHz. Maximum speed 796 MHz.
Losing too many ticks!
TSC cannot be used as a timesource.  <4>Possible reasons for this are:
   You're running with Speedstep,
   You don't have DMA enabled for your hard disk (see hdparm),
   Incorrect TSC synchronization on an SMP system (see dmesg).
Falling back to a sane timesource now.
Serial: 8250/16550 driver $Revision: 1.90 $ 14 ports, IRQ sharing disabled
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP]
NET: Registered protocol family 23
via-rhine.c:v1.10-LK1.1.19-2.5  July-12-2003  Written by Donald Becker
   http://www.scyld.com/network/via-rhine.html
eth1: VIA VT6102 Rhine-II at 0xd0005000, 00:c0:9f:34:de:c1, IRQ 4.
eth1: MII PHY found at address 1, status 0x7869 advertising 05e1 Link 45e1.
Via 686a/8233/8235 audio driver 1.9.1-ac4-2.5
via82cxxx: Six channel audio available
PCI: Setting latency timer of device 0000:00:11.5 to 64
ac97_codec: AC97 Audio codec, id: ALG64 (Unknown)
via82cxxx: board #1 at 0x1400, IRQ 9
NET: Registered protocol family 17
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0341b80(lo)
IPv6 over IPv4 tunneling driver
usb 2-1: new low speed USB device using address 3
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on 
usb-0000:00:10.1-1
ext3: No journal on filesystem on hda10
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
FAT: Unrecognized mount option "uid=knoppix" or missing value
FAT: Unrecognized mount option "uid=knoppix" or missing value
FAT: Unrecognized mount option "uid=knoppix" or missing value
eth1: Setting full-duplex based on MII #1 link partner capability of 45e1.
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0820-0x08ff: clean.
cs: IO port probe 0x0800-0x080f: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x3c0-0x3df
cs: IO port probe 0x0a00-0x0aff: clean.
eth1: no IPv6 routers present
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
ttyS0: LSR safety check engaged!
ttyS0: LSR safety check engaged!
ttyS1: LSR safety check engaged!
ttyS1: LSR safety check engaged!
ACPI: AC Adapter [ACAD] (on-line)
ACPI: Battery Slot [BAT1] (battery absent)
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID]
ACPI: Thermal Zone [THRM] (60 C)
lp0: using parport0 (interrupt-driven).
lp0: console ready
NET: Registered protocol family 4
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
atkbd.c: Unknown key released (translated set 2, code 0x7a on 
isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on 
isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
eth1: Setting full-duplex based on MII #1 link partner capability of 45e1.
eth1: no IPv6 routers present
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 15:19       ` jy
@ 2004-04-16 15:24         ` Bruno Ducrot
  2004-04-16 16:59           ` jy
  0 siblings, 1 reply; 14+ messages in thread
From: Bruno Ducrot @ 2004-04-16 15:24 UTC (permalink / raw)
  To: jy; +Cc: cpufreq

On Fri, Apr 16, 2004 at 05:19:56PM +0200, jy wrote:
> Bruno Ducrot wrote:
> >On Fri, Apr 16, 2004 at 05:00:10PM +0200, jy wrote:
> 
> >
> >Indeed.  Could you please post the full dmesg please?
> >
> 

Ok.  I expected that BIOS will put the frequency at max at POST stage.
That is not true for your laptop indeed.  Can you try that patch:

--- linux-cpufreq-bk/arch/i386/kernel/cpu/cpufreq/powernow-k7.c	2004/04/16 15:20:03	1.1
+++ linux-cpufreq-bk/arch/i386/kernel/cpu/cpufreq/powernow-k7.c	2004/04/16 15:20:27
@@ -550,8 +550,7 @@ static int __init powernow_cpu_init (str
 
 	rdmsrl (MSR_K7_FID_VID_STATUS, fidvidstatus.val);
 
-	/* A K7 with powernow technology is set to max frequency by BIOS */
-	fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.MFID];
+	fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID];
 	if (!fsb) {
 		printk(KERN_WARNING PFX "can not determine bus frequency\n");
 		return -EINVAL;

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 15:24         ` Bruno Ducrot
@ 2004-04-16 16:59           ` jy
  2004-04-16 18:20             ` Bruno Ducrot
  0 siblings, 1 reply; 14+ messages in thread
From: jy @ 2004-04-16 16:59 UTC (permalink / raw)
  To: cpufreq

Bruno Ducrot wrote:
> On Fri, Apr 16, 2004 at 05:19:56PM +0200, jy wrote:
> 
> Ok.  I expected that BIOS will put the frequency at max at POST stage.
> That is not true for your laptop indeed.  Can you try that patch:

Yes, when I bought the laptop the speed was always 800Mhz without any 
powernow driver in windows. Maybe the bios here is useful  : 
ftp://ftp.support.acer-euro.com/notebook/aspire_1350/bios/zp13a18.zip
the changelog in the zip talks about a low speed patch

with the patch :

Linux version 2.6.5 (root@jy-portable) (version gcc 3.3.3 (Debian 
20040401)) #1 SMP Fri Apr 16 18:00:18 CEST 2004
BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
  BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
  BIOS-e820: 00000000000d8000 - 0000000000100000 (reserved)
  BIOS-e820: 0000000000100000 - 000000001fef0000 (usable)
  BIOS-e820: 000000001fef0000 - 000000001fefb000 (ACPI data)
  BIOS-e820: 000000001fefb000 - 000000001ff00000 (ACPI NVS)
  BIOS-e820: 000000001ff00000 - 0000000020000000 (reserved)
  BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
510MB LOWMEM available.
On node 0 totalpages: 130800
   DMA zone: 4096 pages, LIFO batch:1
   Normal zone: 126704 pages, LIFO batch:16
   HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 PTLTD                                     ) @ 0x000f68c0
ACPI: RSDT (v001 PTLTD    RSDT   0x06040000  LTP 0x00000000) @ 0x1fef5b3e
ACPI: FADT (v001 KN400  PTLTW    0x06040000 PTL_ 0x000f4240) @ 0x1fefae74
ACPI: SSDT (v001 PTLTD  POWERNOW 0x06040000  LTP 0x00000001) @ 0x1fefaee8
ACPI: DSDT (v001  VIA   PTL_ACPI 0x06040000 MSFT 0x0100000e) @ 0x00000000
Built 1 zonelists
Kernel command line: BOOT_IMAGE=Knoppix ro ramdisk_size=100000 
init=/etc/init nomce lang=fr 2.6.5
Unknown boot option `2.6.5': ignoring
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 796.532 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 513196k/523200k available (1744k kernel code, 9232k reserved, 
701k data, 268k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1564.67 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU:     After generic identify, caps: 0383fbff c1cbfbff 00000000 00000000
CPU:     After vendor identify, caps: 0383fbff c1cbfbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU:     After all inits, caps: 0383fbff c1cbfbff 00000000 00000020
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
CPU0: AMD Mobile AMD Athlon(tm) XP 3000+ stepping 00
per-CPU timeslice cutoff: 1462.20 usecs.
task migration cache decay timeout: 2 msecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 796.0001 MHz.
..... host bus clock speed is 265.0333 MHz.
Brought up 1 CPUs
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xfd65c, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
spurious 8259A interrupt: IRQ7.
ACPI: IRQ10 SCI: Edge set to Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs *4)
ACPI: PCI Interrupt Link [LNKB] (IRQs *5)
ACPI: PCI Interrupt Link [LNKC] (IRQs *9)
ACPI: PCI Interrupt Link [LNKD] (IRQs *11)
ACPI: Embedded Controller [EC0] (gpe 1)
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00f6900
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xb5c9, dseg 0x400
pnp: 00:09: ioport range 0xfe00-0xfe01 has been reserved
pnp: 00:0c: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:0c: ioport range 0x4000-0x407f has been reserved
pnp: 00:0c: ioport range 0x8100-0x810f has been reserved
PnPBIOS: 18 nodes reported by PnP BIOS; 18 recorded by driver
SCSI subsystem initialized
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 9
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 4
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 
'acpi=off'
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Initializing Cryptographic API
PCI: Via IRQ fixup for 0000:00:10.0, from 0 to 4
PCI: Via IRQ fixup for 0000:00:10.1, from 0 to 5
PCI: Via IRQ fixup for 0000:00:10.2, from 0 to 9
ACPI: Processor [CPU0] (supports C1 C2)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Using anticipatory io scheduler
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
     ide0: BM-DMA at 0x2060-0x2067, BIOS settings: hda:DMA, hdb:pio
     ide1: BM-DMA at 0x2068-0x206f, BIOS settings: hdc:DMA, hdd:pio
hda: HITACHI_DK23FA-60, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: PIONEER DVD-RW DVR-K12RA, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 117210240 sectors (60011 MB) w/8192KiB Cache, CHS=65535/16/63
  hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 >
hdc: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache
Uniform CD-ROM driver Revision: 3.20
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
synaptics reset failed
synaptics reset failed
synaptics reset failed
Synaptics Touchpad, model: 1
  Firmware: 5.8
  180 degree mounted touchpad
  Sensor: 29
  new absolute packet format
  Touchpad has extended capability bits
  -> 4 multi-buttons, i.e. besides standard buttons
  -> multifinger detection
  -> palm detection
input: SynPS/2 Synaptics TouchPad on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
EISA: Probing bus 0 at eisa0
Cannot allocate resource for EISA slot 1
Cannot allocate resource for EISA slot 2
Cannot allocate resource for EISA slot 4
EISA: Detected 0 cards.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 15
PM: Reading pmdisk image.
PM: Resume from disk failed.
ACPI: (supports S0 S3 S4 S5)
EXT2-fs warning (device hda9): ext2_fill_super: mounting ext3 filesystem 
as ext2

VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 268k freed
Real Time Clock Driver v1.12
Adding 305192k swap on /dev/hda7.  Priority:-1 extents:1
warning: process `update' used the obsolete bdflush system call
Fix your initscripts?
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
Linux Kernel Card Services
   options:  [pci] [cardbus] [pm]
Yenta: CardBus bridge found at 0000:00:07.0 [1025:0033]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta: ISA IRQ mask 0x0088, PCI irq 5
Socket status: 30000006
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. USB
uhci_hcd 0000:00:10.0: irq 4, io base 00002000
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. USB (#2)
uhci_hcd 0000:00:10.1: irq 5, io base 00002020
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. USB (#3)
uhci_hcd 0000:00:10.2: irq 9, io base 00002040
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
usb 2-1: new low speed USB device using address 2
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1172 $ Ben Collins <bcollins@debian.org>
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[5] 
MMIO=[d0004000-d00047ff]  Max Packet=[2048]
drivers/usb/core/usb.c: registered new driver hiddev
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on 
usb-0000:00:10.1-1
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
ts: Compaq touchscreen protocol output
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00c09f000014c6a6]
sbp2: $Rev: 1170 $ Ben Collins <bcollins@debian.org>
ip1394: $Rev: 1175 $ Ben Collins <bcollins@debian.org>
ip1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
ehci_hcd 0000:00:10.3: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.3: irq 11, pci mem e0870c00
ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
ehci_hcd 0000:00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 6 ports detected
usb 2-1: USB disconnect, address 2
powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: FSB: 132.755 MHz
powernow: Found PSB header at c00f06f0
powernow: Table version: 0x12
powernow: Flags: 0x0 (Mobile voltage regulator)
powernow: Settling Time: 100 microseconds.
powernow: Has 8 PST tables. (Only dumping ones relevant to this CPU).
powernow: No PST tables match this cpuid (0x7a0)
powernow: This is indicative of a broken BIOS.
powernow: Trying ACPI perflib
powernow: acpi:  P0: 2200 MHz 75000 mW 125 uS control 00d058fb SGTC 13334
powernow:    FID: 0x1b (16.5x [2190MHz])	VID: 0x7 (1.650V)
powernow: acpi:  P1: 1800 MHz 55000 mW 125 uS control 00d05935 SGTC 13334
powernow:    FID: 0x15 (13.5x [1792MHz])	VID: 0x9 (1.550V)
powernow: acpi:  P2: 1467 MHz 32000 mW 125 uS control 00d059c0 SGTC 13334
powernow:    FID: 0x0 (11.0x [1460MHz])	VID: 0xe (1.300V)
powernow: acpi:  P3: 1064 MHz 30000 mW 125 uS control 00d059ca SGTC 13334
powernow:    FID: 0xa (8.0x [1062MHz])	VID: 0xe (1.300V)
powernow: acpi:  P4: 800 MHz 26000 mW 125 uS control 00d059c6 SGTC 13334
powernow:    FID: 0x6 (6.0x [796MHz])	VID: 0xe (1.300V)
powernow: Minimum speed 796 MHz. Maximum speed 2190 MHz.
Losing too many ticks!
TSC cannot be used as a timesource.  <4>Possible reasons for this are:
   You're running with Speedstep,
   You don't have DMA enabled for your hard disk (see hdparm),
   Incorrect TSC synchronization on an SMP system (see dmesg).
Falling back to a sane timesource now.
Serial: 8250/16550 driver $Revision: 1.90 $ 14 ports, IRQ sharing disabled
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP]
NET: Registered protocol family 23
via-rhine.c:v1.10-LK1.1.19-2.5  July-12-2003  Written by Donald Becker
   http://www.scyld.com/network/via-rhine.html
eth1: VIA VT6102 Rhine-II at 0xd0005000, 00:c0:9f:34:de:c1, IRQ 4.
eth1: MII PHY found at address 1, status 0x7869 advertising 05e1 Link 45e1.
Via 686a/8233/8235 audio driver 1.9.1-ac4-2.5
via82cxxx: Six channel audio available
PCI: Setting latency timer of device 0000:00:11.5 to 64
ac97_codec: AC97 Audio codec, id: ALG64 (Unknown)
via82cxxx: board #1 at 0x1400, IRQ 9
NET: Registered protocol family 17
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0341b80(lo)
IPv6 over IPv4 tunneling driver
usb 2-1: new low speed USB device using address 3
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on 
usb-0000:00:10.1-1
ext3: No journal on filesystem on hda10
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
FAT: Unrecognized mount option "uid=knoppix" or missing value
FAT: Unrecognized mount option "uid=knoppix" or missing value
FAT: Unrecognized mount option "uid=knoppix" or missing value
eth1: Setting full-duplex based on MII #1 link partner capability of 45e1.
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0820-0x08ff: clean.
cs: IO port probe 0x0800-0x080f: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x3c0-0x3df
cs: IO port probe 0x0a00-0x0aff: clean.
eth1: no IPv6 routers present
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
eth1: Setting full-duplex based on MII #1 link partner capability of 45e1.
ttyS0: LSR safety check engaged!
ttyS0: LSR safety check engaged!
ttyS1: LSR safety check engaged!
ttyS1: LSR safety check engaged!
ACPI: AC Adapter [ACAD] (on-line)
ACPI: Battery Slot [BAT1] (battery absent)
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID]
ACPI: Thermal Zone [THRM] (60 C)
lp0: using parport0 (interrupt-driven).
lp0: console ready
NET: Registered protocol family 4
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
atkbd.c: Unknown key released (translated set 2, code 0x7a on 
isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on 
isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
eth1: no IPv6 routers present

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 16:59           ` jy
@ 2004-04-16 18:20             ` Bruno Ducrot
  2004-04-16 21:27               ` jy
  2004-04-17  9:32               ` Dominik Brodowski
  0 siblings, 2 replies; 14+ messages in thread
From: Bruno Ducrot @ 2004-04-16 18:20 UTC (permalink / raw)
  To: jy; +Cc: cpufreq

On Fri, Apr 16, 2004 at 06:59:43PM +0200, jy wrote:
> Bruno Ducrot wrote:
> >On Fri, Apr 16, 2004 at 05:19:56PM +0200, jy wrote:
> >
> >Ok.  I expected that BIOS will put the frequency at max at POST stage.
> >That is not true for your laptop indeed.  Can you try that patch:
> 
> Yes, when I bought the laptop the speed was always 800Mhz without any 
> powernow driver in windows. Maybe the bios here is useful  : 
> ftp://ftp.support.acer-euro.com/notebook/aspire_1350/bios/zp13a18.zip
> the changelog in the zip talks about a low speed patch

I don't know if that bios will help you.  Latest bios for Acer Aspire
1310 do give weird result both with PSB/PST method and ACPI (ACPI is
less buggy)..

See http://bugme.osdl.org/show_bug.cgi?id=2025

> with the patch :
> 
> Linux version 2.6.5 (root@jy-portable) (version gcc 3.3.3 (Debian 
> 20040401)) #1 SMP Fri Apr 16 18:00:18 CEST 2004
                ^^^

> powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
> powernow: FSB: 132.755 MHz
> powernow: Found PSB header at c00f06f0
> powernow: Table version: 0x12
> powernow: Flags: 0x0 (Mobile voltage regulator)
> powernow: Settling Time: 100 microseconds.
> powernow: Has 8 PST tables. (Only dumping ones relevant to this CPU).
> powernow: No PST tables match this cpuid (0x7a0)
> powernow: This is indicative of a broken BIOS.
> powernow: Trying ACPI perflib
> powernow: acpi:  P0: 2200 MHz 75000 mW 125 uS control 00d058fb SGTC 13334
> powernow:    FID: 0x1b (16.5x [2190MHz])	VID: 0x7 (1.650V)
> powernow: acpi:  P1: 1800 MHz 55000 mW 125 uS control 00d05935 SGTC 13334
> powernow:    FID: 0x15 (13.5x [1792MHz])	VID: 0x9 (1.550V)
> powernow: acpi:  P2: 1467 MHz 32000 mW 125 uS control 00d059c0 SGTC 13334
> powernow:    FID: 0x0 (11.0x [1460MHz])	VID: 0xe (1.300V)
> powernow: acpi:  P3: 1064 MHz 30000 mW 125 uS control 00d059ca SGTC 13334
> powernow:    FID: 0xa (8.0x [1062MHz])	VID: 0xe (1.300V)
> powernow: acpi:  P4: 800 MHz 26000 mW 125 uS control 00d059c6 SGTC 13334
> powernow:    FID: 0x6 (6.0x [796MHz])	VID: 0xe (1.300V)
> powernow: Minimum speed 796 MHz. Maximum speed 2190 MHz.
> Losing too many ticks!
> TSC cannot be used as a timesource.  <4>Possible reasons for this are:
>   You're running with Speedstep,
>   You don't have DMA enabled for your hard disk (see hdparm),
>   Incorrect TSC synchronization on an SMP system (see dmesg).
> Falling back to a sane timesource now.

Try with UP kernel.  At that time, cpufreq break TSC timer on SMP
kernels.  Or alternatively use the ACPI-timer.

Cheers,

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 18:20             ` Bruno Ducrot
@ 2004-04-16 21:27               ` jy
  2004-04-17  9:32               ` Dominik Brodowski
  1 sibling, 0 replies; 14+ messages in thread
From: jy @ 2004-04-16 21:27 UTC (permalink / raw)
  To: cpufreq

Bruno Ducrot wrote:
> On Fri, Apr 16, 2004 at 06:59:43PM +0200, jy wrote:
> 
>>Bruno Ducrot wrote:
>>
>>>On Fri, Apr 16, 2004 at 05:19:56PM +0200, jy wrote:
>>>
>>>Ok.  I expected that BIOS will put the frequency at max at POST stage.
>>>That is not true for your laptop indeed.  Can you try that patch:
>>
>>Yes, when I bought the laptop the speed was always 800Mhz without any 
>>powernow driver in windows. Maybe the bios here is useful  : 
>>ftp://ftp.support.acer-euro.com/notebook/aspire_1350/bios/zp13a18.zip
>>the changelog in the zip talks about a low speed patch
> 
> 
> I don't know if that bios will help you.  Latest bios for Acer Aspire
> 1310 do give weird result both with PSB/PST method and ACPI (ACPI is
> less buggy)..
> 
> See http://bugme.osdl.org/show_bug.cgi?id=2025
> 

> 
> Try with UP kernel.  At that time, cpufreq break TSC timer on SMP
> kernels.  Or alternatively use the ACPI-timer.
> 

Thank you for your support, Now all is fine
folding@home run well and i'll soon be able to play ut2004.

JY

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-16 18:20             ` Bruno Ducrot
  2004-04-16 21:27               ` jy
@ 2004-04-17  9:32               ` Dominik Brodowski
  2004-04-17 13:00                 ` Bruno Ducrot
  1 sibling, 1 reply; 14+ messages in thread
From: Dominik Brodowski @ 2004-04-17  9:32 UTC (permalink / raw)
  To: Bruno Ducrot; +Cc: jy, cpufreq


[-- Attachment #1.1: Type: text/plain, Size: 373 bytes --]

On Fri, Apr 16, 2004 at 08:20:13PM +0200, Bruno Ducrot wrote:
> Try with UP kernel.  At that time, cpufreq break TSC timer on SMP
> kernels.  Or alternatively use the ACPI-timer.

Why is TSC timer on SMP broken, in your opinion? AFAICS, the problem seen on
this machine is caused because of actual cpu frequency != frequency the
cpufreq core thinks the CPU is in.

	Dominik

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-17  9:32               ` Dominik Brodowski
@ 2004-04-17 13:00                 ` Bruno Ducrot
  2004-04-17 16:58                   ` Dominik Brodowski
  0 siblings, 1 reply; 14+ messages in thread
From: Bruno Ducrot @ 2004-04-17 13:00 UTC (permalink / raw)
  To: jy, cpufreq

On Sat, Apr 17, 2004 at 11:32:20AM +0200, Dominik Brodowski wrote:
> On Fri, Apr 16, 2004 at 08:20:13PM +0200, Bruno Ducrot wrote:
> > Try with UP kernel.  At that time, cpufreq break TSC timer on SMP
> > kernels.  Or alternatively use the ACPI-timer.
> 
> Why is TSC timer on SMP broken, in your opinion? AFAICS, the problem seen on
> this machine is caused because of actual cpu frequency != frequency the
> cpufreq core thinks the CPU is in.
> 

It's broken if CONFIG_SMP because set_cyc2ns_scale() is not called
in the time_notifer() in timer_tsc.c (and anyway cpu_khz can't be
scaled in an easy fashion if SMP).
Therefore, cyc2ns_scale is not updated, and cycles_2_ns() will give
false values. 

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-17 13:00                 ` Bruno Ducrot
@ 2004-04-17 16:58                   ` Dominik Brodowski
  2004-04-19  9:26                     ` Bruno Ducrot
  0 siblings, 1 reply; 14+ messages in thread
From: Dominik Brodowski @ 2004-04-17 16:58 UTC (permalink / raw)
  To: Bruno Ducrot; +Cc: jy, cpufreq


[-- Attachment #1.1: Type: text/plain, Size: 1063 bytes --]

On Sat, Apr 17, 2004 at 03:00:21PM +0200, Bruno Ducrot wrote:
> On Sat, Apr 17, 2004 at 11:32:20AM +0200, Dominik Brodowski wrote:
> > On Fri, Apr 16, 2004 at 08:20:13PM +0200, Bruno Ducrot wrote:
> > > Try with UP kernel.  At that time, cpufreq break TSC timer on SMP
> > > kernels.  Or alternatively use the ACPI-timer.
> > 
> > Why is TSC timer on SMP broken, in your opinion? AFAICS, the problem seen on
> > this machine is caused because of actual cpu frequency != frequency the
> > cpufreq core thinks the CPU is in.
> > 
> 
> It's broken if CONFIG_SMP because set_cyc2ns_scale() is not called
> in the time_notifer() in timer_tsc.c (and anyway cpu_khz can't be
> scaled in an easy fashion if SMP).
> Therefore, cyc2ns_scale is not updated, and cycles_2_ns() will give
> false values. 

Indeed. Will try to prepare a patch to make cycles_2_ns handle different 
CPU speeds correctly -- it's needed for different-speed-SMP as well.[*]

	Dominik

[*] though I do not know whether the timing core would be able to handle it
generally...

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-17 16:58                   ` Dominik Brodowski
@ 2004-04-19  9:26                     ` Bruno Ducrot
  2004-04-19 11:54                       ` Dominik Brodowski
  0 siblings, 1 reply; 14+ messages in thread
From: Bruno Ducrot @ 2004-04-19  9:26 UTC (permalink / raw)
  To: jy, cpufreq

On Sat, Apr 17, 2004 at 06:58:38PM +0200, Dominik Brodowski wrote:
> 
> [*] though I do not know whether the timing core would be able to handle it
> generally...

The problem is that AMD64 (and opterons)  processors do have expected
behaviour, that is if you change the frequency, TSC clock will change
as well, and there are SMP capable processors that are planed IIRC.
Also, I think TSC timer will not work properly if powernow-k8 on such
system (each processors would have different TSC frequencies),
unless heavy changes to the TSC timer code.  I'm not sure if making
it work does really matter, there is other good timers (like ACPI-timer)
after all.

Cheers,

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Acer Aspire  1350 broken PST
  2004-04-19  9:26                     ` Bruno Ducrot
@ 2004-04-19 11:54                       ` Dominik Brodowski
  0 siblings, 0 replies; 14+ messages in thread
From: Dominik Brodowski @ 2004-04-19 11:54 UTC (permalink / raw)
  To: Bruno Ducrot; +Cc: jy, cpufreq


[-- Attachment #1.1: Type: text/plain, Size: 939 bytes --]

On Mon, Apr 19, 2004 at 11:26:24AM +0200, Bruno Ducrot wrote:
> On Sat, Apr 17, 2004 at 06:58:38PM +0200, Dominik Brodowski wrote:
> > 
> > [*] though I do not know whether the timing core would be able to handle it
> > generally...
> 
> The problem is that AMD64 (and opterons)  processors do have expected
> behaviour, that is if you change the frequency, TSC clock will change
> as well, and there are SMP capable processors that are planed IIRC.
> Also, I think TSC timer will not work properly if powernow-k8 on such
> system (each processors would have different TSC frequencies),
> unless heavy changes to the TSC timer code.  I'm not sure if making
> it work does really matter, there is other good timers (like ACPI-timer)
> after all.

Even though most, if not all, AMD64 processors have HPET-timers on the
motherboards, there's still much tsc interaction going on :-(. Will take a
look at it soon.

	Dominik

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-04-19 11:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15 22:00 Acer Aspire 1350 broken PST jy
2004-04-16 12:05 ` Bruno Ducrot
2004-04-16 15:00   ` jy
2004-04-16 15:11     ` Bruno Ducrot
2004-04-16 15:19       ` jy
2004-04-16 15:24         ` Bruno Ducrot
2004-04-16 16:59           ` jy
2004-04-16 18:20             ` Bruno Ducrot
2004-04-16 21:27               ` jy
2004-04-17  9:32               ` Dominik Brodowski
2004-04-17 13:00                 ` Bruno Ducrot
2004-04-17 16:58                   ` Dominik Brodowski
2004-04-19  9:26                     ` Bruno Ducrot
2004-04-19 11:54                       ` Dominik Brodowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.