OSDN Git Service

GenWQE: Fix problem when reading HSI and Retc
authorEberhard S. Amann <esa@linux.vnet.ibm.com>
Wed, 10 Sep 2014 14:37:52 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:15:47 +0000 (23:15 -0700)
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>
drivers/misc/genwqe/card_ddcb.c

index f105750..51480e4 100644 (file)
@@ -390,8 +390,9 @@ static int genwqe_check_ddcb_queue(struct genwqe_dev *cd,
                    0x00000000)
                        goto go_home; /* not completed, continue waiting */
 
-               /* Note: DDCB could be purged */
+               wmb();  /*  Add sync to decouple prev. read operations */
 
+               /* Note: DDCB could be purged */
                req = queue->ddcb_req[queue->ddcb_act];
                if (req == NULL) {
                        /* this occurs if DDCB is purged, not an error */