On Tue, 14 Apr 2009 23:52:18 +0200
Ivan Warren <[email protected]> wrote:
> Daniel Jarboe wrote:
> > On Tue, Apr 14, 2009 at 3:34 PM, Neale Ferguson wrote:
> >
> >
> > SLES11 was checking the CPU Model, not liking 9672, and aborting. I changed
> > CPUMODEL to something more current (2096) and the SLES11 installer IPLed
> > without incident.
> >
> >
> It's not actually a SLES 11 thing.. The test exists in the upstream kernel.
>
> Go fetch me the cane so I can flog the guy who put that weird test in
> arch/s390/kernel/head.S !
Martin! ;)
> I mean.. come on.. ok.. Specifying 9672 breaks but specifying 2096
> works... but guess what.. having a 4341 CPU model also works ;) (not
> that it would go very far anyway on a *REAL* 4341 !)
>
> At least, there should be a significantly unique magic in the disabled
> wait PSW IA to allow someone to easily find it by googling ! Someone
> attempting to boot a modern kernel on an old machine (like a z9 only
> kernel on a z990) may be happy to find a quick answer ! Like 00A0000
> 8EADBADC (read : head.S Bad CPU)
>
> (I might actually want to submit a patch on that one to the IBM linux
> folks in Germany !)
How about the patch below?
Since I would expect that this is going to happen a lot of times as
soon as some distro starts to compile the kernel with e.g. only z9-109
and higher support we indeed need a magic number here.
Otherwise we can't tell immediately what's going wrong.
---
arch/s390/kernel/head.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.5/arch/s390/kernel/head.S
===================================================================
--- linux-2.5.orig/arch/s390/kernel/head.S
+++ linux-2.5/arch/s390/kernel/head.S
@@ -486,7 +486,7 @@ startup:basr %r13,0 # get base
jne 3f
lpsw 1f-.LPG0(13) # machine type not good enough, crash
.align 16
-1: .long 0x000a0000,0x00000000
+1: .long 0x000a0000,0x8badcccc
2:
#if defined(CONFIG_MARCH_Z10)
.short 0x9672, 0x2064, 0x2066, 0x2084, 0x2086, 0x2094, 0x2096
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390