Skip to content

Commit b6d24eb

Browse files
Vasanthy Kolluridavem330
authored andcommitted
enic: Bug Fix: Fix timeout for hardware Tx and Rx queue disable operations
The timeout for hardware Tx and Rx queue disable operations is increased to work-around an erratum for "unnamed" chipset where a DMA completion may take upto 10ms. We have to wait atleast this long for hardware to signal that Tx and Rx queues are quiesced. Signed-off-by: Scott Feldman <[email protected]> Signed-off-by: Vasanthy Kolluri <[email protected]> Signed-off-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a55a603 commit b6d24eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/net/enic/vnic_rq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ int vnic_rq_disable(struct vnic_rq *rq)
167167
iowrite32(0, &rq->ctrl->enable);
168168

169169
/* Wait for HW to ACK disable request */
170-
for (wait = 0; wait < 100; wait++) {
170+
for (wait = 0; wait < 1000; wait++) {
171171
if (!(ioread32(&rq->ctrl->running)))
172172
return 0;
173-
udelay(1);
173+
udelay(10);
174174
}
175175

176176
printk(KERN_ERR "Failed to disable RQ[%d]\n", rq->index);

drivers/net/enic/vnic_wq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ int vnic_wq_disable(struct vnic_wq *wq)
160160
iowrite32(0, &wq->ctrl->enable);
161161

162162
/* Wait for HW to ACK disable request */
163-
for (wait = 0; wait < 100; wait++) {
163+
for (wait = 0; wait < 1000; wait++) {
164164
if (!(ioread32(&wq->ctrl->running)))
165165
return 0;
166-
udelay(1);
166+
udelay(10);
167167
}
168168

169169
printk(KERN_ERR "Failed to disable WQ[%d]\n", wq->index);

0 commit comments

Comments
 (0)