* [PATCH] fpga: altera-cvp: Increase credit timeout
@ 2025-02-12 22:12 tien.sung.ang
2025-03-01 9:45 ` Xu Yilun
0 siblings, 1 reply; 2+ messages in thread
From: tien.sung.ang @ 2025-02-12 22:12 UTC (permalink / raw)
To: Moritz Fischer, Wu Hao, Xu Yilun, Tom Rix, linux-fpga,
linux-kernel, kuhanh.murugasen.krishnan,
kuhanh.murugasen.krishnan
Cc: Ang Tien Sung
From: Kuhanh Murugasen Krishnan <kuhanh.murugasen.krishnan@intel.com>
Increase the timeout for SDM (Secure device manager) data credits from
20ms to 40ms. Internal stress tests running at 500 loops failed with the
current timeout of 20ms. At the start of a FPGA configuration, the CVP
host driver reads the transmit credits from SDM. It then sends bitstream
FPGA data to SDM based on the total credits. Each credit allows the
CVP host driver to send 4kBytes of data. There are situations whereby,
the SDM did not respond in time during testing.
Signed-off-by: Ang Tien Sung <tien.sung.ang@intel.com>
Signed-off-by: Kuhanh Murugasen Krishnan <kuhanh.murugasen.krishnan@intel.com>
---
drivers/fpga/altera-cvp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c
index 6b0914432445..5af0bd33890c 100644
--- a/drivers/fpga/altera-cvp.c
+++ b/drivers/fpga/altera-cvp.c
@@ -52,7 +52,7 @@
/* V2 Defines */
#define VSE_CVP_TX_CREDITS 0x49 /* 8bit */
-#define V2_CREDIT_TIMEOUT_US 20000
+#define V2_CREDIT_TIMEOUT_US 40000
#define V2_CHECK_CREDIT_US 10
#define V2_POLL_TIMEOUT_US 1000000
#define V2_USER_TIMEOUT_US 500000
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fpga: altera-cvp: Increase credit timeout
2025-02-12 22:12 [PATCH] fpga: altera-cvp: Increase credit timeout tien.sung.ang
@ 2025-03-01 9:45 ` Xu Yilun
0 siblings, 0 replies; 2+ messages in thread
From: Xu Yilun @ 2025-03-01 9:45 UTC (permalink / raw)
To: tien.sung.ang
Cc: Moritz Fischer, Wu Hao, Xu Yilun, Tom Rix, linux-fpga,
linux-kernel, kuhanh.murugasen.krishnan,
kuhanh.murugasen.krishnan
On Thu, Feb 13, 2025 at 06:12:49AM +0800, tien.sung.ang@intel.com wrote:
> From: Kuhanh Murugasen Krishnan <kuhanh.murugasen.krishnan@intel.com>
>
> Increase the timeout for SDM (Secure device manager) data credits from
> 20ms to 40ms. Internal stress tests running at 500 loops failed with the
> current timeout of 20ms. At the start of a FPGA configuration, the CVP
> host driver reads the transmit credits from SDM. It then sends bitstream
> FPGA data to SDM based on the total credits. Each credit allows the
> CVP host driver to send 4kBytes of data. There are situations whereby,
> the SDM did not respond in time during testing.
>
> Signed-off-by: Ang Tien Sung <tien.sung.ang@intel.com>
> Signed-off-by: Kuhanh Murugasen Krishnan <kuhanh.murugasen.krishnan@intel.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Applied to for-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-01 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 22:12 [PATCH] fpga: altera-cvp: Increase credit timeout tien.sung.ang
2025-03-01 9:45 ` Xu Yilun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).