wifi: iwlwifi: updates intended for v6.6 2023-08-30
cover wifi: iwlwifi: updates intended for v6.6 2023-08-30
From: Gregory Greenman <[email protected]>
Hi,
This patch set includes iwlwifi patches intended for v6.6.
The changes are:
* CSA support for MLD and a few CSA fixes
* kernel-doc fixes
* a fix for enable_ini module parameter
* a few fixes and improvements in Rx path
* several other fixes
Thanks,
Gregory
Emmanuel Grumbach (2):
wifi: iwlwifi: mvm: support CSA with MLD
wifi: iwlwifi: honor the enable_ini value
Johannes Berg (13):
wifi: iwlwifi: mvm: increase session protection after CSA
wifi: iwlwifi: mvm: disconnect long CSA only w/o alternative
wifi: iwlwifi: fix some kernel-doc issues
wifi: iwlwifi: queue: fix kernel-doc
wifi: iwlwifi: dvm: remove kernel-doc warnings
wifi: iwlwifi: pcie: fix kernel-doc issues
wifi: iwlwifi: mvm: fix kernel-doc
wifi: iwlwifi: fw: reconstruct the API/CAPA enum number
wifi: iwlwifi: mvm: move RU alloc B2 placement
wifi: iwlwifi: mvm: check link more carefully
wifi: iwlwifi: mvm: reduce maximum RX A-MPDU size
wifi: iwlwifi: pcie: fix RB status reading
wifi: iwlwifi: increase number of RX buffers for EHT devices
Miri Korenblit (1):
wifi: iwlwifi: don't use an uninitialized variable
drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 10 ++-- drivers/net/wireless/intel/iwlwifi/cfg/sc.c | 8 +-- .../net/wireless/intel/iwlwifi/dvm/commands.h | 33 +++++++---- drivers/net/wireless/intel/iwlwifi/dvm/dev.h | 14 +++-- drivers/net/wireless/intel/iwlwifi/dvm/rs.h | 12 ++-- drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 9 +-- .../wireless/intel/iwlwifi/fw/api/dbg-tlv.h | 1 + .../net/wireless/intel/iwlwifi/fw/api/rfi.h | 7 ++- .../net/wireless/intel/iwlwifi/fw/api/rx.h | 16 +++-- .../net/wireless/intel/iwlwifi/fw/api/txq.h | 4 +- drivers/net/wireless/intel/iwlwifi/fw/file.h | 27 ++++++--- .../wireless/intel/iwlwifi/fw/notif-wait.h | 3 +- .../net/wireless/intel/iwlwifi/iwl-config.h | 5 -- .../intel/iwlwifi/iwl-context-info-gen3.h | 4 +- .../net/wireless/intel/iwlwifi/iwl-dbg-tlv.h | 5 +- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 51 ++++++---------- drivers/net/wireless/intel/iwlwifi/iwl-drv.h | 2 +- .../wireless/intel/iwlwifi/iwl-eeprom-parse.h | 4 +- drivers/net/wireless/intel/iwlwifi/iwl-fh.h | 13 ++-- .../net/wireless/intel/iwlwifi/iwl-trans.h | 13 ++-- .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 4 +- .../net/wireless/intel/iwlwifi/mvm/mac80211.c | 13 ++-- .../wireless/intel/iwlwifi/mvm/mld-mac80211.c | 3 - drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 28 ++++++--- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/rs.h | 23 ++++---- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 5 +- .../wireless/intel/iwlwifi/mvm/time-event.h | 9 ++- .../wireless/intel/iwlwifi/pcie/internal.h | 59 +++++++++++++------ drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 +- .../net/wireless/intel/iwlwifi/pcie/trans.c | 12 ++-- drivers/net/wireless/intel/iwlwifi/queue/tx.h | 6 +- 34 files changed, 225 insertions(+), 186 deletions(-)
Signature · 1 line
2.38.1
PATCH 1/16 wifi: iwlwifi: mvm: support CSA with MLD
From: Emmanuel Grumbach <[email protected]>
Pass the right link_id to ieee80211_chswitch_done.
Use the link_conf parameter passed to post_channel_switch() to get the right ap_sta_id.
--- drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 4 +++- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c +3 -1
@@ -1761,6 +1761,7 @@ void iwl_mvm_channel_switch_start_notif(struct iwl_mvm *mvm,u32 id_n_color, csa_id;/* save mac_id or link_id to use later to cancel csa if needed */ u32 id; +u32 mac_link_id =0 ;u8 notif_ver =iwl_fw_lookup_notif_ver (mvm->fw,MAC_CONF_GROUP ,CHANNEL_SWITCH_START_NOTIF ,0 );bool csa_active;
@@ -1790,6 +1791,7 @@ void iwl_mvm_channel_switch_start_notif(struct iwl_mvm *mvm, goto out_unlock; id = link_id; + mac_link_id = bss_conf->link_id; vif = bss_conf->vif; csa_active = bss_conf->csa_active; }
@@ -1839,7 +1841,7 @@ void iwl_mvm_channel_switch_start_notif(struct iwl_mvm *mvm,iwl_mvm_csa_client_absent (mvm, vif);cancel_delayed_work (&mvmvif->csa_work); -ieee80211_chswitch_done (vif, true,0 ); +ieee80211_chswitch_done (vif, true, mac_link_id);break ;default :/* should never happen */
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +3 -2
@@ -1381,10 +1381,11 @@ int iwl_mvm_post_channel_switch(struct ieee80211_hw *hw,if (vif->type ==NL80211_IFTYPE_STATION ) {struct iwl_mvm_sta *mvmsta; +unsigned int link_id = link_conf->link_id; +u8 ap_sta_id = mvmvif->link[link_id]->ap_sta_id; mvmvif->csa_bcn_pending = false; - mvmsta =iwl_mvm_sta_from_staid_protected (mvm, - mvmvif->deflink.ap_sta_id); + mvmsta =iwl_mvm_sta_from_staid_protected (mvm, ap_sta_id);if (WARN_ON (!mvmsta)) { ret = -EIO ;
Signature · 1 line
2.38.1
PATCH 2/16 wifi: iwlwifi: mvm: increase session protection after CSA
In reply to [email protected]From: Johannes Berg <[email protected]>
In the spec, CSA is defined roughly as follows:
- TBTT x: beacon with CSA, count=n (old channel)
- TBTT x+1: beacon with CSA, count=n-1 (old channel)
- TBTT x+n-1: beacon with CSA, count=1 (old channel)
"A Channel Switch Count field set to 1 indicates that the switch
occurs immediately before the next TBTT.
- TBTT x+n: beacon without CSA (new channel)
When we detect it, we currently schedule the CSA event to be at 10 TUs before TBTT x+n-1, for a beacon interval, to give us quiet time.
When this event *starts*, we currently notify mac80211 that the channel switch happened, which causes us to add a session protection event to listen for the first beacon (and enable TX etc. when that arrives).
We don't even ask for a notification when this event ends so the code that handles that is effectively dead code.
The session protection duration is 3 beacon intervals, scheduled at 10 TU before TBTT x+n-1. It will thus end just before TBTT x+n+2.
Unfortunately, if the AP doesn't transmit or we miss just the first two beacons on the new channel, then this will cause us to disconnect. Or even just one, if the AP isn't quite aligned with the TBTT after the switch.
However, listening to the _end_ of the time event isn't what we want either, because we want all the new PHY and other config that needs to come from mac80211 to start early, so we have a head-start for the new channel, since we're not going to use the old one anyway for this time.
So since we don't really have anything better to do at this time, and this is relatively rare, just make the session protection use 5x the beacon interval instead of just 3x, so it's more likely we catch a beacon even if the AP neglected to send it, or we just miss it.
--- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +1 -1
@@ -4953,7 +4953,7 @@ static int __iwl_mvm_assign_vif_chanctx(struct iwl_mvm *mvm,if (!fw_has_capa (&mvm->fw->ucode_capa,IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD )) { -u32 duration =3 * vif->bss_conf.beacon_int; +u32 duration =5 * vif->bss_conf.beacon_int;/* Protect the session to make sure we hear the first * beacon on the new channel.
Signature · 1 line
2.38.1
PATCH 3/16 wifi: iwlwifi: mvm: disconnect long CSA only w/o alternative
In reply to [email protected]From: Johannes Berg <[email protected]>
If there's an alternative link to use while the CSA is in progress, there's no need to disconnect since another link is still usable during the switching time. Change the code here to handle that accordingly.
--- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +2 -1
@@ -5459,7 +5459,8 @@ int iwl_mvm_pre_channel_switch(struct ieee80211_hw *hw, goto out_unlock; } -if (chsw->delay >IWL_MAX_CSA_BLOCK_TX ) +if (chsw->delay >IWL_MAX_CSA_BLOCK_TX && +hweight16 (vif->valid_links) <=1 )schedule_delayed_work (&mvmvif->csa_work,0 );if (chsw->block_tx) {
Signature · 1 line
2.38.1
PATCH 4/16 wifi: iwlwifi: honor the enable_ini value
In reply to [email protected]From: Emmanuel Grumbach <[email protected]>
In case the user sets the enable_ini to some preset, we want to honor the value.
Remove the ops to set the value of the module parameter is runtime, we don't want to allow to modify the value in runtime since we configure the firmware once at the beginning on its life.
--- .../wireless/intel/iwlwifi/fw/api/dbg-tlv.h | 1 + .../net/wireless/intel/iwlwifi/iwl-dbg-tlv.h | 5 +- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 51 +++++++------------ .../net/wireless/intel/iwlwifi/iwl-trans.h | 4 ++ 4 files changed, 25 insertions(+), 36 deletions(-)
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h +1 -0
@@ -13,6 +13,7 @@#define IWL_FW_INI_DOMAIN_ALWAYS_ON 0#define IWL_FW_INI_REGION_ID_MASK GENMASK(15, 0)#define IWL_FW_INI_REGION_DUMP_POLICY_MASK GENMASK(31, 16) +#define IWL_FW_INI_PRESET_DISABLE 0xff/** * struct iwl_fw_ini_hcmd
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h +3 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2018-2022 Intel Corporation +* Copyright (C) 2018-2023 Intel Corporation */ #ifndef __iwl_dbg_tlv_h__#define __iwl_dbg_tlv_h__
@@ -10,7 +10,8 @@#include <fw/file.h> #include <fw/api/dbg-tlv.h> -#define IWL_DBG_TLV_MAX_PRESET 15 +#define IWL_DBG_TLV_MAX_PRESET 15 +#define ENABLE_INI (IWL_DBG_TLV_MAX_PRESET + 1)/** * struct iwl_dbg_tlv_node - debug TLV node
drivers/net/wireless/intel/iwlwifi/iwl-drv.c +17 -34
69 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/iwl-trans.h +4 -0
@@ -56,6 +56,10 @@* 6) Eventually, the free function will be called. */ +/* default preset 0 (start from bit 16)*/ +#define IWL_FW_DBG_DOMAIN_POS 16 +#define IWL_FW_DBG_DOMAIN BIT(IWL_FW_DBG_DOMAIN_POS) +#define IWL_TRANS_FW_DBG_DOMAIN (trans) IWL_FW_INI_DOMAIN_ALWAYS_ON#define FH_RSCSR_FRAME_SIZE_MSK 0x00003FFF/* bits 0-13 */
Signature · 1 line
2.38.1
PATCH 5/16 wifi: iwlwifi: fix some kernel-doc issues
In reply to [email protected]From: Johannes Berg <[email protected]>
Fix kernel-doc issues.
--- drivers/net/wireless/intel/iwlwifi/fw/api/rfi.h | 7 ++++--- drivers/net/wireless/intel/iwlwifi/fw/notif-wait.h | 3 ++- drivers/net/wireless/intel/iwlwifi/iwl-config.h | 5 ----- .../wireless/intel/iwlwifi/iwl-context-info-gen3.h | 4 ++-- drivers/net/wireless/intel/iwlwifi/iwl-drv.h | 2 +- .../net/wireless/intel/iwlwifi/iwl-eeprom-parse.h | 4 ++-- drivers/net/wireless/intel/iwlwifi/iwl-fh.h | 13 +++++++------ drivers/net/wireless/intel/iwlwifi/iwl-trans.h | 9 ++++----- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 4 ++-- 9 files changed, 24 insertions(+), 27 deletions(-)
drivers/net/wireless/intel/iwlwifi/fw/api/rfi.h +4 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2020-2021 Intel Corporation +* Copyright (C) 2020-2021, 2023 Intel Corporation */ #ifndef __iwl_fw_api_rfi_h__#define __iwl_fw_api_rfi_h__
@@ -25,8 +25,9 @@ struct iwl_rfi_lut_entry {/** * struct iwl_rfi_config_cmd - RFI configuration table * -* @entry: a table can have 24 frequency/channel mappings +* @table: a table can have 24 frequency/channel mappings * @oem: specifies if this is the default table or set by OEM +* @reserved: (reserved/padding) */ struct iwl_rfi_config_cmd {struct iwl_rfi_lut_entry table[IWL_RFI_LUT_SIZE ];
@@ -35,7 +36,7 @@ struct iwl_rfi_config_cmd { } __packed;/* RFI_CONFIG_CMD_API_S_VER_1 */ /** -* iwl_rfi_freq_table_status - status of the frequency table query +* enum iwl_rfi_freq_table_status - status of the frequency table query * @RFI_FREQ_TABLE_OK: can be used * @RFI_FREQ_TABLE_DVFS_NOT_READY: DVFS is not ready yet, should try later * @RFI_FREQ_TABLE_DISABLED: the feature is disabled in FW
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.h +2 -1
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2005-2014 Intel Corporation +* Copyright (C) 2005-2014, 2023 Intel Corporation * Copyright (C) 2015-2017 Intel Deutschland GmbH */ #ifndef __iwl_notif_wait_h__
@@ -25,6 +25,7 @@ struct iwl_notif_wait_data {* returns true, the wait is over, if it returns false then * the waiter stays blocked. If no function is given, any * of the listed commands will unblock the waiter. +* @fn_data: pointer to pass to the @fn's data argument * @cmds: command IDs * @n_cmds: number of command IDs * @triggered: waiter should be woken up
drivers/net/wireless/intel/iwlwifi/iwl-config.h +0 -5
@@ -250,7 +250,6 @@ enum iwl_cfg_trans_ltr_delay {* RFID can be read before deciding the remaining parameters to use. * * @base_params: pointer to basic parameters -* @csr: csr flags and addresses that are different across devices * @device_family: the device family * @umac_prph_offset: offset to add to UMAC periphery address * @xtal_latency: power up latency to get the xtal stabilized
@@ -319,7 +318,6 @@ struct iwl_fw_mon_regs {* @non_shared_ant: the antenna that is for WiFi only * @nvm_ver: NVM version * @nvm_calib_ver: NVM calibration version -* @lib: pointer to the lib ops * @ht_params: point to ht parameters * @led_mode: 0=blinking, 1=On(RF On)/Off(RF Off) * @rx_with_siso_diversity: 1x1 device with rx antenna diversity
@@ -344,15 +342,12 @@ struct iwl_fw_mon_regs {* @nvm_type: see &enum iwl_nvm_type * @d3_debug_data_base_addr: base address where D3 debug data is stored * @d3_debug_data_length: length of the D3 debug data -* @bisr_workaround: BISR hardware workaround (for 22260 series devices) * @min_txq_size: minimum number of slots required in a TX queue * @uhb_supported: ultra high band channels supported * @min_ba_txq_size: minimum number of slots required in a TX queue which * based on hardware support (HE - 256, EHT - 1K). * @num_rbds: number of receive buffer descriptors to use * (only used for multi-queue capable devices) -* @mac_addr_csr_base: CSR base register for MAC address access, if not set -* assume 0x380 * * We enable the driver to be backward compatible wrt. hardware features. * API differences in uCode shouldn't be handled here but through TLVs
drivers/net/wireless/intel/iwlwifi/iwl-context-info-gen3.h +2 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2018, 2020-2022 Intel Corporation +* Copyright (C) 2018, 2020-2023 Intel Corporation */ #ifndef __iwl_context_info_file_gen3_h__#define __iwl_context_info_file_gen3_h__
@@ -44,7 +44,7 @@ enum iwl_prph_scratch_mtr_format {* @IWL_PRPH_SCRATCH_EDBG_DEST_ST_ARBITER: use st arbiter, mainly for * multicomm. * @IWL_PRPH_SCRATCH_EDBG_DEST_TB22DTF: route debug data to SoC HW -* @IWL_PRPH_SCTATCH_RB_SIZE_4K: Use 4K RB size (the default is 2K) +* @IWL_PRPH_SCRATCH_RB_SIZE_4K: Use 4K RB size (the default is 2K) * @IWL_PRPH_SCRATCH_MTR_MODE: format used for completion - 0: for * completion descriptor, 1 for responses (legacy) * @IWL_PRPH_SCRATCH_MTR_FORMAT: a mask for the size of the tfd.
drivers/net/wireless/intel/iwlwifi/iwl-drv.h +1 -1
@@ -56,7 +56,7 @@ struct iwl_cfg;/** * iwl_drv_start - start the drv * -* @trans_ops: the ops of the transport +* @trans: the transport * * starts the driver: fetches the firmware. This should be called by bus * specific system flows implementations. For example, the bus specific probe
drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h +2 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2005-2014, 2018, 2020-2022 Intel Corporation +* Copyright (C) 2005-2014, 2018, 2020-2023 Intel Corporation * Copyright (C) 2015 Intel Mobile Communications GmbH */ #ifndef __iwl_eeprom_parse_h__
@@ -61,7 +61,7 @@ struct iwl_nvm_data {/** * iwl_parse_eeprom_data - parse EEPROM data and return values * -* @dev: device pointer we're parsing for, for debug only +* @trans: ransport we're parsing for, for debug only * @cfg: device configuration for parsing and overrides * @eeprom: the EEPROM data * @eeprom_size: length of the EEPROM data
drivers/net/wireless/intel/iwlwifi/iwl-fh.h +7 -6
@@ -681,12 +681,13 @@ struct iwl_tfh_tb {/** * struct iwl_tfd - Transmit Frame Descriptor (TFD) -* @ __reserved1[3] reserved -* @ num_tbs 0-4 number of active tbs -* 5 reserved -* 6-7 padding (not used) -* @ tbs[20] transmit frame buffer descriptors -* @ __pad padding +* @__reserved1: reserved +* @num_tbs: +* 0-4 number of active tbs +* 5 reserved +* 6-7 padding (not used) +* @tbs: transmit frame buffer descriptors +* @__pad: padding */ struct iwl_tfd {u8 __reserved1[3 ];
drivers/net/wireless/intel/iwlwifi/iwl-trans.h +4 -5
@@ -109,6 +109,7 @@ static inline u32 iwl_rx_packet_payload_len(const struct iwl_rx_packet *pkt)* @CMD_ASYNC: Return right away and don't wait for the response * @CMD_WANT_SKB: Not valid with CMD_ASYNC. The caller needs the buffer of * the response. The caller needs to call iwl_free_resp when done. +* @CMD_SEND_IN_RFKILL: Send the command even if the NIC is in RF-kill. * @CMD_WANT_ASYNC_CALLBACK: the op_mode's async callback function must be * called after this command completes. Valid only with CMD_ASYNC. * @CMD_SEND_IN_D3: Allow the command to be sent in D3 mode, relevant to
@@ -738,6 +739,7 @@ struct iwl_dram_data { };/** +* struct iwl_dram_regions - DRAM regions container structure * @drams: array of several DRAM areas that contains the pnvm and power * reduction table payloads. * @n_regions: number of DRAM regions that were allocated
@@ -866,8 +868,7 @@ struct iwl_trans_debug {u64 unsupported_region_msk;struct iwl_ucode_tlv *active_regions[IWL_FW_INI_MAX_REGION_ID ];struct list_head debug_info_tlv_list; -struct iwl_dbg_tlv_time_point_data - time_point[IWL_FW_INI_TIME_POINT_NUM ]; +struct iwl_dbg_tlv_time_point_data time_point[IWL_FW_INI_TIME_POINT_NUM ];struct list_head periodic_trig_list;u32 domains_bitmap;
@@ -920,7 +921,6 @@ struct iwl_pcie_first_tb_buf {/** * struct iwl_txq - Tx Queue for DMA -* @q: generic Rx/Tx queue descriptor * @tfds: transmit frame descriptors (DMA memory) * @first_tb_bufs: start of command headers, including scratch buffers, for * the writeback -- this is DMA memory and an array holding one buffer
@@ -1064,11 +1064,10 @@ struct iwl_trans_txqs {* starting the firmware, used for tracing * @rx_mpdu_cmd_hdr_size: used for tracing, amount of data before the * start of the 802.11 header in the @rx_mpdu_cmd -* @dflt_pwr_limit: default power limit fetched from the platform (ACPI) * @system_pm_mode: the system-wide power management mode in use. * This mode is set dynamically, depending on the WoWLAN values * configured from the userspace at runtime. -* @iwl_trans_txqs: transport tx queues data. +* @txqs: transport tx queues data. * @mbx_addr_0_step: step address data 0 * @mbx_addr_1_step: step address data 1 * @pcie_link_speed: current PCIe link speed (%PCI_EXP_LNKSTA_CLS_*),
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +2 -2
@@ -218,7 +218,7 @@ enum iwl_bt_force_ant_mode { };/** -* struct iwl_mvm_low_latency_force - low latency force mode set by debugfs +* enum iwl_mvm_low_latency_force - low latency force mode set by debugfs * @LOW_LATENCY_FORCE_UNSET: unset force mode * @LOW_LATENCY_FORCE_ON: for low latency on * @LOW_LATENCY_FORCE_OFF: for low latency off
@@ -232,7 +232,7 @@ enum iwl_mvm_low_latency_force { };/** -* struct iwl_mvm_low_latency_cause - low latency set causes +* enum iwl_mvm_low_latency_cause - low latency set causes * @LOW_LATENCY_TRAFFIC: indicates low latency traffic was detected * @LOW_LATENCY_DEBUGFS: low latency mode set from debugfs * @LOW_LATENCY_VCMD: low latency mode set from vendor command
Signature · 1 line
2.38.1
PATCH 6/16 wifi: iwlwifi: don't use an uninitialized variable
In reply to [email protected]From: Miri Korenblit <[email protected]>
Don't use variable err uninitialized.
The reason for removing the check instead of initializing it in the beginning of the function is because that way static checkers will be able to catch issues if we do something wrong in the future.
--- drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c +0 -3
@@ -1084,9 +1084,6 @@ iwl_mvm_mld_change_vif_links(struct ieee80211_hw *hw, } } -if (err) - goto out_err; - err =0 ;if (new_links ==0 ) { mvmvif->link[0 ] = &mvmvif->deflink;
Signature · 1 line
2.38.1
PATCH 7/16 wifi: iwlwifi: queue: fix kernel-doc
In reply to [email protected]From: Johannes Berg <[email protected]>
Fix the kernel-doc annotations here, adding the trans parameter and fixing the syntax.
--- drivers/net/wireless/intel/iwlwifi/queue/tx.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/wireless/intel/iwlwifi/queue/tx.h +4 -2
@@ -71,7 +71,8 @@ static inline void iwl_txq_stop(struct iwl_trans *trans, struct iwl_txq *txq)/** * iwl_txq_inc_wrap - increment queue index, wrap back to beginning -* @index -- current index +* @trans: the transport (for configuration data) +* @index: current index */ static inline int iwl_txq_inc_wrap (struct iwl_trans *trans,int index) {
@@ -81,7 +82,8 @@ static inline int iwl_txq_inc_wrap(struct iwl_trans *trans, int index)/** * iwl_txq_dec_wrap - decrement queue index, wrap back to end -* @index -- current index +* @trans: the transport (for configuration data) +* @index: current index */ static inline int iwl_txq_dec_wrap (struct iwl_trans *trans,int index) {
Signature · 1 line
2.38.1
PATCH 8/16 wifi: iwlwifi: dvm: remove kernel-doc warnings
In reply to [email protected]From: Johannes Berg <[email protected]>
Mostly remove kernel-doc comment annotation since
the comments really aren't kernel-doc, and fix a
few other places.
--- .../net/wireless/intel/iwlwifi/dvm/commands.h | 33 +++++++++++-------- drivers/net/wireless/intel/iwlwifi/dvm/dev.h | 14 ++++---- drivers/net/wireless/intel/iwlwifi/dvm/rs.h | 12 +++---- drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 9 ++--- 4 files changed, 39 insertions(+), 29 deletions(-)
drivers/net/wireless/intel/iwlwifi/dvm/commands.h +20 -13
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2005-2014 Intel Corporation +* Copyright (C) 2005-2014, 2023 Intel Corporation */ /* * Please use this file (commands.h) only for uCode API definitions.
@@ -270,7 +270,7 @@ enum {#define IWL_PWR_NUM_HT_OFDM_ENTRIES 24#define IWL_PWR_CCK_ENTRIES 2 -/** +/* * struct tx_power_dual_stream * * Table entries in REPLY_TX_PWR_TABLE_CMD, REPLY_CHANNEL_SWITCH
@@ -281,7 +281,7 @@ struct tx_power_dual_stream {__le32 dw; } __packed; -/** +/* * Command REPLY_TX_POWER_DBM_CMD = 0x98 * struct iwlagn_tx_power_dbm_cmd */
@@ -295,7 +295,7 @@ struct iwlagn_tx_power_dbm_cmd {u8 reserved; } __packed; -/** +/* * Command TX_ANT_CONFIGURATION_CMD = 0x98 * This command is used to configure valid Tx antenna. * By default uCode concludes the valid antenna according to the radio flavor.
@@ -313,7 +313,7 @@ struct iwl_tx_ant_config_cmd {#define UCODE_VALID_OK cpu_to_le32(0x1) -/** +/* * REPLY_ALIVE = 0x1 (response only, not a command) * * uCode issues this "alive" notification once the runtime image is ready
@@ -534,7 +534,7 @@ enum {/* transfer to host non bssid beacons in associated state */ #define RXON_FILTER_BCON_AWARE_MSK cpu_to_le32(1 << 6) -/** +/* * REPLY_RXON = 0x10 (command, has simple generic response) * * RXON tunes the radio tuner to a service channel, and sets up a number
@@ -681,6 +681,7 @@ struct iwl_csa_notification {* @aifsn: Number of slots in Arbitration Interframe Space (before * performing random backoff timing prior to Tx). Device default 1. * @edca_txop: Length of Tx opportunity, in uSecs. Device default is 0. +* @reserved1: reserved for alignment * * Device will automatically increase contention window by (2*CW) + 1 for each * transmission retry. Device uses cw_max as a bit mask, ANDed with new CW
@@ -791,9 +792,11 @@ struct iwl_keyinfo {/** * struct sta_id_modify -* @addr[ETH_ALEN]: station's MAC address +* @addr: station's MAC address +* @reserved1: reserved for alignment * @sta_id: index of station in uCode's station table * @modify_mask: STA_MODIFY_*, 1: modify, 0: don't change +* @reserved2: reserved for alignment * * Driver selects unused table index when adding new station, * or the index to a pre-existing station entry when modifying that station.
@@ -1464,7 +1467,7 @@ struct iwl_compressed_ba_resp {#define LINK_QUAL_ANT_MSK (LINK_QUAL_ANT_A_MSK|LINK_QUAL_ANT_B_MSK) -/** +/* * struct iwl_link_qual_general_params * * Used in REPLY_TX_LINK_QUALITY_CMD
@@ -1507,7 +1510,7 @@ struct iwl_link_qual_general_params {#define LINK_QUAL_AGG_FRAME_LIMIT_MAX (63)#define LINK_QUAL_AGG_FRAME_LIMIT_MIN (0) -/** +/* * struct iwl_link_qual_agg_params * * Used in REPLY_TX_LINK_QUALITY_CMD
@@ -2040,7 +2043,7 @@ struct iwl_spectrum_notification {* *****************************************************************************/ -/** +/* * struct iwl_powertable_cmd - Power Table Command * @flags: See below: *
@@ -2171,7 +2174,7 @@ struct iwl_ct_kill_throttling_config {#define SCAN_CHANNEL_TYPE_PASSIVE cpu_to_le32(0)#define SCAN_CHANNEL_TYPE_ACTIVE cpu_to_le32(1) -/** +/* * struct iwl_scan_channel - entry in REPLY_SCAN_CMD channel table * * One for each channel in the scan list.
@@ -2210,7 +2213,7 @@ struct iwl_scan_channel {/* set number of direct probes __le32 type */ #define IWL_SCAN_PROBE_MASK (n) cpu_to_le32((BIT(n) | (BIT(n) - BIT(1)))) -/** +/* * struct iwl_ssid_ie - directed scan network information element * * Up to 20 of these may appear in REPLY_SCAN_CMD,
@@ -2560,6 +2563,7 @@ struct statistics_rx_bt {* @ant_a: current tx power on chain a in 1/2 dB step * @ant_b: current tx power on chain b in 1/2 dB step * @ant_c: current tx power on chain c in 1/2 dB step +* @reserved: reserved for alignment */ struct statistics_tx_power {u8 ant_a;
@@ -3006,7 +3010,7 @@ struct iwl_enhance_sensitivity_cmd { } __packed; -/** +/* * REPLY_PHY_CALIBRATION_CMD = 0xb0 (command, has simple generic response) * * This command sets the relative gains of agn device's 3 radio receiver chains.
@@ -3847,6 +3851,7 @@ struct iwlagn_wowlan_status {* @type: * 0 - BSS * 1 - PAN +* @reserved: reserved for alignment */ struct iwl_wipan_slot {__le16 width;
@@ -3874,6 +3879,8 @@ struct iwl_wipan_slot {* uCode will perform leaving channel methods in context switch * also when working in same channel mode * @num_slots: 1 - 10 +* @slots: per-slot data +* @reserved: reserved for alignment */ struct iwl_wipan_params_cmd {__le16 flags;
drivers/net/wireless/intel/iwlwifi/dvm/dev.h +8 -6
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ /****************************************************************************** * -* Copyright(c) 2003 - 2014, 2020 Intel Corporation. All rights reserved. +* Copyright(c) 2003 - 2014, 2020, 2023 Intel Corporation. All rights reserved. *****************************************************************************/ /* * Please use this file (dev.h) for driver implementation definitions.
@@ -126,11 +126,11 @@ enum iwl_agg_state {/** * struct iwl_ht_agg - aggregation state machine - +* * This structs holds the states for the BA agreement establishment and tear * down. It also holds the state during the BA session itself. This struct is * duplicated for each RA / TID. - +* * @rate_n_flags: Rate at which Tx was attempted. Holds the data between the * Tx response (REPLY_TX), and the block ack notification * (REPLY_COMPRESSED_BA).
@@ -152,9 +152,9 @@ struct iwl_ht_agg {/** * struct iwl_tid_data - one for each RA / TID - +* * This structs holds the states for each RA / TID. - +* * @seq_number: the next WiFi sequence number to use * @next_reclaimed: the WiFi sequence number of the next packet to be acked. * This is basically (last acked packet++).
@@ -195,7 +195,7 @@ struct iwl_station_priv {u8 sta_id; }; -/** +/* * struct iwl_vif_priv - driver's private per-interface information * * When mac80211 allocates a virtual interface, it can allocate
@@ -529,6 +529,7 @@ enum iwl_scan_type {* relevant for 1000, 6000 and up * @struct iwl_sensitivity_ranges: range of sensitivity values * @use_rts_for_aggregation: use rts/cts protection for HT traffic +* @sens: sensitivity ranges pointer */ struct iwl_hw_params {u8 tx_chains_num;
@@ -547,6 +548,7 @@ struct iwl_hw_params {* @bt_prio_boost: default bt priority boost value * @agg_time_limit: maximum number of uSec in aggregation * @bt_sco_disable: uCode should not response to BT in SCO/ESCO mode +* @bt_session_2: indicates version 2 of the BT command is used */ struct iwl_dvm_bt_params {bool advanced_bt_coexist;
drivers/net/wireless/intel/iwlwifi/dvm/rs.h +6 -6
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ /****************************************************************************** * -* Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. +* Copyright(c) 2003 - 2014, 2023 Intel Corporation. All rights reserved. *****************************************************************************/ #ifndef __iwl_agn_rs_h__
@@ -269,7 +269,7 @@ struct iwl_rate_mcs_info {char mcs[IWL_MAX_MCS_DISPLAY_SIZE ]; }; -/** +/* * struct iwl_rate_scale_data -- tx success history for one rate */ struct iwl_rate_scale_data {
@@ -281,7 +281,7 @@ struct iwl_rate_scale_data {unsigned long stamp; }; -/** +/* * struct iwl_scale_tbl_info -- tx params and success history for all rates * * There are two of these in struct iwl_lq_sta,
@@ -311,7 +311,7 @@ struct iwl_traffic_load {u8 head;/* start of the circular buffer */ }; -/** +/* * struct iwl_lq_sta -- driver's rate scaling private structure * * Pointer to this gets passed back and forth between driver and mac80211.
@@ -379,7 +379,7 @@ static inline u8 first_antenna(u8 mask)void iwl_rs_rate_init (struct iwl_priv *priv,struct ieee80211_sta *sta,u8 sta_id); -/** +/* * iwl_rate_control_register - Register the rate control algorithm callbacks * * Since the rate control algorithm is hardware specific, there is no need
@@ -391,7 +391,7 @@ void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta,*/ int iwlagn_rate_control_register (void ); -/** +/* * iwl_rate_control_unregister - Unregister the rate control callbacks * * This should be called after calling ieee80211_unregister_hw, but before
drivers/net/wireless/intel/iwlwifi/dvm/tt.h +5 -4
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ /****************************************************************************** * -* Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved. +* Copyright(c) 2007 - 2014, 2023 Intel Corporation. All rights reserved. * * Portions of this file are derived from the ipw3945 project, as well * as portions of the ieee80211 subsystem header files.
@@ -72,14 +72,15 @@ struct iwl_tt_trans {* when thermal throttling state != IWL_TI_0 * the tt_power_mode should set to different * power mode based on the current tt state -* @tt_previous_temperature: last measured temperature -* @iwl_tt_restriction: ptr to restriction tbl, used by advance +* @tt_previous_temp: last measured temperature +* @restriction: ptr to restriction tbl, used by advance * thermal throttling to determine how many tx/rx streams * should be used in tt state; and can HT be enabled or not -* @iwl_tt_trans: ptr to adv trans table, used by advance thermal throttling +* @transaction: ptr to adv trans table, used by advance thermal throttling * state transaction * @ct_kill_toggle: used to toggle the CSR bit when checking uCode temperature * @ct_kill_exit_tm: timer to exit thermal kill +* @ct_kill_waiting_tm: timer to enter thermal kill */ struct iwl_tt_mgmt {enum iwl_tt_state state;
Signature · 1 line
2.38.1
PATCH 9/16 wifi: iwlwifi: pcie: fix kernel-doc issues
In reply to [email protected]From: Johannes Berg <[email protected]>
Fix various missing kernel-doc annotations etc.
--- .../wireless/intel/iwlwifi/pcie/internal.h | 51 +++++++++++++------ 1 file changed, 36 insertions(+), 15 deletions(-)
drivers/net/wireless/intel/iwlwifi/pcie/internal.h +36 -15
@@ -58,10 +58,7 @@ struct iwl_rx_mem_buffer {bool invalid; }; -/** -* struct isr_statistics - interrupt statistics -* -*/ +/* interrupt statistics */ struct isr_statistics {u32 hw;u32 sw;
@@ -127,6 +124,8 @@ struct iwl_rx_completion_desc_bz {* @used_bd_dma: physical address of buffer of used receive buffer descriptors (rbd) * @read: Shared index to newest available Rx buffer * @write: Shared index to oldest written Rx packet +* @write_actual: actual write pointer written to device, since we update in +* blocks of 8 only * @free_count: Number of pre-allocated buffers in rx_free * @used_count: Number of RBDs handled to allocator to use for allocation * @write_actual:
@@ -135,10 +134,12 @@ struct iwl_rx_completion_desc_bz {* @need_update: flag to indicate we need to update read/write index * @rb_stts: driver's pointer to receive buffer status * @rb_stts_dma: bus address of receive buffer status -* @lock: +* @lock: per-queue lock * @queue: actual rx queue. Not used for multi-rx queue. * @next_rb_is_fragment: indicates that the previous RB that we handled set * the fragmented flag, so the next one is still another fragment +* @napi: NAPI struct for this queue +* @queue_size: size of this queue * * NOTE: rx_free and rx_used are used as a FIFO for iwl_rx_mem_buffers */
@@ -188,7 +189,8 @@ struct iwl_rb_allocator {/** * iwl_get_closed_rb_stts - get closed rb stts from different structs -* @rxq - the rxq to get the rb stts from +* @trans: transport pointer (for configuration) +* @rxq: the rxq to get the rb stts from */ static inline __le16 iwl_get_closed_rb_stts (struct iwl_trans *trans,struct iwl_rxq *rxq)
@@ -243,6 +245,7 @@ enum iwl_image_response_code { IWL_IMAGE_RESP_FAIL = 2, }; +#ifdef CONFIG_IWLWIFI_DEBUGFS /** * struct cont_rec: continuous recording data structure * @prev_wr_ptr: the last address that was read in monitor_data
@@ -253,7 +256,6 @@ enum iwl_image_response_code {* in &iwl_fw_mon_dbgfs_state enum * @mutex: locked while reading from monitor_data debugfs file */ -#ifdef CONFIG_IWLWIFI_DEBUGFSstruct cont_rec {u32 prev_wr_ptr;u32 prev_wrap_cnt;
@@ -298,10 +300,6 @@ enum iwl_pcie_imr_status {* @prph_info_dma_addr: dma addr of prph info * @prph_scratch_dma_addr: dma addr of prph scratch * @ctxt_info_dma_addr: dma addr of context information -* @init_dram: DRAM data of firmware image (including paging). -* Context information addresses will be taken from here. -* This is driver's local copy for keeping track of size and -* count for allocating and freeing the memory. * @iml: image loader image virtual address * @iml_dma_addr: image loader image DMA address * @trans: pointer to the generic transport area
@@ -321,10 +319,9 @@ enum iwl_pcie_imr_status {* @rx_buf_bytes: RX buffer (RB) size in bytes * @reg_lock: protect hw register access * @mutex: to protect stop_device / start_fw / start_hw -* @cmd_in_flight: true when we have a host command in flight -#ifdef CONFIG_IWLWIFI_DEBUGFS * @fw_mon_data: fw continuous recording data -#endif +* @cmd_hold_nic_awake: indicates NIC is held awake for APMG workaround +* during commands in flight * @msix_entries: array of MSI-X entries * @msix_enabled: true if managed to enable MSI-X * @shared_vec_mask: the type of causes the shared vector handles
@@ -344,8 +341,32 @@ enum iwl_pcie_imr_status {* @alloc_page: allocated page to still use parts of * @alloc_page_used: how much of the allocated page was already used (bytes) * @imr_status: imr dma state machine -* @wait_queue_head_t: imr wait queue for dma completion +* @imr_waitq: imr wait queue for dma completion * @rf_name: name/version of the CRF, if any +* @use_ict: whether or not ICT (interrupt table) is used +* @ict_index: current ICT read index +* @ict_tbl: ICT table pointer +* @ict_tbl_dma: ICT table DMA address +* @inta_mask: interrupt (INT-A) mask +* @irq_lock: lock to synchronize IRQ handling +* @txq_memory: TXQ allocation array +* @sx_waitq: waitqueue for Sx transitions +* @sx_complete: completion for Sx transitions +* @pcie_dbg_dumped_once: indicates PCIe regs were dumped already +* @opmode_down: indicates opmode went away +* @num_rx_bufs: number of RX buffers to allocate/use +* @no_reclaim_cmds: special commands not using reclaim flow +* (firmware workaround) +* @n_no_reclaim_cmds: number of special commands not using reclaim flow +* @affinity_mask: IRQ affinity mask for each RX queue +* @debug_rfkill: RF-kill debugging state, -1 for unset, 0/1 for radio +* enable/disable +* @fw_reset_handshake: indicates FW reset handshake is needed +* @fw_reset_state: state of FW reset handshake +* @fw_reset_waitq: waitqueue for FW reset handshake +* @is_down: indicates the NIC is down +* @isr_stats: interrupt statistics +* @napi_dev: (fake) netdev for NAPI registration */ struct iwl_trans_pcie {struct iwl_rxq *rxq;
Signature · 1 line
2.38.1
PATCH 10/16 wifi: iwlwifi: mvm: fix kernel-doc
In reply to [email protected]From: Johannes Berg <[email protected]>
Fix kernel-doc, adding various documentation, but in some cases (notably rate scaling) just removing the erroneous comment format.
--- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 24 +++++++++++++++---- drivers/net/wireless/intel/iwlwifi/mvm/rs.h | 23 +++++++++--------- drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 5 ++-- .../wireless/intel/iwlwifi/mvm/time-event.h | 9 ++++--- 4 files changed, 40 insertions(+), 21 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +19 -5
@@ -127,9 +127,9 @@ struct iwl_mvm_time_event_data {/** * enum iwl_power_scheme -* @IWL_POWER_LEVEL_CAM - Continuously Active Mode -* @IWL_POWER_LEVEL_BPS - Balanced Power Save (default) -* @IWL_POWER_LEVEL_LP - Low Power +* @IWL_POWER_SCHEME_CAM: Continuously Active Mode +* @IWL_POWER_SCHEME_BPS: Balanced Power Save (default) +* @IWL_POWER_SCHEME_LP: Low Power */ enum iwl_power_scheme {IWL_POWER_SCHEME_CAM =1 ,
@@ -302,7 +302,11 @@ struct iwl_probe_resp_data {* @queue_params: QoS params for this MAC * @mgmt_queue: queue number for unbufferable management frames * @igtk: the current IGTK programmed into the firmware +* @active: indicates the link is active in FW (for sanity checking) +* @cab_queue: content-after-beacon (multicast) queue * @listen_lmac: indicates this link is allocated to the listen LMAC +* @mcast_sta: multicast station +* @phy_ctxt: phy context allocated to this link, if any */ struct iwl_mvm_vif_link_info {u8 bssid[ETH_ALEN ];
@@ -342,6 +346,7 @@ struct iwl_mvm_vif_link_info {/** * struct iwl_mvm_vif - data per Virtual Interface, it is a MAC context +* @mvm: pointer back to the mvm struct * @id: between 0 and 3 * @color: to solve races upon MAC addition and removal * @associated: indicates that we're currently associated, used only for
@@ -364,6 +369,13 @@ struct iwl_mvm_vif_link_info {* @csa_failed: CSA failed to schedule time event, report an error later * @csa_bcn_pending: indicates that we are waiting for a beacon on a new channel * @features: hw features active for this vif +* @ap_beacon_time: AP beacon time for synchronisation (on older FW) +* @bcn_prot: beacon protection data (keys; FIXME: needs to be per link) +* @bf_data: beacon filtering data +* @deflink: default link data for use in non-MLO +* @link: link data for each link in MLO +* @esr_active: indicates eSR mode is active +* @pm_enabled: indicates powersave is enabled */ struct iwl_mvm_vif {struct iwl_mvm *mvm;
@@ -689,15 +701,17 @@ __aligned(roundup_pow_of_two(sizeof(struct _iwl_mvm_reorder_buf_entry)))* struct iwl_mvm_baid_data - BA session data * @sta_mask: current station mask for the BAID * @tid: tid of the session -* @baid baid of the session +* @baid: baid of the session * @timeout: the timeout set in the addba request * @entries_per_queue: # of buffers per queue, this actually gets * aligned up to avoid cache line sharing between queues * @last_rx: last rx jiffies, updated only if timeout passed from last update * @session_timer: timer to check if BA session expired, runs at 2 * timeout +* @rcu_ptr: BA data RCU protected access +* @rcu_head: RCU head for freeing this data * @mvm: mvm pointer, needed for timer context * @reorder_buf: reorder buffer, allocated per queue -* @reorder_buf_data: data +* @entries: data */ struct iwl_mvm_baid_data {struct rcu_head rcu_head;
drivers/net/wireless/intel/iwlwifi/mvm/rs.h +12 -11
@@ -3,7 +3,7 @@* * Copyright(c) 2015 Intel Mobile Communications GmbH * Copyright(c) 2017 Intel Deutschland GmbH -* Copyright (C) 2003 - 2014, 2018 - 2022 Intel Corporation +* Copyright (C) 2003 - 2014, 2018 - 2023 Intel Corporation *****************************************************************************/ #ifndef __rs_h__
@@ -203,18 +203,12 @@ struct rs_rate {/** * struct iwl_lq_sta_rs_fw - rate and related statistics for RS in FW * @last_rate_n_flags: last rate reported by FW -* @max_agg_bufsize: the maximal size of the AGG buffer for this station -* @sta_id: the id of the station -#ifdef CONFIG_MAC80211_DEBUGFS -* @dbg_fixed_rate: for debug, use fixed rate if not 0 -* @dbg_agg_frame_count_lim: for debug, max number of frames in A-MPDU -#endif +* @pers.sta_id: the id of the station * @chains: bitmask of chains reported in %chain_signal * @chain_signal: per chain signal strength * @last_rssi: last rssi reported * @drv: pointer back to the driver data */ -struct iwl_lq_sta_rs_fw {/* last tx rate_n_flags */ u32 last_rate_n_flags;
@@ -223,7 +217,14 @@ struct iwl_lq_sta_rs_fw {struct lq_sta_pers_rs_fw {u32 sta_id;#ifdef CONFIG_MAC80211_DEBUGFS +/** +* @dbg_fixed_rate: for debug, use fixed rate if not 0 +*/ u32 dbg_fixed_rate; +/** +* @dbg_agg_frame_count_lim: for debug, max number of +* frames in A-MPDU +*/ u16 dbg_agg_frame_count_lim;#endif u8 chains;
@@ -233,7 +234,7 @@ struct iwl_lq_sta_rs_fw { } pers; }; -/** +/* * struct iwl_rate_scale_data -- tx success history for one rate */ struct iwl_rate_scale_data {
@@ -275,7 +276,7 @@ struct rs_rate_stats {u64 total; }; -/** +/* * struct iwl_scale_tbl_info -- tx params and success history for all rates * * There are two of these in struct iwl_lq_sta,
@@ -296,7 +297,7 @@ enum { RS_STATE_STAY_IN_COLUMN, }; -/** +/* * struct iwl_lq_sta -- driver's rate scaling private structure * * Pointer to this gets passed back and forth between driver and mac80211.
drivers/net/wireless/intel/iwlwifi/mvm/sta.h +3 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2012-2014, 2018-2022 Intel Corporation +* Copyright (C) 2012-2014, 2018-2023 Intel Corporation * Copyright (C) 2013-2014 Intel Mobile Communications GmbH * Copyright (C) 2015-2016 Intel Deutschland GmbH */
@@ -356,6 +356,7 @@ struct iwl_mvm_link_sta {/** * struct iwl_mvm_sta - representation of a station in the driver +* @vif: the interface the station belongs to * @tfd_queue_msk: the tfd queues used by the station * @mac_id_n_color: the MAC context this station is linked to * @tid_disable_agg: bitmap: if bit(tid) is set, the fw won't send ampdus for
@@ -380,6 +381,7 @@ struct iwl_mvm_link_sta {* @amsdu_enabled: bitmap of TX AMSDU allowed TIDs. * In case TLC offload is not active it is either 0xFFFF or 0. * @max_amsdu_len: max AMSDU length +* @sleeping: indicates the station is sleeping (when not offloaded to FW) * @agg_tids: bitmap of tids whose status is operational aggregated (IWL_AGG_ON) * @sleeping: sta sleep transitions in power management * @sleep_tx_count: the number of frames that we told the firmware to let out
@@ -389,7 +391,6 @@ struct iwl_mvm_link_sta {* the BA window. To be used for UAPSD only. * @ptk_pn: per-queue PTK PN data structures * @dup_data: per queue duplicate packet detection data -* @deferred_traffic_tid_map: indication bitmap of deferred traffic per-TID * @tx_ant: the index of the antenna to use for data tx to this station. Only * used during connection establishment (e.g. for the 4 way handshake * exchange).
drivers/net/wireless/intel/iwlwifi/mvm/time-event.h +6 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2012-2014, 2019-2020 Intel Corporation +* Copyright (C) 2012-2014, 2019-2020, 2023 Intel Corporation * Copyright (C) 2013-2014 Intel Mobile Communications GmbH */ #ifndef __time_event_h__
@@ -134,7 +134,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif);/** * iwl_mvm_remove_time_event - general function to clean up of time event * @mvm: the mvm component -* @vif: the vif to which the time event belongs +* @mvmvif: the vif to which the time event belongs * @te_data: the time event data that corresponds to that time event * * This function can be used to cancel a time event regardless its type.
@@ -195,7 +195,8 @@ iwl_mvm_te_scheduled(struct iwl_mvm_time_event_data *te_data)* iwl_mvm_schedule_session_protection - schedule a session protection * @mvm: the mvm component * @vif: the virtual interface for which the protection issued -* @duration: the duration of the protection +* @duration: the requested duration of the protection +* @min_duration: the minimum duration of the protection * @wait_for_notif: if true, will block until the start of the protection */ void iwl_mvm_schedule_session_protection(struct iwl_mvm *mvm,
@@ -205,6 +206,8 @@ void iwl_mvm_schedule_session_protection(struct iwl_mvm *mvm,/** * iwl_mvm_rx_session_protect_notif - handles %SESSION_PROTECTION_NOTIF +* @mvm: the mvm component +* @rxb: the RX buffer containing the notification */ void iwl_mvm_rx_session_protect_notif (struct iwl_mvm *mvm,struct iwl_rx_cmd_buffer *rxb);
Signature · 1 line
2.38.1
PATCH 11/16 wifi: iwlwifi: fw: reconstruct the API/CAPA enum number
In reply to [email protected]From: Johannes Berg <[email protected]>
The last member of the enum is meant to count the items, but sparse cannot increment the previous member due to its bitwise type. Declaring the last entry with a value doesn't work either (cannot mix bitwise/non-bitwise) and declaring it with a bitwise value doesn't work due to the way it gets used. This led to the current construct.
However, that construct the kernel-doc script doesn't understand this construct due to the use of #ifdef/#else.
Find another solution that makes both tools happy, we do now do declare it as the bitwise value but then just redefine it so that doesn't get used, all still under __CHECKER__ conditional.
--- drivers/net/wireless/intel/iwlwifi/fw/file.h | 27 +++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-)
drivers/net/wireless/intel/iwlwifi/fw/file.h +18 -9
@@ -281,12 +281,16 @@ enum iwl_ucode_tlv_api {IWL_UCODE_TLV_API_SCAN_EXT_CHAN_VER = (__force iwl_ucode_tlv_api_t )58 ,IWL_UCODE_TLV_API_BAND_IN_RX_DATA = (__force iwl_ucode_tlv_api_t )59 , - -#ifdef __CHECKER__ - /* sparse says it cannot increment the previous enum member */ -#define NUM_IWL_UCODE_TLV_API 128 -#else NUM_IWL_UCODE_TLV_API +/* +* This construction make both sparse (which cannot increment the previous +* member due to its bitwise type) and kernel-doc (which doesn't understand +* the ifdef/else properly) work. + */ +#ifdef __CHECKER__ +#define __CHECKER_NUM_IWL_UCODE_TLV_API 128 + = (__force iwl_ucode_tlv_api_t)__CHECKER_NUM_IWL_UCODE_TLV_API, +#define NUM_IWL_UCODE_TLV_API __CHECKER_NUM_IWL_UCODE_TLV_API#endif };
@@ -469,11 +473,16 @@ enum iwl_ucode_tlv_capa {IWL_UCODE_TLV_CAPA_STA_EXP_MFP_SUPPORT = (__force iwl_ucode_tlv_capa_t )114 ,IWL_UCODE_TLV_CAPA_SNIFF_VALIDATE_SUPPORT = (__force iwl_ucode_tlv_capa_t )116 , -#ifdef __CHECKER__ - /* sparse says it cannot increment the previous enum member */ -#define NUM_IWL_UCODE_TLV_CAPA 128 -#else NUM_IWL_UCODE_TLV_CAPA +/* +* This construction make both sparse (which cannot increment the previous +* member due to its bitwise type) and kernel-doc (which doesn't understand +* the ifdef/else properly) work. + */ +#ifdef __CHECKER__ +#define __CHECKER_NUM_IWL_UCODE_TLV_CAPA 128 + = (__force iwl_ucode_tlv_capa_t)__CHECKER_NUM_IWL_UCODE_TLV_CAPA, +#define NUM_IWL_UCODE_TLV_CAPA __CHECKER_NUM_IWL_UCODE_TLV_CAPA#endif };
Signature · 1 line
2.38.1
PATCH 12/16 wifi: iwlwifi: mvm: move RU alloc B2 placement
In reply to [email protected]From: Johannes Berg <[email protected]>
The firmware was trying to report the B2 RU allocation in the place previously used here as well, but there's a HW block that clears the lower 8 bits in this metadata word even in sniffer mode. Thus, firmware moved B2 to another place, follow that.
There's no need to detect the version since moving it to the other place if firmware didn't just means that we'll continue to report the (erroneous) zero value, and it's not really something we can detect from the firmware now.
While debugging this we realized that the comments about placement in the metadata dwords are wrong, update them.
--- drivers/net/wireless/intel/iwlwifi/fw/api/rx.h | 16 +++++++--------- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-)
drivers/net/wireless/intel/iwlwifi/fw/api/rx.h +7 -9
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2012-2014, 2018-2022 Intel Corporation +* Copyright (C) 2012-2014, 2018-2023 Intel Corporation * Copyright (C) 2013-2015 Intel Mobile Communications GmbH * Copyright (C) 2015-2017 Intel Deutschland GmbH */
@@ -371,7 +371,7 @@ enum iwl_rx_phy_eht_data1 { IWL_RX_PHY_DATA1_EHT_RU_ALLOC_B1_B7 = 0x0000fe00, }; -/* goes into Metadata DW 7 */ +/* goes into Metadata DW 7 (Qu) or 8 (So or higher) */ enum iwl_rx_phy_he_data2 {/* info type: HE MU-EXT */ /* the a1/a2/... is what the PHY/firmware calls the values */
@@ -387,7 +387,7 @@ enum iwl_rx_phy_he_data2 { IWL_RX_PHY_DATA2_HE_TB_EXT_SPTL_REUSE4 = 0x0000f000, }; -/* goes into Metadata DW 8 */ +/* goes into Metadata DW 8 (Qu) or 7 (So or higher) */ enum iwl_rx_phy_he_data3 {/* info type: HE MU-EXT */ IWL_RX_PHY_DATA3_HE_MU_EXT_CH1_RU1 =0x000000ff ,/* c1 */
@@ -408,10 +408,9 @@ enum iwl_rx_phy_he_he_data4 { IWL_RX_PHY_DATA4_HE_MU_EXT_PREAMBLE_PUNC_TYPE_MASK = 0x0600, }; -/* goes into Metadata DW 7 */ +/* goes into Metadata DW 8 (Qu has no EHT) */ enum iwl_rx_phy_eht_data2 {/* info type: EHT-MU-EXT */ -/* OFDM_RX_VECTOR_COMMON_RU_ALLOC_0_OUT */ IWL_RX_PHY_DATA2_EHT_MU_EXT_RU_ALLOC_A1 =0x000001ff ,IWL_RX_PHY_DATA2_EHT_MU_EXT_RU_ALLOC_A2 =0x0003fe00 ,IWL_RX_PHY_DATA2_EHT_MU_EXT_RU_ALLOC_B1 =0x07fc0000 ,
@@ -420,11 +419,10 @@ enum iwl_rx_phy_eht_data2 { IWL_RX_PHY_DATA2_EHT_TB_EXT_TRIG_SIGA1 = 0xffffffff, }; -/* goes into Metadata DW 8 */ +/* goes into Metadata DW 7 (Qu has no EHT) */ enum iwl_rx_phy_eht_data3 { +/* note: low 8 bits cannot be used */ /* info type: EHT-MU-EXT */ -/* OFDM_RX_VECTOR_COMMON_RU_ALLOC_1_OUT */ -IWL_RX_PHY_DATA3_EHT_MU_EXT_RU_ALLOC_B2 =0x000001ff ,IWL_RX_PHY_DATA3_EHT_MU_EXT_RU_ALLOC_C1 =0x0003fe00 ,IWL_RX_PHY_DATA3_EHT_MU_EXT_RU_ALLOC_C2 =0x07fc0000 , };
@@ -432,10 +430,10 @@ enum iwl_rx_phy_eht_data3 {/* goes into Metadata DW 4 */ enum iwl_rx_phy_eht_data4 {/* info type: EHT-MU-EXT */ -/* OFDM_RX_VECTOR_COMMON_RU_ALLOC_2_OUT */ IWL_RX_PHY_DATA4_EHT_MU_EXT_RU_ALLOC_D1 =0x000001ff ,IWL_RX_PHY_DATA4_EHT_MU_EXT_RU_ALLOC_D2 =0x0003fe00 ,IWL_RX_PHY_DATA4_EHT_MU_EXT_SIGB_MCS =0x000c0000 , +IWL_RX_PHY_DATA4_EHT_MU_EXT_RU_ALLOC_B2 =0x1ff00000 , };/* goes into Metadata DW 16 */
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +1 -1
@@ -1507,7 +1507,7 @@ static void iwl_mvm_decode_he_phy_data(struct iwl_mvm *mvm,#define IWL_RX_RU_DATA_A1 2#define IWL_RX_RU_DATA_A2 2#define IWL_RX_RU_DATA_B1 2 -#define IWL_RX_RU_DATA_B2 3 +#define IWL_RX_RU_DATA_B2 4#define IWL_RX_RU_DATA_C1 3#define IWL_RX_RU_DATA_C2 3#define IWL_RX_RU_DATA_D1 4
Signature · 1 line
2.38.1
PATCH 13/16 wifi: iwlwifi: mvm: check link more carefully
In reply to [email protected]From: Johannes Berg <[email protected]>
Some cases of restart crashing here have been reported, while we figure out where this is going wrong, check the link more carefully to avoid the crash.
--- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +2 -1
@@ -3883,7 +3883,8 @@ int iwl_mvm_mac_sta_state_common(struct ieee80211_hw *hw,/* this would be a mac80211 bug ... but don't crash */ for_each_sta_active_link (vif, sta, link_sta, link_id) { -if (WARN_ON_ONCE (!mvmvif->link[link_id]->phy_ctxt)) { +if (WARN_ON_ONCE (!mvmvif->link[link_id] || + !mvmvif->link[link_id]->phy_ctxt)) {mutex_unlock (&mvm->mutex);return test_bit (IWL_MVM_STATUS_HW_RESTART_REQUESTED , &mvm->status) ?0 : -EINVAL ;
Signature · 1 line
2.38.1
PATCH 14/16 wifi: iwlwifi: mvm: reduce maximum RX A-MPDU size
In reply to [email protected]From: Johannes Berg <[email protected]>
Since 1024 isn't being tested right now, allow only 512 for now.
--- drivers/net/wireless/intel/iwlwifi/fw/api/txq.h | 4 ++-- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/intel/iwlwifi/fw/api/txq.h +2 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2005-2014, 2019-2021 Intel Corporation +* Copyright (C) 2005-2014, 2019-2021, 2023 Intel Corporation * Copyright (C) 2013-2015 Intel Mobile Communications GmbH * Copyright (C) 2016-2017 Intel Deutschland GmbH */
@@ -76,7 +76,7 @@ enum iwl_tx_queue_cfg_actions { TX_QUEUE_CFG_TFD_SHORT_FORMAT = BIT(1), }; -#define IWL_DEFAULT_QUEUE_SIZE_EHT (1024 * 4) +#define IWL_DEFAULT_QUEUE_SIZE_EHT (512 * 4)#define IWL_DEFAULT_QUEUE_SIZE_HE 1024#define IWL_DEFAULT_QUEUE_SIZE 256#define IWL_MGMT_QUEUE_SIZE 16
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -1
@@ -1136,7 +1136,7 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,return NULL ;if (trans->trans_cfg->device_family >=IWL_DEVICE_FAMILY_BZ ) - max_agg =IEEE80211_MAX_AMPDU_BUF_EHT ; + max_agg =512 ;else max_agg =IEEE80211_MAX_AMPDU_BUF_HE ;
drivers/net/wireless/intel/iwlwifi/mvm/sta.c +1 -1
@@ -827,7 +827,7 @@ static int iwl_mvm_get_queue_size(struct ieee80211_sta *sta)if (!link)continue ; -/* support for 1k ba size */ +/* support for 512 ba size */ if (link->eht_cap.has_eht && max_size <IWL_DEFAULT_QUEUE_SIZE_EHT ) max_size =IWL_DEFAULT_QUEUE_SIZE_EHT ;
Signature · 1 line
2.38.1
PATCH 15/16 wifi: iwlwifi: pcie: fix RB status reading
In reply to [email protected]From: Johannes Berg <[email protected]>
On newer hardware, a queue's RB status / write pointer can be bigger than 4095 (0xFFF), so we cannot mask the value by 0xFFF unconditionally. Since anyway that's only necessary on older hardware, move the masking to the helper function and apply it only for older HW. This also moves the endian conversion in to handle it more easily.
--- drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 8 ++++---- drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 +- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 12 ++++-------- 3 files changed, 9 insertions(+), 13 deletions(-)
drivers/net/wireless/intel/iwlwifi/pcie/internal.h +4 -4
@@ -192,17 +192,17 @@ struct iwl_rb_allocator {* @trans: transport pointer (for configuration) * @rxq: the rxq to get the rb stts from */ -static inline __le16 iwl_get_closed_rb_stts (struct iwl_trans *trans, -struct iwl_rxq *rxq) +static inline u16 iwl_get_closed_rb_stts (struct iwl_trans *trans, +struct iwl_rxq *rxq) {if (trans->trans_cfg->device_family >=IWL_DEVICE_FAMILY_AX210 ) {__le16 *rb_stts = rxq->rb_stts; -return READ_ONCE (*rb_stts); +return le16_to_cpu (READ_ONCE (*rb_stts)); }else {struct iwl_rb_status *rb_stts = rxq->rb_stts; -return READ_ONCE (rb_stts->closed_rb_num); +return le16_to_cpu (READ_ONCE (rb_stts->closed_rb_num)) &0xFFF ; } }
drivers/net/wireless/intel/iwlwifi/pcie/rx.c +1 -1
@@ -1510,7 +1510,7 @@ static int iwl_pcie_rx_handle(struct iwl_trans *trans, int queue, int budget)spin_lock (&rxq->lock);/* uCode's read index (stored in shared DRAM) indicates the last Rx * buffer that the driver may process (last buffer filled by ucode). */ - r =le16_to_cpu (iwl_get_closed_rb_stts (trans, rxq)) &0x0FFF ; + r =iwl_get_closed_rb_stts (trans, rxq); i = rxq->read;/* W/A 9000 device step A0 wrap-around bug */
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +4 -8
@@ -2712,11 +2712,9 @@ static ssize_t iwl_dbgfs_rx_queue_read(struct file *file, pos +=scnprintf (buf + pos, bufsz - pos,"\tfree_count: %u\n" , rxq->free_count);if (rxq->rb_stts) { -u32 r =__le16_to_cpu (iwl_get_closed_rb_stts (trans, - rxq)); +u32 r =iwl_get_closed_rb_stts (trans, rxq); pos +=scnprintf (buf + pos, bufsz - pos, -"\tclosed_rb_num: %u\n" , - r &0x0FFF ); +"\tclosed_rb_num: %u\n" , r); }else { pos +=scnprintf (buf + pos, bufsz - pos,"\tclosed_rb_num: Not Allocated\n" );
@@ -3089,7 +3087,7 @@ static u32 iwl_trans_pcie_dump_rbs(struct iwl_trans *trans,spin_lock (&rxq->lock); - r =le16_to_cpu (iwl_get_closed_rb_stts (trans, rxq)) &0x0FFF ; + r =iwl_get_closed_rb_stts (trans, rxq); for (i = rxq->read, j = 0; i != r && j < allocated_rb_nums;
@@ -3385,9 +3383,7 @@ iwl_trans_pcie_dump_data(struct iwl_trans *trans,/* Dump RBs is supported only for pre-9000 devices (1 queue) */ struct iwl_rxq *rxq = &trans_pcie->rxq[0 ];/* RBs */ - num_rbs = -le16_to_cpu (iwl_get_closed_rb_stts (trans, rxq)) - &0x0FFF ; + num_rbs =iwl_get_closed_rb_stts (trans, rxq); num_rbs = (num_rbs - rxq->read) &RX_QUEUE_MASK ; len += num_rbs * (sizeof(*data) + sizeof(struct iwl_fw_error_dump_rb) +
Signature · 1 line
2.38.1
PATCH 16/16 wifi: iwlwifi: increase number of RX buffers for EHT devices
In reply to [email protected]From: Johannes Berg <[email protected]>
EHT devices can support 512 MPDUs in an A-MPDU, each of which might be an A-MSDU and thus further contain multiple MSDUs, which need their own buffer each. Increase the number of buffers to avoid running out in high-throughput scenarios.
--- drivers/net/wireless/intel/iwlwifi/cfg/bz.c | 10 ++++------ drivers/net/wireless/intel/iwlwifi/cfg/sc.c | 8 +++----- 2 files changed, 7 insertions(+), 11 deletions(-)
drivers/net/wireless/intel/iwlwifi/cfg/bz.c +4 -6
@@ -134,12 +134,10 @@ static const struct iwl_base_params iwl_bz_base_params = { .ht_params = &iwl_gl_a_ht_params/* -* If the device doesn't support HE, no need to have that many buffers. -* These sizes were picked according to 8 MSDUs inside 256 A-MSDUs in an +* This size was picked according to 8 MSDUs inside 512 A-MSDUs in an * A-MPDU, with additional overhead to account for processing time. */ -#define IWL_NUM_RBDS_NON_HE 512 -#define IWL_NUM_RBDS_BZ_HE 4096 +#define IWL_NUM_RBDS_BZ_EHT (512 * 16)const struct iwl_cfg_trans_params iwl_bz_trans_cfg = { .device_family =IWL_DEVICE_FAMILY_BZ ,
@@ -161,7 +159,7 @@ const struct iwl_cfg iwl_cfg_bz = { .uhb_supported = true,IWL_DEVICE_BZ , .features = IWL_TX_CSUM_NETIF_FLAGS_BZ | NETIF_F_RXCSUM, - .num_rbds = IWL_NUM_RBDS_BZ_HE, + .num_rbds = IWL_NUM_RBDS_BZ_EHT, }; const struct iwl_cfg iwl_cfg_gl = {
@@ -169,7 +167,7 @@ const struct iwl_cfg iwl_cfg_gl = { .uhb_supported = true,IWL_DEVICE_BZ , .features = IWL_TX_CSUM_NETIF_FLAGS_BZ | NETIF_F_RXCSUM, - .num_rbds = IWL_NUM_RBDS_BZ_HE, + .num_rbds = IWL_NUM_RBDS_BZ_EHT, };
drivers/net/wireless/intel/iwlwifi/cfg/sc.c +3 -5
@@ -127,12 +127,10 @@ static const struct iwl_base_params iwl_sc_base_params = { .ht_params = &iwl_22000_ht_params/* -* If the device doesn't support HE, no need to have that many buffers. -* These sizes were picked according to 8 MSDUs inside 256 A-MSDUs in an +* This size was picked according to 8 MSDUs inside 512 A-MSDUs in an * A-MPDU, with additional overhead to account for processing time. */ -#define IWL_NUM_RBDS_NON_HE 512 -#define IWL_NUM_RBDS_SC_HE 4096 +#define IWL_NUM_RBDS_SC_EHT (512 * 16)const struct iwl_cfg_trans_params iwl_sc_trans_cfg = { .device_family =IWL_DEVICE_FAMILY_SC ,
@@ -154,7 +152,7 @@ const struct iwl_cfg iwl_cfg_sc = { .uhb_supported = true,IWL_DEVICE_SC , .features = IWL_TX_CSUM_NETIF_FLAGS_BZ | NETIF_F_RXCSUM, - .num_rbds = IWL_NUM_RBDS_SC_HE, + .num_rbds = IWL_NUM_RBDS_SC_EHT, };MODULE_FIRMWARE (IWL_SC_A_FM_B_FW_MODULE_FIRMWARE (IWL_SC_UCODE_API_MAX ));
Signature · 1 line
2.38.1
Quoted 5 lines · On 8/30/23 01:30, [email protected] wrote:
From: Gregory Greenman <[email protected]>
Hi,
This patch set includes iwlwifi patches intended for v6.6.
From what I can tell, this series didn't get into 6.6. Is that expected?
Thanks,
Ben
Quoted 69 lines
The changes are:
* CSA support for MLD and a few CSA fixes
* kernel-doc fixes
* a fix forenable_inimodule parameter
* a few fixes and improvements in Rx path
* several other fixesThanks,
GregoryEmmanuel Grumbach (2):
wifi: iwlwifi: mvm: support CSA with MLD
wifi: iwlwifi: honor theenable_inivalueJohannes Berg (13):
wifi: iwlwifi: mvm: increase session protection after CSA
wifi: iwlwifi: mvm: disconnect long CSA only w/o alternative
wifi: iwlwifi: fix some kernel-doc issues
wifi: iwlwifi: queue: fix kernel-doc
wifi: iwlwifi: dvm: remove kernel-doc warnings
wifi: iwlwifi: pcie: fix kernel-doc issues
wifi: iwlwifi: mvm: fix kernel-doc
wifi: iwlwifi: fw: reconstruct the API/CAPA enum number
wifi: iwlwifi: mvm: move RU alloc B2 placement
wifi: iwlwifi: mvm: check link more carefully
wifi: iwlwifi: mvm: reduce maximum RX A-MPDU size
wifi: iwlwifi: pcie: fix RB status reading
wifi: iwlwifi: increase number of RX buffers for EHT devicesMiri Korenblit (1):
wifi: iwlwifi: don't use an uninitialized variabledrivers/net/wireless/intel/iwlwifi/cfg/bz.c | 10 ++-- drivers/net/wireless/intel/iwlwifi/cfg/sc.c | 8 +-- .../net/wireless/intel/iwlwifi/dvm/commands.h | 33 +++++++---- drivers/net/wireless/intel/iwlwifi/dvm/dev.h | 14 +++-- drivers/net/wireless/intel/iwlwifi/dvm/rs.h | 12 ++-- drivers/net/wireless/intel/iwlwifi/dvm/tt.h | 9 +-- .../wireless/intel/iwlwifi/fw/api/dbg-tlv.h | 1 + .../net/wireless/intel/iwlwifi/fw/api/rfi.h | 7 ++- .../net/wireless/intel/iwlwifi/fw/api/rx.h | 16 +++-- .../net/wireless/intel/iwlwifi/fw/api/txq.h | 4 +- drivers/net/wireless/intel/iwlwifi/fw/file.h | 27 ++++++--- .../wireless/intel/iwlwifi/fw/notif-wait.h | 3 +- .../net/wireless/intel/iwlwifi/iwl-config.h | 5 -- .../intel/iwlwifi/iwl-context-info-gen3.h | 4 +- .../net/wireless/intel/iwlwifi/iwl-dbg-tlv.h | 5 +- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 51 ++++++---------- drivers/net/wireless/intel/iwlwifi/iwl-drv.h | 2 +- .../wireless/intel/iwlwifi/iwl-eeprom-parse.h | 4 +- drivers/net/wireless/intel/iwlwifi/iwl-fh.h | 13 ++-- .../net/wireless/intel/iwlwifi/iwl-trans.h | 13 ++-- .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 4 +- .../net/wireless/intel/iwlwifi/mvm/mac80211.c | 13 ++-- .../wireless/intel/iwlwifi/mvm/mld-mac80211.c | 3 - drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 28 ++++++--- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/rs.h | 23 ++++---- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 5 +- .../wireless/intel/iwlwifi/mvm/time-event.h | 9 ++- .../wireless/intel/iwlwifi/pcie/internal.h | 59 +++++++++++++------ drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 +- .../net/wireless/intel/iwlwifi/pcie/trans.c | 12 ++-- drivers/net/wireless/intel/iwlwifi/queue/tx.h | 6 +- 34 files changed, 225 insertions(+), 186 deletions(-)
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 6 lines · Ben Greear
Quoted 3 lines · On 8/30/23 01:30, [email protected] wrote:
From: Gregory Greenman <[email protected]> Hi,
This patch set includes iwlwifi patches intended for v6.6.From what I can tell, this series didn't get into 6.6. Is that expected?
The merge window for v6.6 opened on Aug 27th and these patches were submitted on Aug 30th. The patches should be submitted well in advance before the merge window opens to make it to that release.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches