Commit 0d0c1164 authored by Martin Wilck's avatar Martin Wilck Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: scsi: smartpqi: Use is_kdump_kernel() to check for kdump



[ Upstream commit a2d5a007 ]

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: 058311b7 ("scsi: smartpqi: Add fw log to kdump")
Change-Id: Iffd4d5bbac8af0a29135210b9bf498e58bd8cc70
Signed-off-by: default avatarMartin Wilck <mwilck@suse.com>
Link: https://lore.kernel.org/r/20250321223319.109250-1-mwilck@suse.com


Cc: Randy Wright <rwright@hpe.com>
Acked-by: default avatarDon Brace <don.brace@microchip.com>
Tested-by: default avatarDon Brace <don.brace@microchip.com>
Reviewed-by: default avatarLee Duncan <lduncan@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 7cc670e8)
Bug: 437846539
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent acec42cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment