Re: Can't get resume to work on -BETA1/-CURRENT-200906, help needed

From: Gonzalo Nemmi <gnemmi_at_gmail.com>
Date: Wed, 8 Jul 2009 01:29:47 -0300
On Wed, Jul 8, 2009 at 1:04 AM, Paul B. Mahol <onemda_at_gmail.com> wrote:

> On 7/8/09, Gonzalo Nemmi <gnemmi_at_gmail.com> wrote:
> > On Wed, Jul 8, 2009 at 12:39 AM, Paul B. Mahol <onemda_at_gmail.com> wrote:
> >
> >> On 7/8/09, Gonzalo Nemmi <gnemmi_at_gmail.com> wrote:
> >> > On Tuesday 07 July 2009 5:23:57 am Paul B. Mahol wrote:
> >> >> On 7/7/09, Gonzalo Nemmi <gnemmi_at_gmail.com> wrote:
> >> >> > log in
> >> >> > acpiconf -s 3
> >> >> > suspend works
> >> >> > opened the lid and the screen doesn't come back (backlight never
> >> >> > gets back) hard reset
> >> >> > login again and checked /var/log/messages .. this is what I found:
> >> >> >
> >> >> > Jul  7 00:32:01 gargoyle login: ROOT LOGIN (root) ON ttyv0
> >> >> > Jul  7 00:32:09 gargoyle acpi: suspend at 20090707 00:32:09
> >> >> > Jul  7 00:32:15 gargoyle kernel: fwohci0: fwohci_pci_suspend
> >> >> > Jul  7 00:33:18 gargoyle kernel: ugen3.2: <vendor 0x1bcf> at usbus3
> >> >> > (disconnected)
> >> >> > Jul  7 00:33:18 gargoyle kernel: ums0: at uhub6, port 1, addr 2
> >> >> > (disconnected)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY write timed out (phy 1,
> >> >> > reg 0, val 32768)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY read timed out (phy 1,
> >> >> > reg 0, val 0xffffffff)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY read timed out (phy 1,
> >> >> > reg 24, val 0xffffffff)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY read timed out (phy 1,
> >> >> > reg 16, val 0xffffffff)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY write timed out (phy 1,
> >> >> > reg 16, val 0)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY read timed out (phy 1,
> >> >> > reg 16, val 0xffffffff)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY write timed out (phy 1,
> >> >> > reg 16, val 0)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: PHY write timed out (phy 1,
> >> >> > reg 23, val 18)
> >> >> > Jul  7 00:33:18 gargoyle kernel: bge0: flow-through queue init
> >> >> > failed Jul  7 00:33:18 gargoyle kernel: bge0: initialization
> >> >> > failure Jul  7 00:33:18 gargoyle kernel: fwohci0: Phy 1394a
> >> >> > available S400, 1 ports. Jul  7 00:33:18 gargoyle kernel: fwohci0:
> >> >> > Link S400, max_rec 2048 bytes. Jul  7 00:33:18 gargoyle kernel:
> >> >> > fwohci0: Initiate bus reset Jul  7 00:33:18 gargoyle kernel:
> >> >> > fwohci0: fwohci_intr_core: BUS reset Jul  7 00:33:18 gargoyle
> >> >> > kernel: fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID
> >> >> > Count=1, CYCLEMASTER mode
> >> >> > Jul  7 00:33:18 gargoyle kernel: firewire0: 1 nodes, maxhop <= 0
> >> >> > cable IRM irm(0)  (me)
> >> >> > Jul  7 00:33:18 gargoyle kernel: firewire0: bus manager 0
> >> >> > Jul  7 00:33:18 gargoyle kernel: fwohci0: unrecoverable error
> >> >> > Jul  7 00:33:18 gargoyle kernel: wakeup from sleeping state (slept
> >> >> > 00:01:03) Jul  7 00:33:18 gargoyle kernel: ugen3.2: <vendor 0x1bcf>
> >> >> > at usbus3 Jul  7 00:33:18 gargoyle kernel: ums0: <vendor 0x1bcf USB
> >> >> > Optical Mouse, class 0/0, rev 2.00/0.10, addr 2> on usbus3
> >> >> > Jul  7 00:33:18 gargoyle kernel: ums0: 3 buttons and [XYZ]
> >> >> > coordinates ID=1 Jul  7 00:33:18 gargoyle acpi: resumed at 20090707
> >> >> > 00:33:18 Jul  7 00:33:40 gargoyle syslogd: exiting on signal 15
> >> >> >
> >> >> > any hints on how to further debug or redirect this mail to the
> >> >> > right list will be greatly appreciated.
> >> >> >
> >> >> > more info can be found in here:
> >> >> > http://forums.freebsd.org/showthread.php?t=3886
> >> >> >
> >> >> > Best Regards
> >> >> > Gonzalo Nemmi
> >> >>
> >> >> i386 resume doesn't work with SMP kernel and SMP CPU.
> >> >> On amd64 make sure that you have right file loaded in kernel:
> >> >> for example i915.ko for intel cards.
> >> >
> >> > I shoul've mentioned I'm on a:
> >> > CPU: Intel(R) Celeron(R) CPU          560  _at_ 2.13GHz (2128.02-MHz
> >> > 686-class CPU)
> >> >
> >> > and that I've added: hint.smp.disabled=1 to my /boot/device.hints
> >> >
> >> > This is what I get:
> >> >
> >> > Jul  7 21:35:03 gargoyle login: ROOT LOGIN (root) ON ttyv0
> >> > Jul  7 21:40:19 gargoyle acpi: suspend at 20090707 21:40:19
> >> > Jul  7 21:40:25 gargoyle kernel: fwohci0: fwohci_pci_suspend
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY write timed out (phy 1, reg
> >> > 0, val 32768)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY read timed out (phy 1, reg
> >> > 0,
> >> > val 0xffffffff)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY read timed out (phy 1, reg
> >> > 24, val 0xffffffff)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY read timed out (phy 1, reg
> >> > 16, val 0xffffffff)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY write timed out (phy 1, reg
> >> > 16, val 0)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY read timed out (phy 1, reg
> >> > 16, val 0xffffffff)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY write timed out (phy 1, reg
> >> > 16, val 0)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: PHY write timed out (phy 1, reg
> >> > 23, val 18)
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: flow-through queue init failed
> >> > Jul  7 21:41:44 gargoyle kernel: bge0: initialization failure
> >> > Jul  7 21:41:44 gargoyle kernel: fwohci0: Phy 1394a available S400, 1
> >> > ports.
> >> > Jul  7 21:41:44 gargoyle kernel: fwohci0: Link S400, max_rec 2048
> >> > bytes.
> >> > Jul  7 21:41:44 gargoyle kernel: fwohci0: Initiate bus reset
> >> > Jul  7 21:41:44 gargoyle kernel: fwohci0: fwohci_intr_core: BUS reset
> >> > Jul  7 21:41:44 gargoyle kernel: fwohci0: fwohci_intr_core:
> >> > node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode
> >> > Jul  7 21:41:44 gargoyle kernel: firewire0: 1 nodes, maxhop <= 0 cable
> >> > IRM irm(0)  (me)
> >> > Jul  7 21:41:44 gargoyle kernel: firewire0: bus manager 0
> >> > Jul  7 21:41:44 gargoyle kernel: fwohci0: unrecoverable error
> >> > Jul  7 21:41:44 gargoyle kernel: wakeup from sleeping state (slept
> >> > 00:01:19)
> >> > Jul  7 21:41:44 gargoyle acpi: resumed at 20090707 21:41:44
> >> > Jul  7 21:42:45 gargoyle syslogd: exiting on signal 15
> >> >
> >> > Should I file a PR?
> >> >
> >> > Once again, boot -v in here: http://pastebin.com/f604c1399
> >> >
> >> > More info on my hardware and other messages:
> >> > http://forums.freebsd.org/showthread.php?t=3886
> >> >
> >> > Best Regards
> >> > Gonzalo
> >> > --
> >> > Blessings
> >> > Gonzalo Nemmi
> >> >
> >>
> >> Sorry, but I dont see what graphic card you are using.
> >> Anyway, on i386 you must load vesa.ko if ypu want that resume also
> >> resumes
> >> video
> >>
> >> --
> >> Paul
> >
> >
> > 322 vgapci0: <VGA-compatible display> port 0xeff8-0xefff mem
> > 0xf6e00000-0xf6efffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
> > 323 agp0: <Intel GM965 SVGA controller> on vgapci0
> > 324 vgapci0: Reserved 0x10000000 bytes for rid 0x18 type 3 at 0xe0000000
> > 325 vgapci0: Reserved 0x100000 bytes for rid 0x10 type 3 at 0xf6e00000
> > 326 agp0: detected 7676k stolen memory
> > 327 agp0: aperture size is 256M
> > 328 vgapci1: <VGA-compatible display> mem 0xf6f00000-0xf6ffffff at device
> > 2.1 on pci0
> >
> > im not running X or anything .. so I guess im using whatever module 8
> uses
> > by default (actually I thought it was the vesa module), this is just a
> > plain
>
> No, you need to load i915.ko or vesa.ko to make video resuming working.
>
> > 8.0-BETA1 install (not even a single port installed).
> > will try loading vesa, see what happens and report back.
> >
> > Thanks for your interest and help
> > Best Regards
> > Gonzalo
> >
>
>
> --
> Paul
>

Thanks Paul, it kinda worked.
I loaded vesa.ko then "acpiconf -s 3", the system _resumed_ but not after
the time outs and upon resuming the screen backlight was really dim.
Wil try with i915.ko and see what happens.
Any ways, heres are the messages I got:

Jul  8 01:01:16 gargoyle login: ROOT LOGIN (root) ON ttyv0
Jul  8 01:01:39 gargoyle acpi: suspend at 20090708 01:01:39
Jul  8 01:01:45 gargoyle kernel: fwohci0: fwohci_pci_suspend
Jul  8 01:02:27 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 0,
val 32768)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 0, val
0xffffffff)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 24,
val 0xffffffff)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 16,
val 0xffffffff)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 16,
val 0)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 16,
val 0xffffffff)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 16,
val 0)
Jul  8 01:02:27 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 23,
val 18)
Jul  8 01:02:27 gargoyle kernel: bge0: flow-through queue init failed
Jul  8 01:02:27 gargoyle kernel: bge0: initialization failure
Jul  8 01:02:27 gargoyle kernel: fwohci0: Phy 1394a available S400, 1 ports.
Jul  8 01:02:27 gargoyle kernel: fwohci0: Link S400, max_rec 2048 bytes.
Jul  8 01:02:27 gargoyle kernel: fwohci0: Initiate bus reset
Jul  8 01:02:27 gargoyle kernel: fwohci0: fwohci_intr_core: BUS reset
Jul  8 01:02:27 gargoyle kernel: fwohci0: fwohci_intr_core:
node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode
Jul  8 01:02:27 gargoyle kernel: firewire0: 1 nodes, maxhop <= 0 cable IRM
irm(0)  (me)
Jul  8 01:02:27 gargoyle kernel: firewire0: bus manager 0
Jul  8 01:02:27 gargoyle kernel: fwohci0: unrecoverable error
Jul  8 01:02:27 gargoyle kernel: wakeup from sleeping state (slept 00:00:43)
Jul  8 01:02:27 gargoyle acpi: resumed at 20090708 01:02:27

after that, I got my screen back, then I did a sysctl
hw.acpi.lid_close_state=S3 and suspended again .. closed the lid, suspended,
opened the lid and got the system back, dim light again .. messages:

Jul  8 01:06:24 gargoyle acpi: suspend at 20090708 01:06:24
Jul  8 01:06:37 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 0,
val 32768)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 0, val
0xffffffff)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 24,
val 0xffffffff)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 16,
val 0xffffffff)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 16,
val 0)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 16,
val 0xffffffff)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 16,
val 0)
Jul  8 01:06:37 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 23,
val 18)
Jul  8 01:06:39 gargoyle kernel: fwohci0: fwohci_pci_suspend
Jul  8 01:09:29 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 0,
val 32768)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 0, val
0xffffffff)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 24,
val 0xffffffff)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 16,
val 0xffffffff)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 16,
val 0)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY read timed out (phy 1, reg 16,
val 0xffffffff)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 16,
val 0)
Jul  8 01:09:29 gargoyle kernel: bge0: PHY write timed out (phy 1, reg 23,
val 18)
Jul  8 01:09:29 gargoyle kernel: bge0: flow-through queue init failed
Jul  8 01:09:29 gargoyle kernel: bge0: initialization failure
Jul  8 01:09:29 gargoyle kernel: fwohci0: Phy 1394a available S400, 1 ports.
Jul  8 01:09:29 gargoyle kernel: fwohci0: Link S400, max_rec 2048 bytes.
Jul  8 01:09:29 gargoyle kernel: fwohci0: Initiate bus reset
Jul  8 01:09:29 gargoyle kernel: fwohci0: fwohci_intr_core: BUS reset
Jul  8 01:09:29 gargoyle kernel: fwohci0: fwohci_intr_core:
node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode
Jul  8 01:09:29 gargoyle kernel: firewire0: 1 nodes, maxhop <= 0 cable IRM
irm(0)  (me)
Jul  8 01:09:29 gargoyle kernel: firewire0: bus manager 0
Jul  8 01:09:29 gargoyle kernel: fwohci0: unrecoverable error
Jul  8 01:09:29 gargoyle kernel: wakeup from sleeping state (slept 00:02:51)
Jul  8 01:09:29 gargoyle acpi: resumed at 20090708 01:09:29

Notice how upon the second "resume" I get  PHY timeouts at 01:06:37, before
the machine enters the suspend state, which actually takes place at
01:06:39 :s

Anyways, it did resume again 01:09:29 :)

Will give take a shot at i915.ko and see how it goes.
Thanks for your help Paul :)

Best Regards
Gonzalo
Received on Wed Jul 08 2009 - 02:29:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC