netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qla3xxx: Ensure req_q_phy_addr writes to the register
@ 2012-10-17  6:32 Joe Jin
  2012-10-17 17:45 ` Jitendra Kalsaria
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Jin @ 2012-10-17  6:32 UTC (permalink / raw)
  To: Ron Mercer, Jitendra Kalsaria, linux-driver
  Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Greg Marsden

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

Make sure req_q_phy_addr write to the register.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Ron Mercer <ron.mercer@qlogic.com>
Cc: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
---
 drivers/net/ethernet/qlogic/qla3xxx.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c
index df09b1c..78b4cba 100644
--- a/drivers/net/ethernet/qlogic/qla3xxx.c
+++ b/drivers/net/ethernet/qlogic/qla3xxx.c
@@ -2525,6 +2525,12 @@ static int ql_alloc_net_req_rsp_queues(struct ql3_adapter *qdev)
 	qdev->req_q_size =
 	    (u32) (NUM_REQ_Q_ENTRIES * sizeof(struct ob_mac_iocb_req));
 
+	/*
+	 * The barrier is required to ensure that req_q_phy_addr writes to
+	 * the memory.
+	 */
+	wmb();
+
 	qdev->req_q_virt_addr =
 	    pci_alloc_consistent(qdev->pdev,
 				 (size_t) qdev->req_q_size,
-- 
1.7.11.7


[-- Attachment #2: Attached Message Part --]
[-- Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2012-10-18 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17  6:32 [PATCH] qla3xxx: Ensure req_q_phy_addr writes to the register Joe Jin
2012-10-17 17:45 ` Jitendra Kalsaria
2012-10-18  2:18   ` Joe Jin
2012-10-18 17:10     ` Jitendra Kalsaria

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).