[ofa-general] [PATCH] mlx4_core - delay after reset

Eli Cohen eli at mellanox.co.il
Mon Aug 13 07:57:03 PDT 2007


Put a 1000 msec delay after resetting the device before attempting to do
config cycles on it. Not doing this causes system hangs on some
chipsets, e.g. Intel Corporation E7520, when the driver is loaded.

Signed-off-by: Eli Cohen <eli at mellanox.co.il>

---

ofa_1_3_dev_kernel.orig/drivers/net/mlx4/reset.c	2007-08-13 16:25:31.000000000 +0300
+++ ofa_1_3_dev_kernel/drivers/net/mlx4/reset.c	2007-08-13 17:54:24.000000000 +0300
@@ -119,6 +119,7 @@
 	writel(MLX4_RESET_VALUE, reset + MLX4_RESET_OFFSET);
 	iounmap(reset);
 
+	msleep(1000);
 	end = jiffies + MLX4_RESET_TIMEOUT_JIFFIES;
 	do {
 		if (!pci_read_config_word(dev->pdev, PCI_VENDOR_ID, &vendor) &&




More information about the general mailing list