Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acpi kernel - PB easynote c255
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Sat Apr 02, 2005 10:37 pm    Post subject: acpi kernel - PB easynote c255 Reply with quote

Hello, trying to get power management sorted on this notebook by following gentoo howto.

Trouble is that i can't find

Code:

/sys/devices/system/cpu/cpu0/cpufreq



found error that kernel does not support acpi but i have compiled acpi in:

Code:

 # dmesg | grep ACPI
 BIOS-e820: 000000001bef0000 - 000000001beff000 (ACPI data)
 BIOS-e820: 000000001beff000 - 000000001bf00000 (ACPI NVS)
ACPI: RSDP (v000 PTLTD                                 ) @ 0x000f7fe0
ACPI: RSDT (v001 PTLTD    RSDT   0x06040000  LTP 0x00000000) @ 0x1befbcce
ACPI: FADT (v001 NEC    ND000080 0x06040000 MSTF 0x0100000e) @ 0x1befee74
ACPI: SSDT (v001 PTLTD  POWERNOW 0x06040000  LTP 0x00000001) @ 0x1befeee8
ACPI: DSDT (v001    NEC ND000080 0x06040000 MSFT 0x0100000e) @ 0x00000000
ACPI: setting ELCR to 0200 (from 06b8)
ACPI: Subsystem revision 20050211
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 *7 10)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10) *9
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 7 10)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 *4 5 7 10)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 10) *9
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 *10)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 10) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs *3 4 5 7 10)
ACPI: Embedded Controller [EC0] (gpe 27)
ACPI: Power Resource [QFAN] (off)
pnp: PnP ACPI init
pnp: PnP ACPI: found 7 devices
PCI: Using ACPI for IRQ routing
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
ACPI: PCI interrupt 0000:00:02.6[C] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 4
ACPI: PCI interrupt 0000:00:04.0[A] -> GSI 4 (level, low) -> IRQ 4
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 7
ACPI: PCI interrupt 0000:00:02.5[A] -> GSI 7 (level, low) -> IRQ 7
ACPI: PCI interrupt 0000:00:0a.1[B] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 3
ACPI: PCI interrupt 0000:00:03.2[D] -> GSI 3 (level, low) -> IRQ 3
ACPI: PCI interrupt 0000:00:02.7[C] -> GSI 5 (level, low) -> IRQ 5
powernow: Trying ACPI perflib
powernow: no support for ACPI processor found.  Please recompile your kernel with ACPI processor
powernow: ACPI and legacy methods failed
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]



Now when i had unbuntu on it powernowd did work, however there is no power saving settings in the bios what so ever and no sleep button.


What can be missing?


cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Thu Apr 07, 2005 8:59 am    Post subject: Reply with quote

Hello, ok followed Fix Common ACPI Problems guide and fixed the one warning that was discovered, new dsdt in now compiled statically into kernel.


Problem is that i am still getting same problem on boot

Code:

powernow: Trying ACPI perflib
powernow: no support for ACPI processor found.  Please recompile your kernel with ACPI processor
powernow: ACPI and legacy methods failed


Code:

ls /proc/acpi/
dsdt  embedded_controller  event  fadt  info  power_resource


Here acpi kernel details
Code:

 cat /usr/src/linux/.config | grep ACPI
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
# CONFIG_ACPI_SLEEP is not set
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="acpi/dsdt_table.h"
CONFIG_ACPI_BLACKLIST_YEAR=2000
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
# CONFIG_SERIAL_8250_ACPI is not set



Really not sure where to go now, want to use gentoo but can't have notebook without some power management :(
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
Mod^
n00b
n00b


Joined: 07 Apr 2005
Posts: 14
Location: /dev/EU/Finland

PostPosted: Thu Apr 07, 2005 1:17 pm    Post subject: Reply with quote

I have exactly the same problem and laptop..
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Thu Apr 07, 2005 2:13 pm    Post subject: Reply with quote

Mod^ wrote:
I have exactly the same problem and laptop..



:) ok two heads better then one.

Don't know if youh ave found this already:

http://belo.web.elte.hu/PackardBellC3.html


This chap says he got acpi working of a sort on debian, have emailed today and wait to see if he has any ideas.
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
Mod^
n00b
n00b


Joined: 07 Apr 2005
Posts: 14
Location: /dev/EU/Finland

PostPosted: Thu Apr 07, 2005 6:08 pm    Post subject: Reply with quote

okay, thanks for you
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Sun Apr 17, 2005 9:12 am    Post subject: Reply with quote

