Skip to contentSkip to conversation

hw/scsi/lsi53c895a: bump instruction limit in scripts processing to fix regression

PATCH Applied Fiona Ebner 3 participants 3 messages Jul 15, 2024 – Jul 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/scsi/lsi53c895a: bump instruction limit in scripts processing to fix regression

Commit 9876359990 ("hw/scsi/lsi53c895a: add timer to scripts processing") reduced the maximum allowed instruction count by a factor of 100 all the way down to 100.

This causes the "Check Point R81.20 Gaia" appliance [0] to fail to boot after fully finishing the installation via the appliance's web interface (there is already one reboot before that).

With a limit of 150, the appliance still fails to boot, while with a limit of 200, it works. Bump to 500 to fix the regression and be on the safe side.

Originally reported in the Proxmox community forum[1].

[0]: https://support.checkpoint.com/results/download/124397
[1]: https://forum.proxmox.com/threads/149772/post-683459

Fixes 9876359990 ("hw/scsi/lsi53c895a: add timer to scripts processing")
---
 hw/scsi/lsi53c895a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/scsi/lsi53c895a.c +1 -1
index eb9828dd5e..f1935e5328 100644
@@ -188,7 +188,7 @@ static const char *names[] = {
 #define LSI_TAG_VALID     (1 << 16)
 
 /* Maximum instructions to process. */
-#define LSI_MAX_INSN    100
+#define LSI_MAX_INSN    500
 
 typedef struct lsi_request {
     SCSIRequest *req;
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 29 lines · Fiona Ebner

Commit 9876359990 ("hw/scsi/lsi53c895a: add timer to scripts processing") reduced the maximum allowed instruction count by a factor of 100 all the way down to 100.

This causes the "Check Point R81.20 Gaia" appliance [0] to fail to boot after fully finishing the installation via the appliance's web interface (there is already one reboot before that).

With a limit of 150, the appliance still fails to boot, while with a limit of 200, it works. Bump to 500 to fix the regression and be on the safe side.

Originally reported in the Proxmox community forum[1].

[0]: https://support.checkpoint.com/results/download/124397
[1]: https://forum.proxmox.com/threads/149772/post-683459

Fixes 9876359990 ("hw/scsi/lsi53c895a: add timer to scripts processing")
---
 hw/scsi/lsi53c895a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/scsi/lsi53c895a.c +0 -0
index eb9828dd5e..f1935e5328 100644

hw/scsi/lsi53c895a.c static const char *names[] = { · line 194

Quoted 8 lines
hw/scsi/lsi53c895a.c +1 -1
@@ -188,7 +188,7 @@ static const char *names[] = {
 #define LSI_TAG_VALID     (1 << 16)
 
 /* Maximum instructions to process. */
-#define LSI_MAX_INSN    100
+#define LSI_MAX_INSN    500
 
 typedef struct lsi_request {
     SCSIRequest *req;

Fine with me - i just picked a random number assuming it works. Obviously i was wrong :-)