Re: Lenovo ThinkPad T60 won't resume

2010-11-29 Thread Luca Corti
On Sun, 2010-10-31 at 23:33 +, percy piper wrote:

 Thanks Luca, would you mind sending me a pcidump -v please?

Sorry, I'm a bit late with my reply.

Unfortunately the fan of *my* T60 was noisy for a reason, it was
failing. The new one works like a charm and quietly :) 

So here is my pcidump -v pr0n.

ciao

Luca

Domain /dev/pci0:
 0:0:0: Intel 82945GM Host
0x: Vendor ID: 8086 Product ID: 27a0
0x0004: Command: 0106 Status ID: 2090
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 03
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR empty ()
0x0014: BAR empty ()
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 17aa Product ID: 2015
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0x00e0: Capability 0x09: Vendor Specific
 0:1:0: Intel 82945GM PCIE
0x: Vendor ID: 8086 Product ID: 27a1
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 03
0x000c: BIST: 00 Header Type: 01 Latency Timer: 00 Cache Line Size: 10
0x0010: 
0x0014: 
0x0018: Primary Bus: 0 Secondary Bus: 1 Subordinate Bus: 1 
Secondary Latency Timer: 00
0x001c: I/O Base: 20 I/O Limit: 20 Secondary Status: 2000
0x0020: Memory Base: ee10 Memory Limit: ee10
0x0024: Prefetch Memory Base: d801 Prefetch Memory Limit: dff1
0x0028: Prefetch Memory Base Upper 32 Bits: 
0x002c: Prefetch Memory Limit Upper 32 Bits: 
0x0030: I/O Base Upper 16 Bits:  I/O Limit Upper 16 Bits: 
0x0038: Expansion ROM Base Address: 
0x003c: Interrupt Pin: 01 Line: 0b Bridge Control: 001c
0x0088: Capability 0x0d: PCI-PCI
0x0080: Capability 0x01: Power Management
0x0090: Capability 0x05: Message Signaled Interrupts (MSI)
0x00a0: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 Gb/s Link Width: x16 / x16
 0:27:0: Intel 82801GB HD Audio
0x: Vendor ID: 8086 Product ID: 27d8
0x0004: Command: 0106 Status ID: 0010
0x0008: Class: 04 Subclass: 03 Interface: 00 Revision: 02
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 10
0x0010: BAR mem 64bit addr: 0xee40/0x4000
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 17aa Product ID: 2010
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 02 Line: 0b Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
0x0060: Capability 0x05: Message Signaled Interrupts (MSI)
0x0070: Capability 0x10: PCI Express
 0:28:0: Intel 82801GB PCIE
0x: Vendor ID: 8086 Product ID: 27d0
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 02
0x000c: BIST: 00 Header Type: 81 Latency Timer: 00 Cache Line Size: 10
0x0010: 
0x0014: 
0x0018: Primary Bus: 0 Secondary Bus: 2 Subordinate Bus: 2 
Secondary Latency Timer: 00
0x001c: I/O Base: 30 I/O Limit: 30 Secondary Status: 2000
0x0020: Memory Base: ee00 Memory Limit: ee00
0x0024: Prefetch Memory Base: fff1 Prefetch Memory Limit: 0001
0x0028: Prefetch Memory Base Upper 32 Bits: 
0x002c: Prefetch Memory Limit Upper 32 Bits: 
0x0030: I/O Base Upper 16 Bits:  I/O Limit Upper 16 Bits: 
0x0038: Expansion ROM Base Address: 
0x003c: Interrupt Pin: 01 Line: 0b Bridge Control: 0004
0x0040: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 Gb/s Link Width: x1 / x1
0x0080: Capability 0x05: Message Signaled Interrupts (MSI)
0x0090: Capability 0x0d: PCI-PCI
0x00a0: Capability 0x01: Power Management
 0:28:1: Intel 82801GB PCIE
0x: Vendor ID: 8086 Product ID: 27d2
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 02
0x000c: BIST: 00 Header Type: 81 Latency Timer: 00 Cache Line Size: 10
0x0010: 
0x0014: 
0x0018: Primary Bus: 0 Secondary Bus: 3 Subordinate Bus: 3 
Secondary Latency Timer: 00
0x001c: I/O Base: 40 I/O Limit: 50 Secondary Status: 2000
0x0020: Memory Base: ec00 Memory Limit: edf0
0x0024: Prefetch Memory Base: 

Re: Lenovo ThinkPad T60 won't resume

2010-11-02 Thread LEVAI Daniel
On Mon, Nov 01, 2010 at 08:33:41 -0700, Philip Guenther wrote:
[...]
 Did files change when you did your cvs update (maybe the mirror you
 update from is slow)?  In particular,
 sys/dev/acpi/{acpi.c,acpivar.h,dsdt.c} should have been updated and
 should now have $OpenBSD: lines with my name in them.

Yes, that is the case.

 Next, assuming that that's the case, had you ever done a make depend
 in that kernel compile directory?  Hmm, there have been changes not
 too long ago that required running 'config' again, so if you've
 carried this kernel compile directory around a while then you should
 delete it and start with a config again.

I've started with a clean GENERIC.MP dir.

 If that's all correct, then you're going to need to do some digging of
 your own to help track this down.  What was the update time/date of
 the last kernel that you are sure could resume?  Can you confirm that
 by updating to that date with cvs update -D2010/10/XX and building
 the result?  (You should toast the compile directory in each case when
 doing this sort of thing.)  If that confirms a success, then do a
 binary search from that date to the present.  If not, back up further
 and try again...
 
 I mean, come on, worked before, stopped working, still doesn't work
 gives us nothing to go on for what broke your box.  That last commit
 was what broke resume on _my_ thinkpad...

It never worked before. The most I could get out of resume is a
non-resumed display, back in august when testing [1]. I could type in
'reboot' blindly but that's all.


[1]: http://marc.info/?l=openbsd-techm=128106745707385w=2


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Lenovo ThinkPad T60 won't resume

2010-11-02 Thread Bryan Linton
On 2010-11-01 21:36:04, Philip Guenther guent...@gmail.com wrote:

 [...]

 So, while that change hasn't been recommitted yet, if you're
 running into problems with suspend or resume on a box that it
 worked fine on before, some sort of worked with kernel from
 date1, failed on kernel from date2 really would assist in
 tracking this down.  And build from a clean directory. 


Suspend/resume mostly worked with the Aug 02nd snap and mostly
failed on the Aug 04th snap  :)

I guess you can call this a me too in that I've been experiencing
many of the same issues everyone else seems to have with their T60s.

There was a brief window in in late July/early August about a week
long where it would successfully suspend and resume, but the screen
would never turn back on.  Anytime before or after that and it
would suspend fine, but when it resumes it's totally unresponsive
to anything except a 4 second press of the power button.

I did a little bit of testing and sent a report to dmesg@ back
when the call for testing went out.  I've attached it to this mail
in case it might be useful.


NB, my T60 has a Radeon X1300 in it whereas the other two posters
in this thread have an X1400.  Not sure how relevant that is
in this case though...


-- 
Bryan

- Forwarded message from Bryan Linton b...@shoshoni.info -

Date: Fri, 6 Aug 2010 23:23:43 -0800
From: Bryan Linton b...@shoshoni.info
To: dm...@openbsd.org
Subject: IBM Thinkpad T60 w/ATI video, suspend works, resume works w/blank
screen, everything else OK
Content-Type: multipart/mixed; boundary=n8g4imXOkfNTN/H1
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
Content-Length: 11265

With the Aug 02nd snap:
Suspend works fine but resume comes up with a blank screen.
Keyboard works fine after resume as evidenced by du /usr causing
the HDD light to blink with appropriate noises coming from the
HDD.  Ctrl-C stops this activity.  Also, either pressing Fn-F4 (the
key combination to suspend the laptop) or typing in apm -S or apm
-z successfully suspends the system again, coming back to a blank
screen upon resuming with a still working keyboard.

Wired network works fine, as evidenced by playing an audio file
over NFS, then suspend/resume, and still being able to seek all
the way to the end (and randomly).  This was an mp3 that was
several hundred megabytes in size so I don't think that buffering
would have pulled the whole file in.

However, after resuming, typing in halt, halt -p or reboot
cause a brief flicker of the HDD activity light and appear to
otherwise have no effect.  The system always fscks all filesystems
after having to hold the power button down for ~4 seconds to turn
it off.  halt -p and reboot work fine and have their intended
effects if the system has not been suspended.

There was no difference in behavior between bsd.sp and bsd.mp.
apmd was running during all these tests.  All tests were done at
the console.

The Aug 04th and Aug 05th snap show a regression in that suspend
works, but on resume the moon-shaped sleep LED blinks until the
machine is rebooted instead of turning off or staying solid green.
The screen is still blank, but the keyboard and network do not
work at all after resuming.

All other functionality is the same between the snapshots if the
machine has not been suspended.  Wired/Wireless networking, audio,
screen-brightness/volume buttons, etc. all work fine.



OpenBSD 4.8-beta (GENERIC.MP) #295: Mon Aug  2 19:32:22 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2300 @ 1.66GHz (GenuineIntel 686-class) 1.67 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
real mem  = 2682679296 (2558MB)
avail mem = 2628812800 (2507MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/01/10, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS 
rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ETE6WW (2.26 ) date 04/01/2010
bios0: LENOVO 2623D9U
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2300 @ 1.66GHz (GenuineIntel 686-class) 1.67 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, 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: 

Re: Lenovo ThinkPad T60 won't resume

2010-11-02 Thread LEVAI Daniel
On Tue, Nov 02, 2010 at 05:41:29 -0800, Bryan Linton wrote:
[...]
 There was a brief window in in late July/early August about a week
 long where it would successfully suspend and resume, but the screen
 would never turn back on.  Anytime before or after that and it
 would suspend fine, but when it resumes it's totally unresponsive
 to anything except a 4 second press of the power button.
[...]

Exactly my symptoms.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Lenovo ThinkPad T60 won't resume

2010-11-02 Thread percy piper
 There was a brief window in in late July/early August about a week
 long where it would successfully suspend and resume, but the screen
 would never turn back on.  Anytime before or after that and it
 would suspend fine, but when it resumes it's totally unresponsive
 to anything except a 4 second press of the power button.

 Exactly my symptoms.

Right, this is what I was expecting.

You maybe can get suspend/resume working again with some caveats.

Try reverting just the part of r1.60 of sys/dev/pci/vga_pci.c that reposts
All ATI video until further notice. It breaks resume on at least some X1400
devices. (Or maybe adapt the SUBVENDOR SUBPRODUCT masks).

That might get you resuming again. The colours of your X display will
probably
be completely screwed up. This is a bug in the radeon driver in -current.
Quick
workaround: xgamma -gamma 1.0 (put it in /etc/apm/resume).

You still will not have working consoles after resume, they will be all
black.
I don't have a workaround for that, I just live with it.



Re: Lenovo ThinkPad T60 won't resume

2010-11-01 Thread LEVAI Daniel
On Sun, Oct 31, 2010 at 23:07:40 +, percy piper wrote:
   It has an ATI Radeon Mobility X1400 btw.
 
  I have the same issue with resume.
 
 Did either of you have working resume ever before?

The farthest I could got with resume was a not resumed video display. I could
type in reboot and not have to turn off the machine, but that's all.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Lenovo ThinkPad T60 won't resume

2010-11-01 Thread LEVAI Daniel
On Sun, Oct 31, 2010 at 15:06:29 -0700, Philip Guenther wrote:
 On Sunday, October 31, 2010, LEVAI Daniel l...@ecentrum.hu wrote:
  My Lenovo ThinkPad won't resume after suspend. When suspending, the
  little moon led lights up, and when resuming it blinks, but that's all.
 ...
 
 Problem commit has been backed out.  Update sys/ and rebuild.

I'm sorry to say, but with the new kernel, I still can't get this
machine to resume. The dmesg haven't changed at all (except of course
the first version line), and the pcidump -v output is the same too.
I've uploaded the new acpidump to, I don't know if it has changed:
http://leva.ecentrum.hu/acpidump/t60_2.tar.gz


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Lenovo ThinkPad T60 won't resume

2010-11-01 Thread Philip Guenther
On Mon, Nov 1, 2010 at 4:38 AM, LEVAI Daniel l...@ecentrum.hu wrote:
 On Sun, Oct 31, 2010 at 15:06:29 -0700, Philip Guenther wrote:
 On Sunday, October 31, 2010, LEVAI Daniel l...@ecentrum.hu wrote:
  My Lenovo ThinkPad won't resume after suspend. When suspending, the
  little moon led lights up, and when resuming it blinks, but that's all.
 ...

 Problem commit has been backed out.  Update sys/ and rebuild.

 I'm sorry to say, but with the new kernel, I still can't get this
 machine to resume.

sigh

In a hurry and didn't have time to give any real information about your
builds?

Did files change when you did your cvs update (maybe the mirror you
update from is slow)?  In particular,
sys/dev/acpi/{acpi.c,acpivar.h,dsdt.c} should have been updated and
should now have $OpenBSD: lines with my name in them.

Next, assuming that that's the case, had you ever done a make depend
in that kernel compile directory?  Hmm, there have been changes not
too long ago that required running 'config' again, so if you've
carried this kernel compile directory around a while then you should
delete it and start with a config again.

If that's all correct, then you're going to need to do some digging of
your own to help track this down.  What was the update time/date of
the last kernel that you are sure could resume?  Can you confirm that
by updating to that date with cvs update -D2010/10/XX and building
the result?  (You should toast the compile directory in each case when
doing this sort of thing.)  If that confirms a success, then do a
binary search from that date to the present.  If not, back up further
and try again...

I mean, come on, worked before, stopped working, still doesn't work
gives us nothing to go on for what broke your box.  That last commit
was what broke resume on _my_ thinkpad...


Philip Guenther



Re: Lenovo ThinkPad T60 won't resume

2010-11-01 Thread Philip Guenther
On 11/1/10, Philip Guenther guent...@gmail.com wrote:
...
 I mean, come on, worked before, stopped working, still doesn't work
 gives us nothing to go on for what broke your box.  That last commit
 was what broke resume on _my_ thinkpad...

...or not.  Further testing on my T60 (running i386) and T510 (running
amd64) seems to indicate that Jordan's commit was just fine.  My
suspend problems appear to have been elsewhere as I'm now suspending
and resuming just fine with the reverted commit back in my tree.

So, while that change hasn't been recommitted yet, if you're running
into problems with suspend or resume on a box that it worked fine on
before, some sort of worked with kernel from date1, failed on
kernel from date2 really would assist in tracking this down.  And
build from a clean directory.


Philip Guenther



Re: Lenovo ThinkPad T60 won't resume

2010-10-31 Thread STeve Andre'

 On 10/31/10 07:36, LEVAI Daniel wrote:

Hi!

My Lenovo ThinkPad won't resume after suspend. When suspending, the
little moon led lights up, and when resuming it blinks, but that's all.
Typing reboot and stuff blindly doesn't work, so I guess not just the
video device stays off. It has an ATI Radeon Mobility X1400 btw.


=  acpidump -v
http://leva.ecentrum.hu/acpidump/t60.tar.gz

=  pcidump -v


I don't know if this will solve your problem, but there seems to be a
new BIOS for your machine.  The install CD is dated april 7th 2010.
I'd try that first.

http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovolndocid=MIGR-62928

--STeve Andre'



Re: Lenovo ThinkPad T60 won't resume

2010-10-31 Thread Luca Corti
On Sun, 2010-10-31 at 14:45 -0400, STeve Andre' wrote:
  My Lenovo ThinkPad won't resume after suspend. When suspending, the
  little moon led lights up, and when resuming it blinks, but that's all.
  Typing reboot and stuff blindly doesn't work, so I guess not just the
  video device stays off. It has an ATI Radeon Mobility X1400 btw.
 I don't know if this will solve your problem, but there seems to be a
 new BIOS for your machine.  The install CD is dated april 7th 2010.
 I'd try that first.
 
 http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovolndocid=MIGR-62928

I have that version of the BIOS (79ETE6WW, 2.26) on my T60 and I have
the same issue with resume. I also have the same graphics chip. 

My T60 model is 2007E79.

ciao

Luca



Re: Lenovo ThinkPad T60 won't resume

2010-10-31 Thread Philip Guenther
On Sunday, October 31, 2010, LEVAI Daniel l...@ecentrum.hu wrote:
 My Lenovo ThinkPad won't resume after suspend. When suspending, the
 little moon led lights up, and when resuming it blinks, but that's all.
...

Problem commit has been backed out.  Update sys/ and rebuild.


Philip Guenther



Re: Lenovo ThinkPad T60 won't resume

2010-10-31 Thread percy piper
  It has an ATI Radeon Mobility X1400 btw.

 I have the same issue with resume.

Did either of you have working resume ever before?



Re: Lenovo ThinkPad T60 won't resume

2010-10-31 Thread Luca Corti
On Sun, 2010-10-31 at 23:07 +, percy piper wrote:
   It has an ATI Radeon Mobility X1400 btw.
  I have the same issue with resume.
 Did either of you have working resume ever before?

Yes, this started to happen lately with current.
It seems the guilty commit has been just backed out.

ciao

Luca



Re: Lenovo ThinkPad T60 won't resume

2010-10-31 Thread percy piper
 Yes, this started to happen lately with current.
 It seems the guilty commit has been just backed out.

Thanks Luca, would you mind sending me a pcidump -v please?