iwlwifi: mvm: Add new quota command API
New quota command adds a field indicating low latency direction per quota. A TLV API bit was added to indicate the new API. Signed-off-by: David Spinadel <david.spinadel@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:

committed by
Luca Coelho

parent
d048b36b96
commit
72cbb73e8a
@@ -116,14 +116,14 @@ struct iwl_binding_cmd {
|
||||
#define IWL_MVM_MAX_QUOTA 128
|
||||
|
||||
/**
|
||||
* struct iwl_time_quota_data - configuration of time quota per binding
|
||||
* struct iwl_time_quota_data_v1 - configuration of time quota per binding
|
||||
* @id_and_color: ID and color of the relevant Binding,
|
||||
* &enum iwl_ctxt_id_and_color
|
||||
* @quota: absolute time quota in TU. The scheduler will try to divide the
|
||||
* remainig quota (after Time Events) according to this quota.
|
||||
* @max_duration: max uninterrupted context duration in TU
|
||||
*/
|
||||
struct iwl_time_quota_data {
|
||||
struct iwl_time_quota_data_v1 {
|
||||
__le32 id_and_color;
|
||||
__le32 quota;
|
||||
__le32 max_duration;
|
||||
@@ -137,8 +137,43 @@ struct iwl_time_quota_data {
|
||||
* essentially zero.
|
||||
* On CDB the fourth one is a regular binding.
|
||||
*/
|
||||
struct iwl_time_quota_cmd {
|
||||
struct iwl_time_quota_data quotas[MAX_BINDINGS];
|
||||
struct iwl_time_quota_cmd_v1 {
|
||||
struct iwl_time_quota_data_v1 quotas[MAX_BINDINGS];
|
||||
} __packed; /* TIME_QUOTA_ALLOCATION_CMD_API_S_VER_1 */
|
||||
|
||||
enum iwl_quota_low_latency {
|
||||
IWL_QUOTA_LOW_LATENCY_NONE = 0,
|
||||
IWL_QUOTA_LOW_LATENCY_TX = BIT(0),
|
||||
IWL_QUOTA_LOW_LATENCY_RX = BIT(1),
|
||||
IWL_QUOTA_LOW_LATENCY_TX_RX =
|
||||
IWL_QUOTA_LOW_LATENCY_TX | IWL_QUOTA_LOW_LATENCY_RX,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct iwl_time_quota_data - configuration of time quota per binding
|
||||
* @id_and_color: ID and color of the relevant Binding.
|
||||
* @quota: absolute time quota in TU. The scheduler will try to divide the
|
||||
* remainig quota (after Time Events) according to this quota.
|
||||
* @max_duration: max uninterrupted context duration in TU
|
||||
* @low_latency: low latency status, &enum iwl_quota_low_latency
|
||||
*/
|
||||
struct iwl_time_quota_data {
|
||||
__le32 id_and_color;
|
||||
__le32 quota;
|
||||
__le32 max_duration;
|
||||
__le32 low_latency;
|
||||
} __packed; /* TIME_QUOTA_DATA_API_S_VER_2 */
|
||||
|
||||
/**
|
||||
* struct iwl_time_quota_cmd - configuration of time quota between bindings
|
||||
* ( TIME_QUOTA_CMD = 0x2c )
|
||||
* Note: on non-CDB the fourth one is the auxilary mac and is essentially zero.
|
||||
* On CDB the fourth one is a regular binding.
|
||||
*
|
||||
* @quotas: allocations per binding
|
||||
*/
|
||||
struct iwl_time_quota_cmd {
|
||||
struct iwl_time_quota_data quotas[MAX_BINDINGS];
|
||||
} __packed; /* TIME_QUOTA_ALLOCATION_CMD_API_S_VER_2 */
|
||||
|
||||
#endif /* __iwl_fw_api_binding_h__ */
|
||||
|
@@ -248,6 +248,8 @@ typedef unsigned int __bitwise iwl_ucode_tlv_api_t;
|
||||
* @IWL_UCODE_TLV_API_NEW_RX_STATS: should new RX STATISTICS API be used
|
||||
* @IWL_UCODE_TLV_API_ATS_COEX_EXTERNAL: the coex notification is enlared to
|
||||
* include information about ACL time sharing.
|
||||
* @IWL_UCODE_TLV_API_QUOTA_LOW_LATENCY: Quota command includes a field
|
||||
* indicating low latency direction.
|
||||
*
|
||||
* @NUM_IWL_UCODE_TLV_API: number of bits used
|
||||
*/
|
||||
@@ -265,6 +267,7 @@ enum iwl_ucode_tlv_api {
|
||||
IWL_UCODE_TLV_API_NEW_BEACON_TEMPLATE = (__force iwl_ucode_tlv_api_t)34,
|
||||
IWL_UCODE_TLV_API_NEW_RX_STATS = (__force iwl_ucode_tlv_api_t)35,
|
||||
IWL_UCODE_TLV_API_COEX_ATS_EXTERNAL = (__force iwl_ucode_tlv_api_t)37,
|
||||
IWL_UCODE_TLV_API_QUOTA_LOW_LATENCY = (__force iwl_ucode_tlv_api_t)38,
|
||||
|
||||
NUM_IWL_UCODE_TLV_API
|
||||
#ifdef __CHECKER__
|
||||
|
Reference in New Issue
Block a user