On Sun, Apr 18, 2010 at 9:03 AM, Neal Hogan <nealho...@gmail.com> wrote: >> >> Like sthen@ already said.. >> >> The ahci controller does not support suspend/resume yet so.. try >> changing SATA mode in the bios to compability mode so that your >> harddrive attaches through pciide instead of through ahci. >> >> This has the consequence that you have to edit fstab during boot when >> the kernel cannot find sd0a but then you just do: >> >> # mount /dev/wd0a / >> # cd /etc >> # ed fstab >> ,s/sd0/wd0/g >> w >> q >> # exit >> [ boot continues.. ] >> >> I tried that on my thinkpad t400 and it made suspend/resume work for me. >> >> /gabriel >> >> > > I'm curious what you mean by "work fine for me." I have a T400 and > followed your suggestion. My machine suspends and resumes most of the > time with X and the network up and running. However, once resumed, one > of the processors is in ~100% interupt state and reboot doesn't work > properly. It will sync disks and look as though it powers down (black > screen) but the system's power light is still on and the machine does > not resond to anything but a hard shutdown. Also, after one > suspend/resume, it won't suspend again. > > Note, I say that it suspends/resumes most of the time because it > panicked once. However, I haven't been able to get to panic again. >
First, I want to be clear that I'm not complaining about this, just informing. I'm as excited as most to see this progress with ACPI. Second, as I say above, one of the processors is in 98-100% interrupt state after the machine resumes. However, that's only while X is running. When I leave X it drops to around 40% and returns to ~100% when I start X again. Thanks! > dmesg after suspend/resume: > > OpenBSD 4.7-current (GENERIC.MP) #186: Thu Apr 15 12:02:55 MDT 2010 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 2070614016 (1974MB) > avail mem = 2001784832 (1909MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries) > bios0: vendor LENOVO version "7UET43WW (1.13 )" date 08/19/2008 > bios0: LENOVO 7417CTO > acpi0 at bios0: rev 2 > acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT > SSDT TCPA SSDT SSDT SSDT > acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) > EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) > USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz > cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG > cpu0: 3MB 64b/line 8-way L2 cache > cpu0: apic clock running at 266MHz > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz > cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG > cpu1: 3MB 64b/line 8-way L2 cache > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins > ioapic0: misconfigured as apic 2, remapped to apid 1 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (AGP_) > acpiprt2 at acpi0: bus 2 (EXP0) > acpiprt3 at acpi0: bus 3 (EXP1) > acpiprt4 at acpi0: bus -1 (EXP2) > acpiprt5 at acpi0: bus 5 (EXP3) > acpiprt6 at acpi0: bus 13 (EXP4) > acpiprt7 at acpi0: bus 21 (PCI1) > acpiec0 at acpi0 > acpicpu0 at acpi0: C3, C2, C1, PSS > acpicpu1 at acpi0: C3, C2, C1, PSS > acpipwrres0 at acpi0: PUBS > acpitz0 at acpi0: critical temperature 127 degC > acpitz1 at acpi0: critical temperature 100 degC > acpibtn0 at acpi0: LID_ > acpibtn1 at acpi0: SLPB > acpibat0 at acpi0: BAT0 model "42T5225" serial 3388 type LION oem "Panasonic" > acpibat1 at acpi0: BAT1 not present > acpiac0 at acpi0: AC unit online > acpithinkpad0 at acpi0 > acpidock0 at acpi0: GDCK not docked (0) > cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 > vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > intagp0 at vga1 > agp0 at intagp0: aperture at 0xd0000000, size 0x10000000 > inteldrm0 at vga1: apic 1 int 16 (irq 11) > drm0 at inteldrm0 > "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured > "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins > ioapic0: misconfigured as apic 2, remapped to apid 1 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (AGP_) > acpiprt2 at acpi0: bus 2 (EXP0) > acpiprt3 at acpi0: bus 3 (EXP1) > acpiprt4 at acpi0: bus -1 (EXP2) > acpiprt5 at acpi0: bus 5 (EXP3) > acpiprt6 at acpi0: bus 13 (EXP4) > acpiprt7 at acpi0: bus 21 (PCI1) > acpiec0 at acpi0 > acpicpu0 at acpi0: C3, C2, C1, PSS > acpicpu1 at acpi0: C3, C2, C1, PSS > acpipwrres0 at acpi0: PUBS > acpitz0 at acpi0: critical temperature 127 degC > acpitz1 at acpi0: critical temperature 100 degC > acpibtn0 at acpi0: LID_ > acpibtn1 at acpi0: SLPB > acpibat0 at acpi0: BAT0 model "42T5225" serial 3388 type LION oem "Panasonic" > acpibat1 at acpi0: BAT1 not present > acpiac0 at acpi0: AC unit online > acpithinkpad0 at acpi0 > acpidock0 at acpi0: GDCK not docked (0) > cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 > vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > intagp0 at vga1 > agp0 at intagp0: aperture at 0xd0000000, size 0x10000000 > inteldrm0 at vga1: apic 1 int 16 (irq 11) > drm0 at inteldrm0 > "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured > "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured > em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1 > int 20 (irq 11), address 00:1e:37:d9:cc:ed > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 > int 20 (irq 11) > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 > int 21 (irq 11) > uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 > int 22 (irq 11) > ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 > int 23 (irq 11) > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: > apic 1 int 17 (irq 11) > azalia0: codecs: Conexant CX20561 > audio0 at azalia0 > ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 > int 20 (irq 11) > pci1 at ppb0 bus 2 > ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 > int 21 (irq 11) > pci2 at ppb1 bus 3 > ath0 at pci2 dev 0 function 0 "Atheros AR5424" rev 0x01: apic 1 int 17 (irq 11) > ath0: AR5424 14.2 phy 7.0 rf 0.0, WOR02W, address 00:22:69:86:96:77 > ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 > int 23 (irq 11) > pci3 at ppb2 bus 5 > ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x03: apic 1 > int 20 (irq 11) > pci4 at ppb3 bus 13 > uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 > int 16 (irq 11) > uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 > int 17 (irq 11) > uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 > int 18 (irq 11) > ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 > int 19 (irq 11) > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93 > pci5 at ppb4 bus 21 > cbb0 at pci5 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: apic 1 > int 16 (irq 11) > "Ricoh 5C832 Firewire" rev 0x04 at pci5 dev 0 function 1 not configured > cardslot0 at cbb0 slot 0 flags 0 > cardbus0 at cardslot0: bus 22 device 0 cacheline 0x0, lattimer 0xb0 > pcmcia0 at cardslot0 > pcib0 at pci0 dev 31 function 0 "Intel 82801IEM LPC" rev 0x03 > pciide0 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x03: DMA, > channel 0 configured to native-PCI, channel 1 configured to native-PCI > pciide0: using apic 1 int 16 (irq 255) for native-PCI interrupt > wd0 at pciide0 channel 0 drive 0: <HITACHI HTS722016K9SA00> > wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 > atapiscsi0 at pciide0 channel 1 drive 0 > scsibus0 at atapiscsi0: 2 targets > cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-U20N, HX12> ATAPI > 5/cdrom removable > cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6 > ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic > 1 int 23 (irq 11) > iic0 at ichiic0 > usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb4 at uhci2: USB revision 1.0 > uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb6 at uhci4: USB revision 1.0 > uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb7 at uhci5: USB revision 1.0 > uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > isa0 at pcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pms0 at pckbc0 (aux slot) > pckbc0: using irq 12 for aux slot > wsmouse0 at pms0 mux 0 > pcppi0 at isa0 port 0x61 > midi0 at pcppi0: <PC speaker> > spkr0 at pcppi0 > aps0 at isa0 port 0x1600/31 > mtrr: Pentium Pro MTRR support > vscsi0 at root > scsibus1 at vscsi0: 256 targets > softraid0 at root > root on wd0a swap on wd0b dump on wd0b > activate: mainbus0 2 > activate: bios0 2 > activate: acpi0 2 > activate: acpihpet0 2 > activate: pci0 2 > activate: pchb0 2 > activate: vga1 2 > activate: intagp0 2 > activate: inteldrm0 2 > activate: em0 2 > activate: uhci0 2 > activate: uhci1 2 > activate: uhci2 2 > activate: ehci0 2 > activate: azalia0 2 > activate: ppb0 2 > activate: pci1 2 > activate: ppb1 2 > activate: pci2 2 > activate: ppb2 2 > activate: pci3 2 > activate: ppb3 2 > activate: pci4 2 > activate: uhci3 2 > activate: uhci4 2 > activate: uhci5 2 > activate: ehci1 2 > activate: ppb4 2 > activate: pci5 2 > activate: pciide0 2 > activate: wd0 2 > activate: mainbus0 3 > activate: bios0 3 > activate: acpi0 3 > activate: acpihpet0 3 > activate: pci0 3 > activate: pchb0 3 > activate: vga1 3 > activate: intagp0 3 > activate: inteldrm0 3 > activate: em0 3 > activate: uhci0 3 > activate: uhci1 3 > activate: uhci2 3 > activate: ehci0 3 > activate: usb0 3 > activate: azalia0 3 > activate: ppb0 3 > activate: pci1 3 > activate: ppb1 3 > activate: pci2 3 > activate: ppb2 3 > activate: pci3 3 > activate: ppb3 3 > activate: pci4 3 > activate: uhci3 3 > activate: uhci4 3 > activate: uhci5 3 > activate: ehci1 3 > activate: usb1 3 > activate: ppb4 3 > activate: pci5 3 > activate: pciide0 3 > activate: wd0 3