From bfe0dace862f7150d9499b490a98dd3bf4197e2e Mon Sep 17 00:00:00 2001 From: Manjeet Singh Date: Fri, 6 Jan 2017 17:38:16 +0530 Subject: qcacld-3.0: Add INI template for SSR feature Add INI template for ssr feature for documentation. CRs-Fixed: 1108400 Change-Id: I4c14205aab5d3ab353eb39cc0c04e18a2d6fe576 --- core/hdd/inc/wlan_hdd_cfg.h | 85 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 78 insertions(+), 7 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 0c161a0f4cae..86ab1a55c9ea 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -2720,6 +2720,26 @@ typedef enum { #define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX (1) #define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT (1) +/* + * + * gEnableSSR - Enable/Disable SSR + * @Min: 0 + * @Max: 1 + * @Default: 1 + * + * This ini is used to enable/disable System Self Recovery at the times of + * System crash or fatal errors + * gEnableSSR = 0 Disabled + * gEnableSSR = 1 wlan shutdown and re-init happens + * + * Related: None + * + * Supported Feature: SSR + * + * Usage: Internal/External + * + * + */ #define CFG_ENABLE_SSR "gEnableSSR" #define CFG_ENABLE_SSR_MIN (0) #define CFG_ENABLE_SSR_MAX (1) @@ -4127,8 +4147,26 @@ typedef enum { #endif /* - * Enable/Disable SSR for USB + * + * gEnableFwSelfRecovery - Enable/disable FW self-recovery for USB + * @Min: 0 + * @Max: 1 + * @Default: 0 + * + * This ini is used to enable/disable FW self-recovery + * gEnableFwSelfRecovery = 0: Disabled + * gEnableFwSelfRecovery = 1: Driver triggers SSR instead of triggering + * kernel panic after firmware crash. + * + * Related: gEnableSSR + * + * Supported Feature: SSR + * + * Usage: Internal/External + * + * */ + #define CFG_ENABLE_FW_SELF_RECOVERY_NAME "gEnableFwSelfRecovery" #define CFG_ENABLE_FW_SELF_RECOVERY_DISABLE (0) #define CFG_ENABLE_FW_SELF_RECOVERY_ENABLE (1) @@ -5678,11 +5716,25 @@ enum dot11p_mode { #define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_DEFAULT (0) /* - * This parameter will help to debug ssr reinit failure issues - * by raising vos bug so dumps can be collected. If OEM - * wants to avoid this crash, just disable this parameter. - * wlan driver will only recover after driver unload and load. - * Default: Enable + * + * g_bug_on_reinit_failure - Enable/Disable bug on reinit + * @Min: 0 + * @Max: 1 + * @Default: 1 + * + * This ini is used to debug ssr reinit failure issues by raising vos bug so + * dumps can be collected. + * g_bug_on_reinit_failure = 0 wlan driver will only recover after driver + * unload and load + * g_bug_on_reinit_failure = 1 raise vos bug to collect dumps + * + * Related: gEnableSSR + * + * Supported Feature: SSR + * + * Usage: Internal/External + * + * */ #define CFG_BUG_ON_REINIT_FAILURE_NAME "g_bug_on_reinit_failure" #define CFG_BUG_ON_REINIT_FAILURE_MIN (0) @@ -5918,7 +5970,26 @@ enum dot11p_mode { #define CFG_OPTIMIZE_CA_EVENT_ENABLE (1) #define CFG_OPTIMIZE_CA_EVENT_DEFAULT (0) -/* Trigger BUG ON when firmware fails to send response */ +/* + * + * fw_timeout_crash - Enable/Disable BUG ON + * @Min: 0 + * @Max: 1 + * @Default: 0 + * + * This ini is used to Trigger host crash when firmware fails to send the + * response to host + * fw_timeout_crash = 0 Disabled + * fw_timeout_crash = 1 Trigger host crash + * + * Related: None + * + * Supported Feature: SSR + * + * Usage: Internal/External + * + * + */ #define CFG_CRASH_FW_TIMEOUT_NAME "fw_timeout_crash" #define CFG_CRASH_FW_TIMEOUT_DISABLE (0) #define CFG_CRASH_FW_TIMEOUT_ENABLE (1) -- cgit v1.2.3