Re: [acpi-jp 2363] Updated ec-burst.diff patch

From: Koop Mast <einekoai_at_chello.nl>
Date: 03 Jul 2003 13:09:16 +0200
Op di 01-07-2003, om 10:07 schreef Nate Lawson:
> Please download and try the new version.  It correctly implements burst
> mode to the best of the 2.0 spec.  Like the previous message, please
> report the appropriate dmesgs ("acpi_ec0*" and "EC Waited*") and any
> errors or regression.  I've tested "du -a /" while plugging/unplugging the
> power cable on my laptop many times with no errors.
> 
> I haven't received any feedback yet.  This WILL hit the tree in a few
> weeks because it fixes known problems.  Test it now or test it then.  :)
> 
> Thanks,
> -Nate

Hi,

My machine an ASUS L3800S laptop.
Before the burst_ec patch I am using the hw.acpi.ec.event_driven sysctl.
This "fixed" the panic that occurred when switching to battery power.
When using the patch I get same behavior as in the pre-event_driven="1"
days :).

Setting / unsetting hw.acpi.ec.burst_mode in /boot/loader.conf doesn't
make a different.

Dmesg and panic msg + trace are attached. If you need more info, I got
the debug kernel and core sitting on my disk.

-Koop

root_at_crashalot:/usr/crash# gdb -k kernel.0 vmcore.0
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-undermydesk-freebsd"...
panic: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xefffffff
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01539c1
stack pointer           = 0x10:0xccfc9ba0
frame pointer           = 0x10:0xccfc9ba4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 20 (acpi_thermal)
trap number             = 12
panic: page fault
 
syncing disks, buffers remaining... ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #6: Thu Jul  3 10:47:04 CEST 2003
    root_at_crashalot.prisma.quccc.org:/usr/obj/usr/src/sys/crashalot
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0554000.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc05541f4.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc05542a0.
Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc055434c.
Preloaded elf module "/boot/kernel/usb.ko" at 0xc05543f8.
Preloaded elf module "/boot/kernel/ums.ko" at 0xc05544a0.
Preloaded elf module "/boot/kernel/radeon.ko" at 0xc0554548.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 2000081208 Hz
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.08-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  Features=0x3febf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 268406784 (255 MB)
avail memory = 254902272 (243 MB)
Pentium Pro MTRR support enabled
acpi0: <ASUS   P4_L3CS > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 6 entries at 0xc00f13b0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 29 INTA is routed to irq 5
pcib0: slot 29 INTB is routed to irq 9
pcib0: slot 31 INTA is routed to irq 9
pcib0: slot 31 INTB is routed to irq 11
pcib0: slot 31 INTB is routed to irq 11
agp0: <Intel 82845 host to AGP bridge> mem 0xe0000000-0xefffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 5
drm0: <ATI Radeon LW Mobility 7500 M7> port 0xd800-0xd8ff mem 0xd7000000-0xd700ffff,0xd8000000-0xdfffffff irq 5 at device 0.0 on pci1
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized radeon 1.8.0 20020828 on minor 0
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0xb800-0xb81f irq 5 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0xb400-0xb41f irq 9 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib2: slot 5 INTA is routed to irq 9
pcib2: slot 7 INTC is routed to irq 9
rl0: <RealTek 8139 10/100BaseTX> port 0xa800-0xa8ff mem 0xd6800000-0xd68000ff irq 9 at device 5.0 on pci2
rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mode
rl0: Ethernet address: 00:e0:18:9a:3e:3a
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cbb0: <RF5C476 PCI-CardBus Bridge> at device 7.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pcib2: slot 7 INTA is routed to irq 5
cbb1: <RF5C476 PCI-CardBus Bridge> at device 7.1 on pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcib2: slot 7 INTB is routed to irq 11
pci2: <serial bus, FireWire> at device 7.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port 0x8400-0x840f,0x8800-0x8803,0x9000-0x9007,0x9400-0x9403,0x9800-0x9807 mem 0xd5800000-0xd58003ff irq 9 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcm0: <Intel 82801CA (ICH3)> port 0xe100-0xe13f,0xe000-0xe0ff irq 11 at device 31.5 on pci0
pcm0: <Cirrus Logic CS4299 AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 drq 1 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
npx0: <math processor> on motherboard
npx0: INT 16 interface
orm0: <Option ROMs> at iomem 0xd0000-0xda7ff,0xc0000-0xcefff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
EC Waited max 4 cycles, event occurred
EC Waited max 5 cycles, event occurred
EC Waited max 164 cycles, event occurred
ad0: 38154MB <IC25N040ATCS04-0> [77520/16/63] at ata0-master UDMA100
EC Waited max 166 cycles, event occurred
acd0: CD-RW <TOSHIBA DVD-ROM SD-R2102> at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
EC Waited max 180 cycles, event occurred
EC Waited max 271 cycles, event occurred
WARNING: /home was not properly dismounted
WARNING: /usr was not properly dismounted
 
 
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xefffffff
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01539c1
stack pointer           = 0x10:0xccfc9ba0
frame pointer           = 0x10:0xccfc9ba4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 20 (acpi_thermal)
panic: from debugger
 
 
Fatal trap 3: breakpoint instruction fault while in kernel mode
instruction pointer     = 0x8:0xc0341f34
stack pointer           = 0x10:0xccfc991c
frame pointer           = 0x10:0xccfc9928
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = IOPL = 0
current process         = 20 (acpi_thermal)
panic: from debugger
Uptime: 31s
Dumping 255 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from /usr/obj/usr/src/sys/crashalot/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/crashalot/modules/usr/src/sys/modules/linux/linux.ko.debug
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/snd_ich.ko...done.
Loaded symbols for /boot/kernel/snd_ich.ko
Reading symbols from /usr/obj/usr/src/sys/crashalot/modules/usr/src/sys/modules/usb/usb.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/crashalot/modules/usr/src/sys/modules/usb/usb.ko.debug
Reading symbols from /usr/obj/usr/src/sys/crashalot/modules/usr/src/sys/modules/ums/ums.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/crashalot/modules/usr/src/sys/modules/ums/ums.ko.debug
Reading symbols from /boot/kernel/radeon.ko...done.
Loaded symbols for /boot/kernel/radeon.ko
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240             dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc02203b3 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc0220723 in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc0166c52 in db_panic () at /usr/src/sys/ddb/db_command.c:449
#4  0xc0166bd2 in db_command (last_cmdp=0xc03b42d0, cmd_table=0x0,
    aux_cmd_tablep=0xc03aed50, aux_cmd_tablep_end=0xc03aed54)
    at /usr/src/sys/ddb/db_command.c:346
#5  0xc0166ce6 in db_command_loop () at /usr/src/sys/ddb/db_command.c:471
#6  0xc0169a7a in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:73
#7  0xc0341c95 in kdb_trap (type=12, code=0, regs=0xccfc9b60)
    at /usr/src/sys/i386/i386/db_interface.c:172
#8  0xc0352e42 in trap_fatal (frame=0xccfc9b60, eva=0)
    at /usr/src/sys/i386/i386/trap.c:831
#9  0xc0352b52 in trap_pfault (frame=0xccfc9b60, usermode=0, eva=4026531839)
    at /usr/src/sys/i386/i386/trap.c:750
#10 0xc035271d in trap (frame=
      {tf_fs = -855900136, tf_es = -1070071792, tf_ds = 16, tf_edi = -855860284, tf_esi = 0, tf_ebp = -855860316, tf_isp = -855860340, tf_ebx = -268435457, tf_edx = -1069686016, tf_ecx = 0, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1072350783, tf_cs = 8, tf_eflags = 66183, tf_esp = -268435457, tf_ss = -855860256}) at /usr/src/sys/i386/i386/trap.c:435
#11 0xc03435e8 in calltrap () at {standard input}:96
#12 0xc0152071 in AcpiNsHandleToPathname (TargetHandle=0xefffffff,
---Type <return> to continue, or q <return> to quit---
    Buffer=0xc03de300) at /usr/src/sys/contrib/dev/acpica/nsnames.c:315
#13 0xc0154c06 in AcpiGetName (Handle=0xefffffff, NameType=0,
    Buffer=0xc03de300) at /usr/src/sys/contrib/dev/acpica/nsxfname.c:257
#14 0xc016cb85 in acpi_name (handle=0x0) at /usr/src/sys/dev/acpica/acpi.c:1578
#15 0xc017831b in acpi_tz_switch_cooler_on (obj=0x0, arg=0xc0c33700)
    at /usr/src/sys/dev/acpica/acpi_thermal.c:586
#16 0xc016becd in acpi_ForeachPackageObject (pkg=0xc230a6c0,
    func=0xc01782c0 <acpi_tz_switch_cooler_on>, arg=0xc0c33700)
    at /usr/src/sys/dev/acpica/acpi.c:1185
#17 0xc0177f9b in acpi_tz_monitor (sc=0x20)
    at /usr/src/sys/dev/acpica/acpi_thermal.c:462
#18 0xc01787b6 in acpi_tz_timeout (sc=0xc0c33700)
    at /usr/src/sys/dev/acpica/acpi_thermal.c:741
#19 0xc01789b6 in acpi_tz_thread (arg=0x0)
    at /usr/src/sys/dev/acpica/acpi_thermal.c:821
#20 0xc020bfb0 in fork_exit (callout=0xc01788d0 <acpi_tz_thread>, arg=0x0,
    frame=0x0) at /usr/src/sys/kern/kern_fork.c:794
(kgdb)
Received on Thu Jul 03 2003 - 02:05:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:13 UTC