From 4db33a558ac8affa42e863de42c4b0deff284a97 Mon Sep 17 00:00:00 2001 From: spuligil Date: Wed, 24 Jan 2018 09:01:41 -0800 Subject: [PATCH] fw-api: CL 4062586 - update fw common interface files Define WMI_RUNTIME_DPD_RECAL_CMDID Change-Id: Ia62d25ff06a52da2069d4e92b617c8c816b53c6e CRs-Fixed: 1107600 --- fw/wmi_services.h | 3 ++- fw/wmi_tlv_defs.h | 8 ++++++++ fw/wmi_unified.h | 26 ++++++++++++++++++++++++++ fw/wmi_version.h | 2 +- 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/fw/wmi_services.h b/fw/wmi_services.h index 7805b99ba293..343223da161f 100644 --- a/fw/wmi_services.h +++ b/fw/wmi_services.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -244,6 +244,7 @@ typedef enum { WMI_SERVICE_11K_NEIGHBOUR_REPORT_SUPPORT=148, /* Support for 11k neighbor report */ WMI_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT=149, /* Support listen interval offload */ WMI_SERVICE_BSS_COLOR_OFFLOAD=150, /* Support BSS color change for STA, OBSS color collision detection in FW for AP and STA */ + WMI_SERVICE_RUNTIME_DPD_RECAL=151, /* Runtime DPD recalibration support */ /******* ADD NEW SERVICES HERE *******/ diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index cd88cb45813d..5c0fbc9a8c4e 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -896,6 +896,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_bss_color_change_enable_fixed_param, WMITLV_TAG_STRUC_wmi_obss_color_collision_det_config_fixed_param, WMITLV_TAG_STRUC_wmi_obss_color_collision_evt_fixed_param, + WMITLV_TAG_STRUC_wmi_runtime_dpd_recal_cmd_fixed_param, } WMITLV_TAG_ID; /* @@ -1258,6 +1259,7 @@ typedef enum { OP(WMI_PDEV_GET_NFCAL_POWER_CMDID) \ OP(WMI_BSS_COLOR_CHANGE_ENABLE_CMDID) \ OP(WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID) \ + OP(WMI_RUNTIME_DPD_RECAL_CMDID) \ /* add new CMD_LIST elements above this line */ @@ -3614,6 +3616,12 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PEER_TID_MSDUQ_QDEPTH_THRESH_UPDATE_CMDID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_set_rx_filter_promiscuous_cmd_fixed_param, wmi_pdev_set_rx_filter_promiscuous_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_SET_RX_FILTER_PROMISCUOUS_CMDID); +/* Runtime DPD Recalibration Params */ +#define WMITLV_TABLE_WMI_RUNTIME_DPD_RECAL_CMDID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_runtime_dpd_recal_cmd_fixed_param, wmi_runtime_dpd_recal_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) + +WMITLV_CREATE_PARAM_STRUC(WMI_RUNTIME_DPD_RECAL_CMDID); + /************************** TLV definitions of WMI events *******************************/ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index a9ca5e63c9d0..9f50d39e2a0d 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -879,6 +879,8 @@ typedef enum { WMI_READ_DATA_FROM_FLASH_CMDID, /* Thermal Throttling SET CONF commands */ WMI_THERM_THROT_SET_CONF_CMDID, + /* set runtime dpd recalibration params */ + WMI_RUNTIME_DPD_RECAL_CMDID, /* Offload 11k related requests */ WMI_11K_OFFLOAD_REPORT_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_11K_OFFLOAD), @@ -21228,6 +21230,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command) WMI_RETURN_STRING(WMI_BPF_GET_VDEV_WORK_MEMORY_CMDID); WMI_RETURN_STRING(WMI_BSS_COLOR_CHANGE_ENABLE_CMDID); WMI_RETURN_STRING(WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID); + WMI_RETURN_STRING(WMI_RUNTIME_DPD_RECAL_CMDID); } return "Invalid WMI cmd"; @@ -21890,6 +21893,29 @@ typedef struct { A_UINT32 paddr_hi; } wmi_dma_buf_release_entry; +typedef struct { + A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_runtime_dpd_recal_cmd_fixed_param */ + A_UINT32 enable; /* Enable/disable */ + + /* Thermal Thresholds, + * DPD recalibration will be triggered, when current temperature is + * either greater than (tmpt_base_c + dlt_tmpt_c_h), + * or less than (tmpt_base_c + dlt_tmpt_c_l). + * Here tmpt_base_c is the temperature in centigrade when first run dpd calibration. + */ + A_UINT32 dlt_tmpt_c_h; + A_UINT32 dlt_tmpt_c_l; + + /* cooling_time_ms + * The time (in milliseconds) expected to be needed for the unit + * to cool from dlt_tmpt_c_h to dlt_tmpt_c_l. + */ + A_UINT32 cooling_time_ms; + + /* Max duration for dpd re-cal. Unit: ms */ + A_UINT32 dpd_dur_max_ms; +} wmi_runtime_dpd_recal_cmd_fixed_param; + /* ADD NEW DEFS HERE */ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 60ef3b181df2..5a27d47cabdd 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -36,7 +36,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 495 +#define __WMI_REVISION_ 496 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work