Skip to content

Commit 08e4906

Browse files
Eberhard S. Amanngregkh
authored andcommitted
GenWQE: Fix problem when reading HSI and Retc
This patch fixes a problem we found during debug on PPC64 when reading HSI status and Retc. Signed-off-by: Eberhard S. Amann <esa@linux.vnet.ibm.com> Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d9c11d4 commit 08e4906

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/misc/genwqe/card_ddcb.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,9 @@ static int genwqe_check_ddcb_queue(struct genwqe_dev *cd,
390390
0x00000000)
391391
goto go_home; /* not completed, continue waiting */
392392

393-
/* Note: DDCB could be purged */
393+
wmb(); /* Add sync to decouple prev. read operations */
394394

395+
/* Note: DDCB could be purged */
395396
req = queue->ddcb_req[queue->ddcb_act];
396397
if (req == NULL) {
397398
/* this occurs if DDCB is purged, not an error */

0 commit comments

Comments
 (0)