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: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
mpr_config.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_ioctl.h mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
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/mps: Remove write-only flag and callout 2022-01-24 13:21:09 -07:00
mpr_table.c Fix "set but not used" warnings in the mpr driver. This fixes a minor 2021-11-25 03:28:29 +00:00
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 mpr(4): Handle mprsas_alloc_tm() errors on device removal. 2021-08-20 10:03:32 -04:00