linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Need testers: G3 @ G4 laptops (powerbooks & ibooks)
@ 2004-02-18  3:21 Benjamin Herrenschmidt
  2004-02-18 15:45 ` Kiko Piris
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Benjamin Herrenschmidt @ 2004-02-18  3:21 UTC (permalink / raw)
  To: debian-powerpc@lists.debian.org, linuxppc-dev list


Hi need people who own those machiens, especially the recent iBook2 models
with a G3 CPU and titanium powerbooks with a G4, to test this patch and
tell me if sleep mode still works reliably or becomes unstable.

(It won't help machines that cannot already sleep).

Applies on top of current 2.6 but may apply to 2.4 as well..

Thanks !

Ben.

===== arch/ppc/kernel/l2cr.S 1.15 vs edited =====
--- 1.15/arch/ppc/kernel/l2cr.S	Tue Oct 14 17:28:01 2003
+++ edited/arch/ppc/kernel/l2cr.S	Wed Feb 18 14:14:33 2004
@@ -130,11 +130,13 @@
 	mtspr	HID0,r4			/* Disable DPM */
 	sync

+#if 0
 	/* Flush & disable L1 */
 	mr	r5,r3
 	bl	__flush_disable_L1
 	mr	r3,r5
-
+#endif
+
 	/* Get the current enable bit of the L2CR into r4 */
 	mfspr	r4,L2CR

@@ -236,8 +238,10 @@
 	sync

 4:
-	bl	__inval_enable_L1

+#if 0
+	bl	__inval_enable_L1
+#endif
 	/* Restore HID0[DPM] to whatever it was before */
 	sync
 	mtspr	1008,r8
@@ -394,11 +398,10 @@
 END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
  	sync

-	/* Load counter to 0x1000 cache lines (128k) and
+	/* Load counter to 0x4000 cache lines (512k) and
 	 * load cache with datas
 	 */
-	lis	r3,0x0002
-//	li	r3,0x1000	/* 128kB / 32B */
+	li	r3,0x4000	/* 512kB / 32B */
 	mtctr	r3
 	li	r3, 0
 1:
@@ -409,8 +412,7 @@
 	sync

 	/* Now flush those cache lines */
-	lis	r3,0x0002
-//	li	r3,0x1000	/* 128kB / 32B */
+	li	r3,0x4000	/* 512kB / 32B */
 	mtctr	r3
 	li	r3, 0
 1:


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

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Need testers: G3 @ G4 laptops (powerbooks & ibooks)
@ 2004-02-25 21:46 Mark A. Greer
  2004-02-25 23:47 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 15+ messages in thread
From: Mark A. Greer @ 2004-02-25 21:46 UTC (permalink / raw)
  To: benh; +Cc: debian-powerpc, debian-powerpc, linuxppc-dev


     >/ Are you sure that you can get away with this, passed on how the
    manuals/
     >/ (745x) describe the sequence of flush/invalidating the L2 (and,
    L3) ?/

    Do they describe disabling the L1 at all ?

[Somehow I was removed from the -dev & -embedded list.  I was wondering
why I hadn't seen anything for a while  :)]
[Also, trini prodded me to send this email and I didn't go back and read
the whole thread so this may be a little out of context]

Ben, FYI,

The latest 745x user manual is here:
 http://e-www.motorola.com/files/32bit/doc/ref_manual/MPC7450UM.pdf

Here are some relevant sections:
- 3.4.1.1 (p. 3-32) Enabling and Disabling the Data Cache
- 3.4.1.3 (p. 3-33) Enabling and Disabling the Instruction Cache
- 3.6.3.1.5 (p. 3-55) Flushing of L1, L2, and L3


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

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

end of thread, other threads:[~2004-02-25 23:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18  3:21 Need testers: G3 @ G4 laptops (powerbooks & ibooks) Benjamin Herrenschmidt
2004-02-18 15:45 ` Kiko Piris
2004-02-18 22:30   ` Benjamin Herrenschmidt
2004-02-18 16:03 ` digger vermont
2004-02-18 16:09   ` Colin Leroy
2004-02-18 16:31     ` digger vermont
2004-02-18 22:31   ` Benjamin Herrenschmidt
2004-02-18 17:45 ` Greg Watson
2004-02-18 17:58 ` digger vermont
2004-02-18 18:04 ` Michael Schmitz
2004-02-18 22:14 ` Ira Weiny
2004-02-24 17:54 ` Tom Rini
2004-02-24 22:39   ` Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2004-02-25 21:46 Mark A. Greer
2004-02-25 23:47 ` 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).