freebsd-src/sys/dev/mpr
prateek sethi c0e0e530ce mps/mpr: Add workaround for firmware not responding to IOC_FACTS or IOC_INIT
Sometimes, especially with older firmware, mps(4) would have trouble
initializing the card in one of these two steps. Add in a retry after a
short delay. Sean Bruno and Stephen McConnell thought this was OK in the
bug discussions, but never committed it.  Steve indicated the delay
might not be necessary, but the OP clearly needed to make it longer to
make things work. I've kept the delay, and added the suggested comment.

Ported the iocfacts part to mpr as well, since we see similar errors
about once every month or two over a few thousand controllers at
work. We've not seen it with IOC_INIT as far back as I can query the
error log database, so I didn't port that forward. We'll see if this
helps, but won't know for sure until next year (so I'm committing it now
since it won't hurt and might help). We usually see this failure in
connection with complicated recovery operations with a drive that's
failing, though, at least in the last year's worth of failures. It's
not clear this is the same as OP or not.

PR: 212841
Sponsored by: Netflix
Co-authored-by: imp
2024-10-13 15:38:01 -06:00
..
mpi
mpr_config.c mpr: endianess fix for set/get dpm page0 2024-01-31 17:33:05 -09:00
mpr_ioctl.h
mpr_mapping.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpr_mapping.h
mpr_pci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpr_sas_lsi.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpr_sas.c Use xpt_path_sbuf() in few drivers 2023-11-23 11:29:19 -05:00
mpr_sas.h
mpr_table.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpr_table.h
mpr_user.c mpr: Handle errors from copyout() in ioctl handlers 2023-12-25 21:04:01 -05:00
mpr.c mps/mpr: Add workaround for firmware not responding to IOC_FACTS or IOC_INIT 2024-10-13 15:38:01 -06:00
mprvar.h