* [patch 2/4] s390: check for interrupt before waiting.
@ 2005-07-29 17:11 Martin Schwidefsky
0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2005-07-29 17:11 UTC (permalink / raw)
To: akpm, linux-kernel
From: Heiko Carstens <heiko.carstens@de.ibm.com>
The patch that introduced waiting for interrupts after resetting
the reader can cause the boot to fail because the system is waiting
for an interrupt that will never arrive. Add code to check if an
interrupt is supposed to arrive before waiting endlessly.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
diffstat:
arch/s390/kernel/head.S | 7 +++++++
arch/s390/kernel/head64.S | 7 +++++++
2 files changed, 14 insertions(+)
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 2005-07-29 18:43:05.000000000 +0200
+++ linux-2.6-patched/arch/s390/kernel/head64.S 2005-07-29 18:43:38.000000000 +0200
@@ -345,6 +345,13 @@ iplstart:
la %r2,.Lreset
lhi %r3,26
diag %r2,%r3,8
+ la %r5,.Lirb
+ stsch 0(%r5) # check if irq is pending
+ tm 30(%r5),0x0f # by verifying if any of the
+ bnz .Lwaitforirq # activity or status control
+ tm 31(%r5),0xff # bits is set in the schib
+ bz .Lnoreset
+.Lwaitforirq:
mvc 0x78(8),.Lrdrnewpsw # set up IO interrupt psw
.Lwaitrdrirq:
lpsw .Lrdrwaitpsw
diff -urpN linux-2.6/arch/s390/kernel/head.S linux-2.6-patched/arch/s390/kernel/head.S
--- linux-2.6/arch/s390/kernel/head.S 2005-07-29 18:43:05.000000000 +0200
+++ linux-2.6-patched/arch/s390/kernel/head.S 2005-07-29 18:43:38.000000000 +0200
@@ -346,6 +346,13 @@ iplstart:
la %r2,.Lreset
lhi %r3,26
diag %r2,%r3,8
+ la %r5,.Lirb
+ stsch 0(%r5) # check if irq is pending
+ tm 30(%r5),0x0f # by verifying if any of the
+ bnz .Lwaitforirq # activity or status control
+ tm 31(%r5),0xff # bits is set in the schib
+ bz .Lnoreset
+.Lwaitforirq:
mvc 0x78(8),.Lrdrnewpsw # set up IO interrupt psw
.Lwaitrdrirq:
lpsw .Lrdrwaitpsw
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-29 17:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 17:11 [patch 2/4] s390: check for interrupt before waiting Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®