Skip to content

Commit

Permalink
isci: Disable link layer hang detection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Skirvin authored and Dan Williams committed Jul 3, 2011
1 parent fd0527a commit 9b91798
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/scsi/isci/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9b91798

Please sign in to comment.