Skip to content

Commit 10ee1f2

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: mpt3sas: Add an I/O barrier
A barrier should be added to ensure proper ordering of memory mapped writes. Signed-off-by: Tomas Henzl <[email protected]> Acked-by: Chaitra P B <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 413c2f3 commit 10ee1f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/mpt3sas/mpt3sas_base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,6 +3344,7 @@ _base_mpi_ep_writeq(__u64 b, volatile void __iomem *addr,
33443344
spin_lock_irqsave(writeq_lock, flags);
33453345
writel((u32)(data_out), addr);
33463346
writel((u32)(data_out >> 32), (addr + 4));
3347+
mmiowb();
33473348
spin_unlock_irqrestore(writeq_lock, flags);
33483349
}
33493350

0 commit comments

Comments
 (0)