* [S390] Fix FCP dump feature detection.
@ 2007-01-26 16:49 Martin Schwidefsky
0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2007-01-26 16:49 UTC (permalink / raw)
To: linux-kernel, linux-s390; +Cc: heiko.carstens
From: Heiko Carstens <heiko.carstens@de.ibm.com>
[S390] Fix FCP dump feature detection.
FCP dump feature detection works only if the sclp command in head.S
was succesful. Since the sclp command is skipped if diag260 works,
we don't have any dump feature detection anymore.
Bug was introduced with d57de5a36791cb1b7285649c62f183b0d3505f7d.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
arch/s390/kernel/head64.S | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
diff -urpN linux-2.6/arch/s390/kernel/head64.S linux-2.6-patched/arch/s390/kernel/head64.S
--- linux-2.6/arch/s390/kernel/head64.S 2007-01-26 17:27:27.000000000 +0100
+++ linux-2.6-patched/arch/s390/kernel/head64.S 2007-01-26 17:27:55.000000000 +0100
@@ -81,7 +81,6 @@ startup_continue:
aghi %r1,1 # size is one more than end
larl %r2,memory_chunk
stg %r1,8(%r2) # store size of chunk
- j .Ldonemem
.Lslowmemdetect:
l %r2,.Lrcp-.LPG1(%r13) # Read SCP forced command word
@@ -156,6 +155,11 @@ startup_continue:
#
# find memory chunks.
#
+ larl %r9,memory_chunk # skip tprot loop if diag260
+ lg %r9,8(%r9) # memory detection was successful
+ ltgr %r9,%r9
+ jne .Ldonemem
+
lgr %r9,%r3 # end of mem
larl %r1,.Lchkmem # set program check address
stg %r1,__LC_PGM_NEW_PSW+8
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-26 16:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-26 16:49 [S390] Fix FCP dump feature detection Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox