linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ibook2 will not wake from sleep on 2.4.20-ben7
@ 2003-03-01 20:29 Ethan Blanton
  2003-03-01 22:18 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Ethan Blanton @ 2003-03-01 20:29 UTC (permalink / raw)
  To: linuxppc-dev


I have an iBook 2 (PowerBook 4,1) and I rsync'd my kernel to
2.4.20-ben7 last night (I had previously been running 2.4.20-pre7-ben0
with no trouble).  The lid latch does not seem to put the machine to
sleep any more, and when I put it to sleep with the power button,
waking the machine up shuts it off rather than waking it.  I then have
to depress the power button for a few seconds, release it, and press
it briefly in order to power the machine back up.

The machine is not losing its time/etc, merely shutting down.

I'm running pbbuttonsd-0.5.2 in pmud replacement mode.

Ethan

--
Happiness is a belt-fed weapon.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ibook2 will not wake from sleep on 2.4.20-ben7
  2003-03-01 20:29 ibook2 will not wake from sleep on 2.4.20-ben7 Ethan Blanton
@ 2003-03-01 22:18 ` Benjamin Herrenschmidt
  2003-03-01 22:27   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2003-03-01 22:18 UTC (permalink / raw)
  To: Ethan Blanton; +Cc: linuxppc-dev


On Sat, 2003-03-01 at 21:29, Ethan Blanton wrote:
> I have an iBook 2 (PowerBook 4,1) and I rsync'd my kernel to
> 2.4.20-ben7 last night (I had previously been running 2.4.20-pre7-ben0
> with no trouble).  The lid latch does not seem to put the machine to
> sleep any more, and when I put it to sleep with the power button,
> waking the machine up shuts it off rather than waking it.  I then have
> to depress the power button for a few seconds, release it, and press
> it briefly in order to power the machine back up.
>
> The machine is not losing its time/etc, merely shutting down.
>
> I'm running pbbuttonsd-0.5.2 in pmud replacement mode.

Can you try -ben4 or -ben5 ? Patches against official 2.4.20
are on kernel.org/pub/linux/kernel/people/benh.

Let me know if it works

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ibook2 will not wake from sleep on 2.4.20-ben7
  2003-03-01 22:18 ` Benjamin Herrenschmidt
@ 2003-03-01 22:27   ` Benjamin Herrenschmidt
  2003-03-01 23:49     ` Ethan Blanton
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2003-03-01 22:27 UTC (permalink / raw)
  To: Ethan Blanton; +Cc: linuxppc-dev


On Sat, 2003-03-01 at 23:18, Benjamin Herrenschmidt wrote:
> On Sat, 2003-03-01 at 21:29, Ethan Blanton wrote:
> > I have an iBook 2 (PowerBook 4,1) and I rsync'd my kernel to
> > 2.4.20-ben7 last night (I had previously been running 2.4.20-pre7-ben0
> > with no trouble).  The lid latch does not seem to put the machine to
> > sleep any more, and when I put it to sleep with the power button,
> > waking the machine up shuts it off rather than waking it.  I then have
> > to depress the power button for a few seconds, release it, and press
> > it briefly in order to power the machine back up.
> >
> > The machine is not losing its time/etc, merely shutting down.
> >
> > I'm running pbbuttonsd-0.5.2 in pmud replacement mode.
>
> Can you try -ben4 or -ben5 ? Patches against official 2.4.20
> are on kernel.org/pub/linux/kernel/people/benh.
>
> Let me know if it works

Hrm... before that, try this patch against -ben7

--- 1.1/arch/ppc/kernel/cpu_setup_6xx.S	Thu Feb 27 09:50:24 2003
+++ edited/arch/ppc/kernel/cpu_setup_6xx.S	Sat Mar  1 23:25:37 2003
@@ -356,7 +356,7 @@
 	cror	4*cr0+eq,4*cr0+eq,4*cr3+eq
 	cror	4*cr0+eq,4*cr0+eq,4*cr4+eq
 	cror	4*cr0+eq,4*cr0+eq,4*cr1+eq
-	bne	1f
+	bne	2f
 	/* Restore 74xx specific regs */
 	lwz	r4,CS_MSSCR0(r5)
 	sync
@@ -372,7 +372,7 @@
 	/* Clear 7410 L2CR2 */
 	li	r4,0
 	mtspr	SPRN_L2CR2,r4
-1:	beq	cr1,1f
+1:	beq	cr1,2f
 	/* Restore 745x specific registers */
 	lwz	r4,CS_HID1(r5)
 	sync
@@ -394,7 +394,7 @@
 	mtspr	SPRN_LDSTDB,r4
 	isync
 	sync
-1:	bne	cr5,1f
+2:	bne	cr5,1f
 	/* Restore 750FX specific registers
 	 * that is restore PLL config & switch
 	 * to PLL 0
@@ -404,10 +404,10 @@
 	mtspr	SPRN_HID1,r5
 		/* Wait for PLL to stabilize */
 	mftbl	r5
-2:	mftbl	r6
+3:	mftbl	r6
 	sub	r6,r6,r5
 	cmpli	cr0,r6,10000
-	ble	2b
+	ble	3b
 	/* Setup final PLL */
 	mtspr	SPRN_HID1,r4
 1:


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ibook2 will not wake from sleep on 2.4.20-ben7
  2003-03-01 22:27   ` Benjamin Herrenschmidt
@ 2003-03-01 23:49     ` Ethan Blanton
  2003-03-02  9:33       ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Ethan Blanton @ 2003-03-01 23:49 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt spake unto us the following wisdom:
> > Can you try -ben4 or -ben5 ? Patches against official 2.4.20
> > are on kernel.org/pub/linux/kernel/people/benh.
>
> Hrm... before that, try this patch against -ben7

You're the man, Ben.  :-)  This patch seems to work perfectly.  I
assume you are not interested in the results from -ben4 and -ben5?  (I
can still check.)

Ethan

--
Happiness is a belt-fed weapon.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ibook2 will not wake from sleep on 2.4.20-ben7
  2003-03-01 23:49     ` Ethan Blanton
@ 2003-03-02  9:33       ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2003-03-02  9:33 UTC (permalink / raw)
  To: Ethan Blanton; +Cc: linuxppc-dev


On Sun, 2003-03-02 at 00:49, Ethan Blanton wrote:
> Benjamin Herrenschmidt spake unto us the following wisdom:
> > > Can you try -ben4 or -ben5 ? Patches against official 2.4.20
> > > are on kernel.org/pub/linux/kernel/people/benh.
> >
> > Hrm... before that, try this patch against -ben7
>
> You're the man, Ben.  :-)  This patch seems to work perfectly.  I
> assume you are not interested in the results from -ben4 and -ben5?  (I
> can still check.)

You assume correctly. I'll release -ben8 early next week with
that fix.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-02  9:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-01 20:29 ibook2 will not wake from sleep on 2.4.20-ben7 Ethan Blanton
2003-03-01 22:18 ` Benjamin Herrenschmidt
2003-03-01 22:27   ` Benjamin Herrenschmidt
2003-03-01 23:49     ` Ethan Blanton
2003-03-02  9:33       ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).