* [PATCH] scsi: pm80xx: Increase reserved tags from 8 to 128
@ 2024-11-26 22:49 Salomon Dushimirimana
2024-12-04 19:51 ` Martin K. Petersen
2024-12-10 2:35 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Salomon Dushimirimana @ 2024-11-26 22:49 UTC (permalink / raw)
To: Jack Wang, James E . J . Bottomley, Martin K . Petersen
Cc: linux-scsi, linux-kernel, Igor Pylypiv, Salomon Dushimirimana
From: Igor Pylypiv <ipylypiv@google.com>
Increase the number of reserved tags to prevent command processing
failures when the driver is under stress. 8 reserved tags are quickly
getting all used up leading to errors when command completions are
delayed.
The driver needs ~512 ccbs/tags for maximum I/O utilization:
16 (max disks) * 32 (max SATA queue depth) = ~512 ccbs/tags.
By reserving 128 tags the driver will still have plenty of tags/ccbs
left: 1024 (max ccbs) - 128 (reserved slot) = 896 tags/ccbs left.
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Salomon Dushimirimana <salomondush@google.com>
---
drivers/scsi/pm8001/pm8001_defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/pm8001/pm8001_defs.h b/drivers/scsi/pm8001/pm8001_defs.h
index 501b574239e8..abe6560a5817 100644
--- a/drivers/scsi/pm8001/pm8001_defs.h
+++ b/drivers/scsi/pm8001/pm8001_defs.h
@@ -90,7 +90,7 @@ enum port_type {
#define PM8001_MAX_PORTS 16 /* max. possible ports */
#define PM8001_MAX_DEVICES 2048 /* max supported device */
#define PM8001_MAX_MSIX_VEC 64 /* max msi-x int for spcv/ve */
-#define PM8001_RESERVE_SLOT 8
+#define PM8001_RESERVE_SLOT 128
#define CONFIG_SCSI_PM8001_MAX_DMA_SG 528
#define PM8001_MAX_DMA_SG CONFIG_SCSI_PM8001_MAX_DMA_SG
--
2.47.0.338.g60cca15819-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: pm80xx: Increase reserved tags from 8 to 128
2024-11-26 22:49 [PATCH] scsi: pm80xx: Increase reserved tags from 8 to 128 Salomon Dushimirimana
@ 2024-12-04 19:51 ` Martin K. Petersen
2024-12-10 2:35 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2024-12-04 19:51 UTC (permalink / raw)
To: Salomon Dushimirimana
Cc: Jack Wang, James E . J . Bottomley, Martin K . Petersen,
linux-scsi, linux-kernel, Igor Pylypiv
Salomon,
> Increase the number of reserved tags to prevent command processing
> failures when the driver is under stress. 8 reserved tags are quickly
> getting all used up leading to errors when command completions are
> delayed.
Applied to 6.14/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: pm80xx: Increase reserved tags from 8 to 128
2024-11-26 22:49 [PATCH] scsi: pm80xx: Increase reserved tags from 8 to 128 Salomon Dushimirimana
2024-12-04 19:51 ` Martin K. Petersen
@ 2024-12-10 2:35 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2024-12-10 2:35 UTC (permalink / raw)
To: Jack Wang, James E . J . Bottomley, Salomon Dushimirimana
Cc: Martin K . Petersen, linux-scsi, linux-kernel, Igor Pylypiv
On Tue, 26 Nov 2024 22:49:23 +0000, Salomon Dushimirimana wrote:
> Increase the number of reserved tags to prevent command processing
> failures when the driver is under stress. 8 reserved tags are quickly
> getting all used up leading to errors when command completions are
> delayed.
>
> The driver needs ~512 ccbs/tags for maximum I/O utilization:
> 16 (max disks) * 32 (max SATA queue depth) = ~512 ccbs/tags.
>
> [...]
Applied to 6.14/scsi-queue, thanks!
[1/1] scsi: pm80xx: Increase reserved tags from 8 to 128
https://git.kernel.org/mkp/scsi/c/b64004dbcd23
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-10 2:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 22:49 [PATCH] scsi: pm80xx: Increase reserved tags from 8 to 128 Salomon Dushimirimana
2024-12-04 19:51 ` Martin K. Petersen
2024-12-10 2:35 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox