linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* progress on l2cr
@ 2000-07-17 22:26 Guillaume Laurès
  2000-07-18  6:54 ` Guillaume Laurès
  2000-07-18  8:03 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 9+ messages in thread
From: Guillaume Laurès @ 2000-07-17 22:26 UTC (permalink / raw)
  To: linuxppc-dev@lists.linuxppc.org

[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]

Hi all,

I've made big improvements in understantding basic kernel code ;-), but
it's still not that good...

Here are two patches against current stable tree, the first,
l2cr-display-gom.diff, fixes the ouput of "cat /proc/sys/kernel.l2cr"
according to M Lanners' patch for G3, and according to the Motorola 7400
Users' Manual.
Tested on G4, but not G3 yet. It should be clean and harmful anyway.

The second, l2cr-cmdline-gom.diff, is a try to enable "l2cr=xx" kernel
command line option.
All is fine if you don't put the option, and hangs at boot with
something like this: l2cr=0xb5100000.
Since when I tried to kill calls to __set_L2CR in ppc_setup_l2cr()
commenting the following two lines:
 _set_L2CR(0);  /* disable cache */
 _set_L2CR(val);  /* enable it */
it stills hangs at the same point, I guess the way I call
ppc_setup_l2cr() is wrong. I couldn't find documentation on this, but I
figured out reading init/main.c that doing this would be sufficient,
tell me were I'm wrong :

--- linux-pmac-stable-orig/init/main.c Mon Jul 17 21:31:00 2000
+++ linux/init/main.c Mon Jul 17 21:04:15 2000
@@ -355,6 +355,9 @@
 #ifdef CONFIG_ADBMOUSE
 extern void adb_mouse_setup(char *str, int *ints);
 #endif
+#ifdef CONFIG_PPC
+extern void ppc_setup_l2cr(char *str, int *ints);
+#endif
 #ifdef CONFIG_WDT
 extern void wdt_setup(char *str, int *ints);
 #endif
@@ -1044,6 +1047,9 @@
 #endif
 #ifdef CONFIG_ADBMOUSE
  { "adb_buttons=", adb_mouse_setup },
+#endif
+#ifdef CONFIG_PPC
+ { "l2cr=", ppc_setup_l2cr },
 #endif
 #ifdef CONFIG_LTPC
  { "ltpc=", ltpc_setup },

Thanks,

--
Guillaume

[-- Attachment #2: l2cr-display-gom.diff --]
[-- Type: image/x-xbitmap, Size: 3232 bytes --]

[-- Attachment #3: l2cr-cmdline-gom.diff --]
[-- Type: image/x-xbitmap, Size: 1329 bytes --]

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

end of thread, other threads:[~2000-08-06  9:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-17 22:26 progress on l2cr Guillaume Laurès
2000-07-18  6:54 ` Guillaume Laurès
2000-07-18  8:03 ` Benjamin Herrenschmidt
2000-07-22  1:38   ` Giuliano Pochini
2000-07-22 20:13     ` Benjamin Herrenschmidt
2000-08-01  0:18       ` Giuliano Pochini
2000-07-31 18:42         ` Benjamin Herrenschmidt
2000-08-06  3:25           ` Giuliano Pochini
2000-08-06  9:33             ` Timothy A. Seufert

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).