From ca7ee8baa607e935fa09b0fbd929d644e33b464b Mon Sep 17 00:00:00 2001 From: spuligil Date: Tue, 4 Aug 2020 18:00:47 -0700 Subject: [PATCH] fw-api: CL 11237513 - update fw common interface files Change-Id: I11045dee7e74726d88049a9f5c264bcbfe3ef19c WMI: add priority and client_id fields to therm_throttle_config_req msg CRs-Fixed: 2262693 --- fw/wmi_services.h | 1 + fw/wmi_unified.h | 12 ++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/fw/wmi_services.h b/fw/wmi_services.h index 4186129c312a..7309c6317077 100644 --- a/fw/wmi_services.h +++ b/fw/wmi_services.h @@ -476,6 +476,7 @@ typedef enum { WMI_SERVICE_CFR_CAPTURE_COUNT_SUPPORT = 256, /* indicates FW support to program CFR capture mode and capture count */ WMI_SERVICE_OCV_SUPPORT = 257, /* FW supports OCV (Operating Channel Validation) */ WMI_SERVICE_LL_STATS_PER_CHAN_RX_TX_TIME_SUPPORT = 258, /* Indicates firmware support sending per channel own tx & rx time in radio stats of LL stats. */ + WMI_SERVICE_THERMAL_MULTI_CLIENT_SUPPORT = 259, /* Indicates FW Thermal Mgr will support multiple clients for mitigation */ WMI_MAX_EXT2_SERVICE diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 1eff06f2b36b..6cd47b8ae8aa 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -26082,6 +26082,16 @@ typedef struct { A_UINT32 prio; } wmi_therm_throt_level_config_info; +typedef enum { + WMI_THERMAL_CLIENT_UNSPECIFIED = 0, + WMI_THERMAL_CLIENT_APPS = 1, + WMI_THERMAL_CLIENT_WPSS = 2, + WMI_THERMAL_CLIENT_FW = 3, + WMI_THERMAL_CLIENT_MAX +} WMI_THERMAL_MITIGATION_CLIENTS; + +#define WMI_THERMAL_CLIENT_MAX_PRIORITY 10 + typedef struct { A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_therm_throt_config_request_fixed_param */ A_UINT32 pdev_id; /* config for each pdev */ @@ -26089,6 +26099,8 @@ typedef struct { A_UINT32 dc; /* duty cycle in ms */ A_UINT32 dc_per_event; /* how often (after how many duty cycles) the FW sends stats to host */ A_UINT32 therm_throt_levels; /* Indicates the number of thermal zone configuration */ + A_UINT32 client_id; /* Indicates the client from whom the request is being forwarded to FW. Refer to WMI_THERMAL_MITIGATION_CLIENTS. */ + A_UINT32 priority; /* Indicates the priority, higher the value, higher the priority. Varies from 1 to WMI_THERMAL_CLIENT_MAX_PRIORITY. */ /* * Following this structure is the TLV: * struct wmi_therm_throt_level_config_info therm_throt_level_config_info[therm_throt_levels]; diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 2bddd2a6c010..cae687e9332f 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_ 876 +#define __WMI_REVISION_ 877 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work