Hello, ok after 'fixing' acpi dstdt table powernow still complained:

Code:

powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: No PST tables match this cpuid (0x7a0)
powernow: This is indicative of a broken BIOS.
powernow: Trying ACPI perflib
powernow: no support for ACPI processor found.  Please recompile your kernel with ACPI
powernow: ACPI and legacy methods failed



After some research i found:

http://jos.nouwen.name/notebook/

which led me to

www.consultmatt.co.uk/linux/nx9005/powernow.php

The second site although not same notebook is same problem, that being that there is no pst table in powernow for the cpu in my notebook or more to the point the bios does not contain correct cpu ID so powernow does not find/recognise cpu and so fails.

Details of cpu can be found by emerging x86info and running:

Code:

x86info -a y


See below for output.

To be honest this did not mean much to me, but the second sites problem was related to AMD mobile 2400 barton with ID 0x7a0, this is the same ID as my AMD mobile 2500 barton. There is a patch on the site to apply changes to powernow but it also contains other stuff not relevent to my notebook. Here is the relevent section:

Code:

config MICROCODE
    tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support"
    ---help---
diff -Naur --exclude '*.orig' --exclude '*.rej' linux-2.6.1-gentoo/arch/i386/kernel/cpu/cpufreq/powernow-k7.c linux-2.6.1-gentoo-test/arch/i386/kernel/cpu/cpufreq/powernow-k7.c
--- linux-2.6.1-gentoo/arch/i386/kernel/cpu/cpufreq/powernow-k7.c   2004-01-09 23:40:12.000000000 +0000
+++ linux-2.6.1-gentoo-test/arch/i386/kernel/cpu/cpufreq/powernow-k7.c   2004-01-09 22:32:23.000000000 +0000
@@ -279,6 +279,8 @@
    etuple &= 0xf00;
    etuple |= (c->x86_model<<4)|(c->x86_mask);
 
+   if (etuple == 0x7a0) { etuple = 0x781; }
+
    for (i=0xC0000; i < 0xffff0 ; i+=16) {
 
       p = phys_to_virt(i);



Full patch http://www.consultmatt.co.uk/downloads/patches/kernel/2.6/2.6.1-all-in-1.patch


Now writing kernel patches is a little out of my skill range at moment so wonder if any one can help write one using x86info output below and details from patch above?

cheers



Code:

# x86info -a y

Found 1 CPU
--------------------------------------------------------------------------
eax in: 0x00000000, eax = 00000001 ebx = 68747541 ecx = 444d4163 edx = 69746e65
eax in: 0x00000001, eax = 000006a0 ebx = 00000000 ecx = 00000000 edx = 0383f9ff

Family: 6 Model: 10 Stepping: 0
CPU Model : Athlon XP (Barton)
Feature flags:
        Onboard FPU
        Virtual Mode Extensions
        Debugging Extensions
        Page Size Extensions
        Time Stamp Counter
        Model-Specific Registers
        Physical Address Extensions
        Machine Check Architecture
        CMPXCHG8 instruction
        SYSENTER/SYSEXIT
        Memory Type Range Registers
        Page Global Enable
        Machine Check Architecture
        CMOV instruction
        Page Attribute Table
        36-bit PSEs
        MMX support
        FXSAVE and FXRESTORE instructions
        SSE support

Extended feature flags:

MSR: 0x0000002a=0x00000000 : 00000000 00000000 00000000 00000000
Couldn't read MSR 0xc0000080
Couldn't read MSR 0xc0010010
Couldn't read MSR 0xc0010015
Couldn't read MSR 0xc001001b

Number of reporting banks : 4

MCG_CTL:
 Data cache check enabled
  ECC 1 bit error reporting disabled
  ECC multi bit error reporting disabled
  Data cache data parity disabled
  Data cache main tag parity disabled
  Data cache snoop tag parity disabled
  L1 TLB parity disabled
  L2 TLB parity disabled
 Instruction cache check enabled
  ECC 1 bit error reporting enabled
  ECC multi bit error reporting enabled
  Instruction cache data parity enabled
  IC main tag parity enabled
  IC snoop tag parity enabled
  L1 TLB parity enabled
  L2 TLB parity enabled
  Predecode array parity enabled
  Target selector parity enabled
  Read data error enabled
 Bus unit check enabled
  External L2 tag parity error enabled
  L2 partial tag parity error enabled
  System ECC TLB reload error enabled
  L2 ECC TLB reload error enabled
  L2 ECC K7 deallocate enabled
  L2 ECC probe deallocate enabled
  System datareaderror reporting enabled
 Load/Store unit check enabled
  Read data error enable (loads) enabled
  Read data error enable (stores) enabled

           31       23       15       7
Bank: 0 (0x400)
MC0CTL:    00000000 00000000 00000000 00000000
MC0STATUS: 00000000 00000000 00000000 00000000
MC0ADDR:   00000000 00000000 01000000 00000000
MC0MISC:   00000000 00000000 00000000 00000000

Bank: 1 (0x404)
MC1CTL:    11111111 11111111 11111111 11111111
MC1STATUS: 00000000 00000000 00000000 00000000
MC1ADDR:   11111110 11111111 10111111 11111111
MC1MISC:   00000000 00000000 00000000 00000000

Bank: 2 (0x408)
MC2CTL:    00000000 00000000 00000111 11111111
MC2STATUS: 00000000 00000000 00000000 00000000
MC2ADDR:   10011001 11100100 10111011 11001111
MC2MISC:   10011001 11100100 10111011 11001111

Bank: 3 (0x40c)
MC3CTL:    00000000 00000000 00000000 00000111
MC3STATUS: 00000000 00000000 00000000 00000000
MC3ADDR:   11111111 11110111 11111111 11111111
MC3MISC:   00000000 00000000 00000000 00000000


Connector type: Socket A (462 Pin PGA)


MTRR registers:
MTRRcap (0xfe): 0x0000000000000508
MTRRphysBase0 (0x200): 0x0000000000000006
MTRRphysMask0 (0x201): 0x0000000fe0000800
MTRRphysBase1 (0x202): 0x0000000020000006
MTRRphysMask1 (0x203): 0x0000000ff8000800
MTRRphysBase2 (0x204): 0x0000000028000006
MTRRphysMask2 (0x205): 0x0000000ffc000800
MTRRphysBase3 (0x206): 0x00000000f0000001
MTRRphysMask3 (0x207): 0x0000000ffe000800
MTRRphysBase4 (0x208): 0x0000000000000000
MTRRphysMask4 (0x209): 0x0000000000000000
MTRRphysBase5 (0x20a): 0x0000000000000000
MTRRphysMask5 (0x20b): 0x0000000000000000
MTRRphysBase6 (0x20c): 0x0000000000000000
MTRRphysMask6 (0x20d): 0x0000000000000000
MTRRphysBase7 (0x20e): 0x0000000000000000
MTRRphysMask7 (0x20f): 0x0000000000000000
MTRRfix64K_00000 (0x250): 0x0606060606060606
MTRRfix16K_80000 (0x258): 0x0606060606060606
MTRRfix16K_A0000 (0x259): 0x0000000000000000
MTRRfix4K_C8000 (0x269): 0x0505050505050505
MTRRfix4K_D0000 0x26a: 0x0000050505050505
MTRRfix4K_D8000 0x26b: 0x0500000000000000
MTRRfix4K_E0000 0x26c: 0x0505050506060606
MTRRfix4K_E8000 0x26d: 0x0505050505050505
MTRRfix4K_F0000 0x26e: 0x0505050505050505
MTRRfix4K_F8000 0x26f: 0x0505050505050505
MTRRdefType (0x2ff): 0x0000000000000c00


1.6Ghz processor (estimate).

_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Tue Apr 19, 2005 8:37 am    Post subject: Reply with quote

Update: I emailed the maintainer of powernow and he suggested trying mm-sources kernel, this cured powernow issue but introduced no related issues such as synaptic touchpad X setting preventing X loading, have emailed him again asking for relevent patch to try on gentoo-sources.
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Tue Apr 19, 2005 10:29 pm    Post subject: Reply with quote

hello, ok tried applying the powernow patch in mm sources to gentoo-sources but got an error.

The patch can be found here:

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc2/2.6.12-rc2-mm3/broken-out/

I did:

Code:

patch -p1 < powernow-k7recalibrate-cpu_khz.patch



then recompiled kernel but got error:

Code:

arch/i386/kernel/built-in.o(.init.text+0x540f): In function `powernow_cpu_init':
: undefined reference to `recalibrate_cpu_khz'
make: *** [.tmp_vmlinux1] Error 1



Any ideas what is amiss?

cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Thu Apr 21, 2005 8:22 am    Post subject: Reply with quote

Anyone help out here?

Know it is not a popular notebook but would be nice toget working :)
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum