]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/scsi-smartpqi-increase-fw-status-register-read-timeo.patch
autosel patches for 4.14
[thirdparty/kernel/stable-queue.git] / queue-4.14 / scsi-smartpqi-increase-fw-status-register-read-timeo.patch
1 From eb09bc615a06931ea5b2374d45cfa4be0cb13ab4 Mon Sep 17 00:00:00 2001
2 From: Mahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
3 Date: Tue, 18 Dec 2018 17:39:01 -0600
4 Subject: scsi: smartpqi: increase fw status register read timeout
5
6 [ Upstream commit 65111785acccb836ec75263b03b0e33f21e74f47 ]
7
8 Problem:
9 - during the driver initialization, driver will poll fw
10 for KERNEL_UP in a 30 seconds timeout.
11
12 - if the firmware is not ready after 30 seconds,
13 driver will not be loaded.
14
15 Fix:
16 - change timeout from 30 seconds to 3 minutes.
17
18 Reported-by: Feng Li <lifeng1519@gmail.com>
19 Reviewed-by: Ajish Koshy <ajish.koshy@microsemi.com>
20 Reviewed-by: Murthy Bhat <Murthy.Bhat@microsemi.com>
21 Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
22 Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
23 Signed-off-by: Mahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
24 Signed-off-by: Don Brace <don.brace@microsemi.com>
25 Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
26 Signed-off-by: Sasha Levin <sashal@kernel.org>
27 ---
28 drivers/scsi/smartpqi/smartpqi_sis.c | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31 diff --git a/drivers/scsi/smartpqi/smartpqi_sis.c b/drivers/scsi/smartpqi/smartpqi_sis.c
32 index 5141bd4c9f06..ca7dfb3a520f 100644
33 --- a/drivers/scsi/smartpqi/smartpqi_sis.c
34 +++ b/drivers/scsi/smartpqi/smartpqi_sis.c
35 @@ -59,7 +59,7 @@
36
37 #define SIS_CTRL_KERNEL_UP 0x80
38 #define SIS_CTRL_KERNEL_PANIC 0x100
39 -#define SIS_CTRL_READY_TIMEOUT_SECS 30
40 +#define SIS_CTRL_READY_TIMEOUT_SECS 180
41 #define SIS_CTRL_READY_RESUME_TIMEOUT_SECS 90
42 #define SIS_CTRL_READY_POLL_INTERVAL_MSECS 10
43
44 --
45 2.19.1
46