freebsd-nq/sys/dev/mps
Kenneth D. Merry 417aa6b850 Fix spurious timeouts on commands sent to mps(4) and mpr(4) controllers.
mps_wait_command() and mpr_wait_command() were using getmicrotime() to
determine elapsed time when checking for a timeout in polled mode.
getmicrotime() isn't guaranteed to monotonically increase, and that
caused spurious timeouts occasionally.

Switch to using getmicrouptime(), which does increase monotonically.
This fixes the spurious timeouts in my test case.

Reviewed by:	slm, scottl
MFC after:	3 days
Sponsored by:	Spectra Logic
2017-07-19 15:39:01 +00:00
..
mpi
mps_config.c
mps_ioctl.h
mps_mapping.c
mps_mapping.h
mps_pci.c
mps_sas_lsi.c
mps_sas.c
mps_sas.h
mps_table.c
mps_table.h
mps_user.c
mps.c Fix spurious timeouts on commands sent to mps(4) and mpr(4) controllers. 2017-07-19 15:39:01 +00:00
mpsvar.h