Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: stratix10-svc: correct reconfig flag and timeout values

Correct the incorrect flag value for COMMAND_RECONFIG_FLAG_PARTIAL and
increase FPGA reconfig timeout values so that Intel service layer and
FPGA manager drivers can work with all versions of firmware.

Signed-off-by: Richard Gong <richard.gong@intel.com>
Link: https://lore.kernel.org/r/1592231348-31334-2-git-send-email-richard.gong@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Richard Gong and committed by
Greg Kroah-Hartman
36847f9e 18248659

+4 -5
+4 -5
include/linux/firmware/intel/stratix10-svc-client.h
··· 54 54 * Flag bit for COMMAND_RECONFIG 55 55 * 56 56 * COMMAND_RECONFIG_FLAG_PARTIAL: 57 - * Set to FPGA configuration type (full or partial), the default 58 - * is full reconfig. 57 + * Set to FPGA configuration type (full or partial). 59 58 */ 60 - #define COMMAND_RECONFIG_FLAG_PARTIAL 0 59 + #define COMMAND_RECONFIG_FLAG_PARTIAL 1 61 60 62 61 /** 63 62 * Timeout settings for service clients: 64 63 * timeout value used in Stratix10 FPGA manager driver. 65 64 * timeout value used in RSU driver 66 65 */ 67 - #define SVC_RECONFIG_REQUEST_TIMEOUT_MS 100 68 - #define SVC_RECONFIG_BUFFER_TIMEOUT_MS 240 66 + #define SVC_RECONFIG_REQUEST_TIMEOUT_MS 300 67 + #define SVC_RECONFIG_BUFFER_TIMEOUT_MS 720 69 68 #define SVC_RSU_REQUEST_TIMEOUT_MS 300 70 69 71 70 struct stratix10_svc_chan;