Re: TOSHIBA Portege R600/R700 ACPI suspend not working

2011-04-01 Thread Peter Ericson
On Thu, Mar 31, 2011 at 05:43:32PM -0600, Theo de Raadt wrote:
 Can you refine when this happen?
 
 if need be, sthen@ can supply you with daily kernels so that you can refine 
 when it happened.
 Hopefully you don't hit some userland:kernel compatibility issue too hard 
 when you try to
 find it... but it would be very helpful.

I tested 4.8-release kernel on 4.9-current userland (luckily apmd and
zzz work), on the R600 suspend/resume works just fine, on the R700
suspend appears to work but the machine resets itself when I press the
power button to resume.

I got lucky and found that building the kernel with /usr/src/sys
updated to 19 Aug 2010 introduces the change in behaviour, 18 Aug was
fine (note: localised dates?).

I had a look at the diff between 18th/19th and I think it might be
this commit:
http://marc.info/?l=openbsd-cvsm=128207276025618

Hope this helps, it would be great to have the R600 working again and
maybe closer to finding a solution for the R700 aswell.

Regards,

-- 
Peter Ericson



TOSHIBA Portege R600/R700 ACPI suspend not working

2011-03-31 Thread Peter Ericson
Hi misc@

R600: switch from X to vt, OK.  zzz from vt, screen goes blank,
backlight is still on and no change in status leds.  At this point the
machine is not responsive, power button doesn't work, keypresses don't
do anything, no response to ping requests.

R700: same behaviour, in addition text terminals show no text after X
is started, also the R700 in general is a little flakey (hangs - 4
second power button depress required).  On the initial install I found
this machine more reliable when switching to legacy hard drive mode
(so disk shows up as wd0 instead of sd0).

Sometime during 4.8-current suspend/resume worked flawlessly on the
R600 (this was prior to purchasing the R700), I was running current
but there was a gap of a month or two between upgrades, I think
suspend on 4.8-release didn't work (not 100% sure on that) and I don't
know the date of the snapshot I was successfully running
unfortunately.

I have been reading source-changes for about a year and I have browsed
through the acpi source code but I have no clue on how to diagnose
this...any ideas?

Thanks.

acpidump:
http://121.212.255.234/R600.tgz
http://121.212.255.234/R700.tgz

R600 dmesg:

OpenBSD 4.9-current (GENERIC.MP) #814: Wed Mar 23 13:00:06 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU U9400 @ 1.40GHz (GenuineIntel 686-class) 
1.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
real mem  = 3010621440 (2871MB)
avail mem = 2951208960 (2814MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/04/09, BIOS32 rev. 0 @ 0xfca9d, SMBIOS 
rev. 2.5 @ 0xec000 (46 entries)
bios0: vendor TOSHIBA version Version 3.00 date 09/04/2009
bios0: TOSHIBA PORTEGE R600
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC MCFG HPET TCPA SLIC DMAR SSDT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices USB1(S4) USB4(S4) USB5(S4) USB6(S4) EHC1(S4) EHC2(S4) 
AZAL(S3) WLAN(S4) EXCB(S4) LAN_(S4) LID_(S4) PWRB(S4) HS87(S4) HS86(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU U9400 @ 1.40GHz (GenuineIntel 686-class) 
1.40 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (PCIB)
acpiprt2 at acpi0: bus 1 (MPEX)
acpiprt3 at acpi0: bus 2 (EXCB)
acpicpu0 at acpi0: C1, PSS
acpicpu1 at acpi0: C1, PSS
acpipwrres0 at acpi0: PDOC
acpitz0 at acpi0: critical temperature 107 degC
acpibtn0 at acpi0: LID_
acpibat0 at acpi0: BAT1 model G71C00086110 serial 000628 type Li-ION   
oem 0
acpibtn1 at acpi0: PWRB
acpiac0 at acpi0: AC unit online
acpidock0 at acpi0: DOCK not docked (0)
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
acpivout1 at acpivideo0: CRT_
acpivout2 at acpivideo0: DVI_
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x3000 0xe8000/0x8000!
cpu0: Enhanced SpeedStep 1397 MHz: speeds: 1401, 1400, 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
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 0xe000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 10)
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:23:18:d8:49:55
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 16 (irq 
10)
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 19 (irq 
11)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 19 (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 
22 (irq 11)
azalia0: codecs: Realtek ALC262
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03
pci1 at ppb0 bus 1
iwn0 at pci1 dev 0 function 0 Intel WiFi Link 5100 rev 0x00: apic 1 int 16 
(irq 10), MIMO 1T2R, MoW, address 00:26:c6:1d:63:b4
ppb1 at 

Re: TOSHIBA Portege R600/R700 ACPI suspend not working

2011-03-31 Thread Theo de Raadt
Can you refine when this happen?

if need be, sthen@ can supply you with daily kernels so that you can refine 
when it happened.
Hopefully you don't hit some userland:kernel compatibility issue too hard when 
you try to
find it... but it would be very helpful.