linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [10/9] Support for old IBM PReP boxes
@ 2004-07-30 17:06 Leigh Brown
  0 siblings, 0 replies; only message in thread
From: Leigh Brown @ 2004-07-30 17:06 UTC (permalink / raw)
  To: trini; +Cc: paulus, linuxppc-dev, barbieri


Will something like this do?  It won't be that helpful for IBM PRePs,
but it should be an acceptable fallback for Motorolas.  I put the test
after it's determined whether it's an IBM or Motorola PReP on the off
chance there is an IBM PReP that doesn't need any residual data to
function properly.


diff -urNX /home/leigh/.diffex linux-2.6.8-rc2-bk8.prev/arch/ppc/Kconfig linux-2.6.8-rc2-bk8/arch/ppc/Kconfig
--- linux-2.6.8-rc2-bk8.prev/arch/ppc/Kconfig	2004-07-29 20:38:27.000000000 +0100
+++ linux-2.6.8-rc2-bk8/arch/ppc/Kconfig	2004-07-30 17:55:42.000000000 +0100
@@ -853,10 +853,11 @@
 	  Some PReP systems have residual data passed to the kernel by the
 	  firmware.  This allows detection of memory size, devices present and
 	  other useful pieces of information.  Sometimes this information is
-	  not present or incorrect.
+	  not present or incorrect, in which case it could lead to the machine
+	  behaving incorrectly.  If this happens, either disable PREP_RESIDUAL
+	  or pass the 'noresidual' option to the kernel.

-	  Unless you expect to boot on a PReP system, there is no need to
-	  select Y.
+	  If you are running a PReP system, say Y here, otherwise say N.

 config PROC_PREPRESIDUAL
 	bool "Support for reading of PReP Residual Data in /proc"
Binary files linux-2.6.8-rc2-bk8.prev/arch/ppc/platforms/.prep_setup.c.swp and linux-2.6.8-rc2-bk8/arch/ppc/platforms/.prep_setup.c.swp differ
diff -urNX /home/leigh/.diffex linux-2.6.8-rc2-bk8.prev/arch/ppc/platforms/prep_setup.c linux-2.6.8-rc2-bk8/arch/ppc/platforms/prep_setup.c
--- linux-2.6.8-rc2-bk8.prev/arch/ppc/platforms/prep_setup.c	2004-07-29 20:55:49.000000000 +0100
+++ linux-2.6.8-rc2-bk8/arch/ppc/platforms/prep_setup.c	2004-07-30 17:58:51.000000000 +0100
@@ -1134,6 +1134,10 @@
 		_prep_type = _PREP_Motorola;
 	}

+	/* Switch off all residual data processing if the user requests it */
+	if (strstr(cmd_line, "noresidual") != NULL)
+			res = NULL;
+
 	/* Initialise progress early to get maximum benefit */
 	prep_set_bat();
 	ibm_statusled_init();

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-30 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-30 17:06 [10/9] Support for old IBM PReP boxes Leigh Brown

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