]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Add missing memory barrier
authorJames Smart <james.smart@broadcom.com>
Mon, 19 Dec 2016 23:07:30 +0000 (15:07 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 06:13:20 +0000 (22:13 -0800)
commitb80ccf02c4a63a4b5db48b49abaccd2f58567561
treeea4c605e7dbafb8d78306bdad4585d2b5df912ec
parent58586f003013c6e98ede297840514efb2d6f72fa
scsi: lpfc: Add missing memory barrier

Orabug: 25486030

On loosely ordered memory systems (PPC for example), the WQE elements
were being updated in memory, but not necessarily flushed before the
separate doorbell was written to hw which would cause hw to dma the
WQE element. Thus, the hardware occasionally received partially
updated WQE data.

Add the memory barrier after updating the WQE memory.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 6b3b3bdb83b4ad51252d21bb13596db879e51850)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c