aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorJan Glauber <jang@linux.vnet.ibm.com>2011-10-30 10:17:07 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-10-30 10:16:45 -0400
commit2768b2ded129ee92a8f8bf9049983c6b37ed44bf (patch)
treeb9a6d2c0cc0fd394314562666de92b71529c493a /drivers/s390
parent25f269f17316549e026c5dd0db7526411a504de6 (diff)
[S390] qdio: reset outbound SBAL error states
Don't leave outbound SBALs in error state after a target full condition. Reset the state to not initialized to make the error handling consistent across all types of errors. Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/qdio_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index 7c567b2268a..5ec5317f790 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -450,7 +450,7 @@ static void process_buffer_error(struct qdio_q *q, int count)
450 qperf_inc(q, target_full); 450 qperf_inc(q, target_full);
451 DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "OUTFULL FTC:%02x", 451 DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "OUTFULL FTC:%02x",
452 q->first_to_check); 452 q->first_to_check);
453 return; 453 goto set;
454 } 454 }
455 455
456 DBF_ERROR("%4x BUF ERROR", SCH_NO(q)); 456 DBF_ERROR("%4x BUF ERROR", SCH_NO(q));
@@ -460,6 +460,7 @@ static void process_buffer_error(struct qdio_q *q, int count)
460 q->sbal[q->first_to_check]->element[14].sflags, 460 q->sbal[q->first_to_check]->element[14].sflags,
461 q->sbal[q->first_to_check]->element[15].sflags); 461 q->sbal[q->first_to_check]->element[15].sflags);
462 462
463set:
463 /* 464 /*
464 * Interrupts may be avoided as long as the error is present 465 * Interrupts may be avoided as long as the error is present
465 * so change the buffer state immediately to avoid starvation. 466 * so change the buffer state immediately to avoid starvation.