linux/drivers/scsi/smartpqi
Martin Wilck 7cc670e8eb scsi: smartpqi: Use is_kdump_kernel() to check for kdump
[ Upstream commit a2d5a00722 ]

The smartpqi driver checks the reset_devices variable to determine
whether special adjustments need to be made for kdump. This has the
effect that after a regular kexec reboot, some driver parameters such as
max_transfer_size are much lower than usual. More importantly, kexec
reboot tests have revealed memory corruption caused by the driver log
being written to system memory after a kexec.

Fix this by testing is_kdump_kernel() rather than reset_devices where
appropriate.

Fixes: 058311b72f ("scsi: smartpqi: Add fw log to kdump")
Signed-off-by: Martin Wilck <mwilck@suse.com>
Link: https://lore.kernel.org/r/20250321223319.109250-1-mwilck@suse.com
Cc: Randy Wright <rwright@hpe.com>
Acked-by: Don Brace <don.brace@microchip.com>
Tested-by: Don Brace <don.brace@microchip.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-25 10:47:38 +02:00
..
Kconfig scsi: smartpqi: Update copyright to 2023 2023-05-08 07:17:12 -04:00
Makefile scsi: smartpqi: add spdx 2019-03-18 16:48:28 -04:00
smartpqi.h scsi: smartpqi: add counter for parity write stream requests 2024-08-28 22:10:34 -04:00
smartpqi_init.c scsi: smartpqi: Use is_kdump_kernel() to check for kdump 2025-04-25 10:47:38 +02:00
smartpqi_sas_transport.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
smartpqi_sis.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
smartpqi_sis.h scsi: smartpqi: Add fw log to kdump 2024-08-28 22:10:34 -04:00