kernel - Add AHCI workaround for Intel mobo / Intel SSD probing bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 17 Jun 2011 02:45:48 +0000 (19:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 17 Jun 2011 02:45:48 +0000 (19:45 -0700)
commitf2dba7003b2add226b3999a41a99fd278cc5a26f
treebfa9edeea05b288bde59a5f19265345532ac17b0
parentcffea833134777d65654694dd542f33bfd7a5b0e
kernel - Add AHCI workaround for Intel mobo / Intel SSD probing bug

* On cold boot Intel SSDs for some reason seem to fail to initialize on
  the first attempt.  The AHCI port winds up getting stuck in BSY mode.
  Adjusting timeouts fails to solve the problem.  Ignoring the BSY state
  does solve the problem but is undesireable.

* Retry the initialization sequence once if a stuck BSY is detected
  as a workaround.  This appears to properly detect the SSD on the second
  attempt.

* Add a delay after clearing the power control state before starting the
  COMINIT sequence.  This solves no known issues but is probably a good
  idea.
sys/dev/disk/ahci/ahci.c