isci: Disable link layer hang detection
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Mon, 20 Jun 2011 21:09:31 +0000 (14:09 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:50 +0000 (04:04 -0700)
Some targets exceed the hang detect timer.  Use the OS timeout to
catch hung tasks.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/phy.c

index 784c9a71333a3aa905bb1e5e68eaeaf0c072b4a1..93a401dfbd30e0e064e59475e2e52951f2397ef8 100644 (file)
@@ -242,11 +242,8 @@ scic_sds_phy_link_layer_initialization(struct scic_sds_phy *sci_phy,
                        &sci_phy->link_layer_registers->maximum_arbitration_wait_timer_timeout);
        }
 
-       /*
-        * Set the link layer hang detection to 500ms (0x1F4) from its default
-        * value of 128ms.  Max value is 511 ms.
-        */
-       writel(0x1F4, &sci_phy->link_layer_registers->link_layer_hang_detection_timeout);
+       /* Disable link layer hang detection, rely on the OS timeout for I/O timeouts. */
+       writel(0, &sci_phy->link_layer_registers->link_layer_hang_detection_timeout);
 
        /* We can exit the initial state to the stopped state */
        sci_change_state(&sci_phy->sm, SCI_PHY_STOPPED);