]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add test for SATA registers writability and skip using them if it failed.
authormav <mav@FreeBSD.org>
Tue, 25 Jun 2013 09:15:49 +0000 (09:15 +0000)
committermav <mav@FreeBSD.org>
Tue, 25 Jun 2013 09:15:49 +0000 (09:15 +0000)
commit31c4611906c55be194f60bda629482a5257950d8
tree8458ff41f01f7b51ec0f627672e20bb117e64585
parentcf77f1cdfb8d0de597efcb4e96147b99d921d1fc
Add test for SATA registers writability and skip using them if it failed.

There are some systems reported, where PCI BAR(5), used for SATA registers
access, is present, but not functional.  Attempt to use it brakes devices
detection logic.  Try to detect those cases on attach by setting and testing
some bits in SControl register.  If bits are unsettable, fallback to legacy
ATA without hot-plug detection, speed control/reporting, etc.

MFC after: 2 weeks
sys/dev/ata/chipsets/ata-intel.c