Commit a3dc24b
committed
scsi: smartpqi: Use is_kdump_kernel() to check for kdump
JIRA: https://issues.redhat.com/browse/RHEL-96279
commit a2d5a00
Author: Martin Wilck <mwilck@suse.com>
Date: Fri Mar 21 23:33:19 2025 +0100
scsi: smartpqi: Use is_kdump_kernel() to check for kdump
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: 058311b ("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: Don Brace <dbrace@redhat.com>1 parent 1aaa411 commit a3dc24b
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
5246 | 5247 | | |
5247 | 5248 | | |
5248 | 5249 | | |
5249 | | - | |
| 5250 | + | |
5250 | 5251 | | |
5251 | 5252 | | |
5252 | 5253 | | |
| |||
5275 | 5276 | | |
5276 | 5277 | | |
5277 | 5278 | | |
5278 | | - | |
| 5279 | + | |
5279 | 5280 | | |
5280 | 5281 | | |
5281 | 5282 | | |
| |||
8288 | 8289 | | |
8289 | 8290 | | |
8290 | 8291 | | |
8291 | | - | |
| 8292 | + | |
8292 | 8293 | | |
8293 | 8294 | | |
8294 | 8295 | | |
8295 | 8296 | | |
8296 | | - | |
| 8297 | + | |
8297 | 8298 | | |
8298 | 8299 | | |
8299 | 8300 | | |
| |||
8344 | 8345 | | |
8345 | 8346 | | |
8346 | 8347 | | |
8347 | | - | |
| 8348 | + | |
8348 | 8349 | | |
8349 | 8350 | | |
8350 | 8351 | | |
| |||
8480 | 8481 | | |
8481 | 8482 | | |
8482 | 8483 | | |
8483 | | - | |
| 8484 | + | |
8484 | 8485 | | |
8485 | 8486 | | |
8486 | 8487 | | |
| |||
0 commit comments