Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Gustau Pérez i Querol

Al 11/05/2012 04:10, En/na Mitsuru IWASAKI ha escrit:

Hi

I've been working on suspend/resume for SMP/i386 for a week
and created patches against CURRENT, RELENG_9 and RELENG_8
available at:

http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-CURRENT-20120511.diff
http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_9-20120511.diff
http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_8-20120511.diff

A lot of portion of the patches was ported from amd64.
Testing on Thinkpad X60 (Core Duo T2300), so far so good :)

I'll commit them against CURRENT hopefully next week.



  Reporting from an Acer Centrino Duo, running CURRENT r235266. The 
machine has an nvidia card (Ge7300go). The acpi_video and nvidia modules 
are there.


  I did test it a few times with X running (plain twm) and worked just 
fine. Setting hw.acpi.lid_switch_state=S3 allowed me to use the 
close-the-lid-to-sleep functionality.


  The problem comes when I suspend the machine in the console. The 
machine resumes fine (I can ping and ssh it) but the screen remains 
black. I set hw.acpi.reset_video to 0 or 1 but no go. If I'm in a 
console but X is running, after the resume I can CTRL+ALT+F9 and get my 
video back; then I can return to the console. If I don't have X running, 
I don't know how to get my console back.


   Thanks

___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Mitsuru IWASAKI
Hi,  Thanks for your report.

From: Peter Jeremy pe...@rulingia.com
Subject: Re: [CFT] SMP/i386 suspend/resume
Date: Fri, 11 May 2012 21:20:05 +1000
Message-ID: 2012052005.ga87...@server.rulingia.com

 On 2012-May-11 11:10:19 +0900, Mitsuru IWASAKI iwas...@jp.freebsd.org wrote:
 I've been working on suspend/resume for SMP/i386 for a week
 and created patches against CURRENT, RELENG_9 and RELENG_8
 available at:
 
 Thank you for that.  Since I was in the process of upgrading my
 netbook (Acer Aspire One AOA-110 - Atom N270), I rolled your RELENG_8
 patch on top of r235229.
 
 Unfortunately, the result hasn't been a complete success.  I can
 suspend to S3 with no problems (though that worked before).  The
 resume is less successful.  If X is running, I get a garbage screen.
 If I suspend at a VTY, the screen comes back correctly but there is no
 response from keyboard, touchpad or wired network (though it has the
 correct lights).
 
 Let me know if you have any suggestions for debugging.

I think graphic driver (or pic?) has some problems on resume and they
are out of scope of my patches.
HEAD and RELENG_9 have better support on interrupt re-enabling than
RELENG_8 I think.  Could you try them?
And for ps/2 mouse, kernel option PSM_HOOKRESUME and PSM_RESETAFTERSUSPEND
would be useful.

Thanks

 
 -- 
 Peter Jeremy
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Mitsuru IWASAKI
Hi, Thanks for you report.

From: David Wolfskill d...@freebsd.org
Subject: Re: [CFT] SMP/i386 suspend/resume
Date: Fri, 11 May 2012 13:22:57 +
Message-ID: 20120511132257.ga96...@freefall.freebsd.org

 On Fri, May 11, 2012 at 11:10:19AM +0900, Mitsuru IWASAKI wrote:
  Hi
  
  I've been working on suspend/resume for SMP/i386 for a week
  and created patches against CURRENT, RELENG_9 and RELENG_8
  available at:
  
  http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-CURRENT-20120511.diff
  http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_9-20120511.diff
  http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_8-20120511.diff
  ...
 
 I'm sorry to report that while head  stable/9 did work for me (see
 previous notes in this thread), stable/8 did not.  Well, suspend
 seemed to, but on resume, the screen stayed dark and the machine
 was (as far as I could tell without trying to ping it from another
 machine) unresponsive.

OK, we need some more investigation on RELENG_8 SMP.
I think Core 2 Duo can run amd64, would like to confirm
this problem can be reproduced only on i386 or not.
Could you try same thing on amd64?

Thanks

 
 This was on the same Dell Precision M4400 as before (Core(TM)2 Duo CPU
 T9600), running:
 
 FreeBSD localhost 8.3-STABLE FreeBSD 8.3-STABLE #382 235262M: Fri May 11 
 04:45:52 EDT 2012 root@localhost:/common/S1/obj/usr/src/sys/CANARY  i386
 
 Peace,
 david
 -- 
 David H. Wolfskilld...@freebsd.org
 There is a use for spam:  it helps identify spammers.
 I have no use for spammers.
 
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread David Wolfskill
On Sun, May 13, 2012 at 10:59:17PM +0900, Mitsuru IWASAKI wrote:
 
 OK, we need some more investigation on RELENG_8 SMP.
 I think Core 2 Duo can run amd64, would like to confirm
 this problem can be reproduced only on i386 or not.
 Could you try same thing on amd64?

