freebsd-dev/sys/dev/mpr
Kenneth D. Merry 11778fca4a Fix mpr(4) panic during a firmware update.
Issue Description:
The RequestCredits field of IOCFacts got changed between the Phase23
firmware to Phase24 firmware. So as part of firmware update operation,
driver has to free the resources & pools which are created with the Phase23
Firmware's IOCFacts data (i.e. during driver load time) and has to
reallocate the resources and pools using Phase24's IOCFacts data. Here
driver has freed the interrupts but missed to reallocate the interrupts and
hence config page read operation is getting timed out and controller is
going for recursive reinit (controller reset) operations and leading to
kernel panic.

Fix:
Reallocate the interrupts if the interrupts are disabled as part of
firmware update/downgrade operation.

Submitted by:	Sreekanth Ready <sreekanth.reddy@broadcom.com>
Tested by:	ken
MFC after:	3 days
2022-10-17 12:48:34 -04:00
..
mpi
mpr_config.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_ioctl.h
mpr_mapping.c mpr(4): Remove a double word in a source code comment 2022-09-04 13:46:44 +02:00
mpr_mapping.h
mpr_pci.c mpr/mps/mpt: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:32 -07:00
mpr_sas_lsi.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_sas.c mpr/mps: when sending reset on removal, include target in message 2022-04-28 16:30:00 -06:00
mpr_sas.h
mpr_table.c
mpr_table.h
mpr_user.c mpr: add \n in diagnostic printf 2022-03-30 20:14:07 -04:00
mpr.c Fix mpr(4) panic during a firmware update. 2022-10-17 12:48:34 -04:00
mprvar.h