Skip to content

Commit 0f05886

Browse files
kuhanhXu Yilun
authored andcommitted
fpga: altera-cvp: Increase credit timeout
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> Link: https://lore.kernel.org/r/20250212221249.2715929-1-tien.sung.ang@intel.com Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
1 parent cc1eb04 commit 0f05886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/fpga/altera-cvp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
/* V2 Defines */
5353
#define VSE_CVP_TX_CREDITS 0x49 /* 8bit */
5454

55-
#define V2_CREDIT_TIMEOUT_US 20000
55+
#define V2_CREDIT_TIMEOUT_US 40000
5656
#define V2_CHECK_CREDIT_US 10
5757
#define V2_POLL_TIMEOUT_US 1000000
5858
#define V2_USER_TIMEOUT_US 500000

0 commit comments

Comments
 (0)