Well, that will require a bit more work -- I'm pretty sure the hardware
can run amd64, but I only have i386 inistalled presently.  And I'm
getting ready to head to the airport to fly back home now.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgps3R0Z9wGhc.pgp
Description: PGP signature


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Mitsuru IWASAKI
Hi, Thanks for your report.

From: Gustau Pérez i Querol gpe...@entel.upc.edu
Subject: Re: [CFT] SMP/i386 suspend/resume
Date: Sun, 13 May 2012 09:57:33 +0200
Message-ID: 4faf696d.3060...@entel.upc.edu

 Al 11/05/2012 04:10, En/na Mitsuru IWASAKI ha escrit:
  Hi
 
  I've been working on suspend/resume for SMP/i386 for a week
  and created patches against CURRENT, RELENG_9 and RELENG_8
  available at:
 
  http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-CURRENT-20120511.diff
  http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_9-20120511.diff
  http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_8-20120511.diff
 
  A lot of portion of the patches was ported from amd64.
  Testing on Thinkpad X60 (Core Duo T2300), so far so good :)
 
  I'll commit them against CURRENT hopefully next week.
 
 
Reporting from an Acer Centrino Duo, running CURRENT r235266. The 
 machine has an nvidia card (Ge7300go). The acpi_video and nvidia modules 
 are there.
 
I did test it a few times with X running (plain twm) and worked just 
 fine. Setting hw.acpi.lid_switch_state=S3 allowed me to use the 
 close-the-lid-to-sleep functionality.
 
The problem comes when I suspend the machine in the console. The 
 machine resumes fine (I can ping and ssh it) but the screen remains 
 black. I set hw.acpi.reset_video to 0 or 1 but no go. If I'm in a 
 console but X is running, after the resume I can CTRL+ALT+F9 and get my 
 video back; then I can return to the console. If I don't have X running, 
 I don't know how to get my console back.

I think this is graphic driver problem.  nvidia's driver seems
to have correct suspend/resume method.
http://www.nvidia.com/object/freebsd_archive.html

Have you try it?

Thanks

 
 Thanks
 
 
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Mitsuru IWASAKI
Hi,

From: David Wolfskill da...@catwhisker.org
Subject: Re: [CFT] SMP/i386 suspend/resume
Date: Sun, 13 May 2012 07:03:02 -0700
Message-ID: 20120513140302.gi13...@albert.catwhisker.org

 On Sun, May 13, 2012 at 10:59:17PM +0900, Mitsuru IWASAKI wrote:
  
  OK, we need some more investigation on RELENG_8 SMP.
  I think Core 2 Duo can run amd64, would like to confirm
  this problem can be reproduced only on i386 or not.
  Could you try same thing on amd64?
 
 Well, that will require a bit more work -- I'm pretty sure the hardware
 can run amd64, but I only have i386 inistalled presently.  And I'm
 getting ready to head to the airport to fly back home now.

Understood.  I don't need to hurry on this.
BTW, amd64 Live CD might be useful for this purpose.

Thanks!



 
 Peace,
 david
 -- 
 David H. Wolfskillda...@catwhisker.org
 Depriving a girl or boy of an opportunity for education is evil.
 
 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Gustau Perez


Enviat des del meu iTotxo

El 13/05/2012, a les 16:40, Mitsuru IWASAKI iwas...@jp.freebsd.org va 
escriure:
 Hi, Thanks for your report.
 
 From: Gustau Pérez i Querol gpe...@entel.upc.edu
 Subject: Re: [CFT] SMP/i386 suspend/resume
 Date: Sun, 13 May 2012 09:57:33 +0200
 Message-ID: 4faf696d.3060...@entel.upc.edu
 
 Al 11/05/2012 04:10, En/na Mitsuru IWASAKI ha escrit:
 Hi
 
 I've been working on suspend/resume for SMP/i386 for a week
 and created patches against CURRENT, RELENG_9 and RELENG_8
 available at:
 
 http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-CURRENT-20120511.diff
 http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_9-20120511.diff
 http://people.freebsd.org/~iwasaki/acpi/i386-SMP-suspend-RELENG_8-20120511.diff
 
 A lot of portion of the patches was ported from amd64.
 Testing on Thinkpad X60 (Core Duo T2300), so far so good :)
 
 I'll commit them against CURRENT hopefully next week.
 
 
   Reporting from an Acer Centrino Duo, running CURRENT r235266. The 
 machine has an nvidia card (Ge7300go). The acpi_video and nvidia modules 
 are there.
 
   I did test it a few times with X running (plain twm) and worked just 
 fine. Setting hw.acpi.lid_switch_state=S3 allowed me to use the 
 close-the-lid-to-sleep functionality.
 
   The problem comes when I suspend the machine in the console. The 
 machine resumes fine (I can ping and ssh it) but the screen remains 
 black. I set hw.acpi.reset_video to 0 or 1 but no go. If I'm in a 
 console but X is running, after the resume I can CTRL+ALT+F9 and get my 
 video back; then I can return to the console. If I don't have X running, 
 I don't know how to get my console back.
 
 I think this is graphic driver problem.  nvidia's driver seems
 to have correct suspend/resume method.
 http://www.nvidia.com/object/freebsd_archive.html
 
 Have you try it?

  Yes, it is running the propietary driver. Everything was done with it loaded. 
Do you want me to try without the nvidia binary driver?

   OTOH, IIRC the console only test (without X) without acpi_video lead to 
freeze. No crash dump. The machine has no serial or fwire ports :(

  Thanks

   Gus

   






 
 Thanks
 
 
Thanks
 
 
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: ACPI 'driver bug: Unable to set devclass'

2012-05-13 Thread Andriy Gapon
on 13/05/2012 11:39 Bruce Cran said the following:
 I've just updated to -current and noticed the following errors in dmesg:
 
 acpi0: NEC  on motherboard
 acpi0: Power Button (fixed)
 acpi0: reservation of fee0, 1000 (3) failed
 acpi0: reservation of 0, a (3) failed
 acpi0: reservation of 10, bbf0 (3) failed
 driver bug: Unable to set devclass (class: acpi_sysresource devname: 
 (unknown))
 driver bug: Unable to set devclass (class: acpi_timer devname: (unknown))
 cpu0: ACPI CPU on acpi0
 ACPI Warning: Incorrect checksum in table [OEMB] - 0x45, should be 0x44
 (20120420/tbutils-293)
 driver bug: Unable to set devclass (class: acpi_sysresource devname: 
 (unknown))
 cpu2: ACPI CPU on acpi0
 driver bug: Unable to set devclass (class: acpi_sysresource devname: 
 (unknown))
 cpu1: ACPI CPU on acpi0
 driver bug: Unable to set devclass (class: acpi_sysresource devname: 
 (unknown))
 

Can you produce an equivalent snippet with verbose logging enabled?
I have a suspicion that these messages are a byproduct from r231161.
-- 
Andriy Gapon
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: [CFT] SMP/i386 suspend/resume

2012-05-13 Thread Mitsuru IWASAKI
Hi,

Reporting from an Acer Centrino Duo, running CURRENT r235266. The 
  machine has an nvidia card (Ge7300go). The acpi_video and nvidia modules 
  are there.
  
I did test it a few times with X running (plain twm) and worked just 
  fine. Setting hw.acpi.lid_switch_state=S3 allowed me to use the 
  close-the-lid-to-sleep functionality.
  
The problem comes when I suspend the machine in the console. The 
  machine resumes fine (I can ping and ssh it) but the screen remains 
  black. I set hw.acpi.reset_video to 0 or 1 but no go. If I'm in a 
  console but X is running, after the resume I can CTRL+ALT+F9 and get my 
  video back; then I can return to the console. If I don't have X running, 
  I don't know how to get my console back.
  
  I think this is graphic driver problem.  nvidia's driver seems
  to have correct suspend/resume method.
  http://www.nvidia.com/object/freebsd_archive.html
  
  Have you try it?
 
   Yes, it is running the propietary driver. Everything was done with it 
 loaded. Do you want me to try without the nvidia binary driver?

Yes, if it doesn't bother you.
Hmmm, it doesn't seem related with my SMP/i386 sleep patches.
Could you try also Uni-processer kernel (w/o SMP and apic from config
file) without my patches?

OTOH, IIRC the console only test (without X) without acpi_video lead to 
 freeze. No crash dump. The machine has no serial or fwire ports :(

We can improve video initialization on another opportunity.
Linux have many video hacks while we have only hw.acpi.reset_video ;)
http://www.kernel.org/doc/Documentation/power/video.txt
I believe there are some solutions for you in this document, then
we can implement them in our source if found.

Thanks
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org