linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* megaraid_sas: add an i/o barrier
@ 2016-01-29 17:35 Tomas Henzl
  2016-02-01  4:45 ` Kashyap Desai
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Henzl @ 2016-01-29 17:35 UTC (permalink / raw)
  To: 'linux-scsi@vger.kernel.org'
  Cc: Sumit.Saxena@avagotech.com, Desai, Kashyap, Uday Lingala

A barrier should be added to ensure proper
ordering of memory mapped writes.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index d9d0029fb1..98a848bdfd 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -204,6 +204,7 @@ megasas_fire_cmd_fusion(struct megasas_instance *instance,
 		&instance->reg_set->inbound_low_queue_port);
 	writel(le32_to_cpu(req_desc->u.high),
 		&instance->reg_set->inbound_high_queue_port);
+	mmiowb();
 	spin_unlock_irqrestore(&instance->hba_lock, flags);
 #endif
 }
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-01 13:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-29 17:35 megaraid_sas: add an i/o barrier Tomas Henzl
2016-02-01  4:45 ` Kashyap Desai
2016-02-01 12:53   ` Tomas Henzl
2016-02-01 13:24     ` Kashyap Desai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).