ath10k: Enable Factory Test Mode for WCN3990
Subsystems (2)
PATCH 1/1 ath10k: Enable Factory Test Mode for WCN3990
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.
--- drivers/net/wireless/ath/ath10k/ahb.c | 3 ++- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/hif.h | 7 ++++--- drivers/net/wireless/ath/ath10k/mac.c | 2 +- drivers/net/wireless/ath/ath10k/pci.c | 3 ++- drivers/net/wireless/ath/ath10k/sdio.c | 3 ++- drivers/net/wireless/ath/ath10k/snoc.c | 20 ++++++++++++++++---- drivers/net/wireless/ath/ath10k/testmode.c | 2 +- drivers/net/wireless/ath/ath10k/usb.c | 3 ++- 9 files changed, 31 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath10k/ahb.c +2 -1
@@ -661,7 +661,8 @@ static void ath10k_ahb_hif_stop(struct ath10k *ar)napi_disable (&ar->napi); } -static int ath10k_ahb_hif_power_up (struct ath10k *ar) +static int ath10k_ahb_hif_power_up (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) {int ret;
drivers/net/wireless/ath/ath10k/core.c +1 -1
@@ -2515,7 +2515,7 @@ static int ath10k_core_probe_fw(struct ath10k *ar)struct bmi_target_info target_info;int ret =0 ; - ret =ath10k_hif_power_up (ar); + ret =ath10k_hif_power_up (ar,ATH10K_FIRMWARE_MODE_NORMAL );if (ret) {ath10k_err (ar,"could not power on hif bus (%d)\n" , ret);return ret;
drivers/net/wireless/ath/ath10k/hif.h +4 -3
@@ -81,7 +81,7 @@ struct ath10k_hif_ops {void (*write32)(struct ath10k *ar,u32 address,u32 value);/* Power up the device and enter BMI transfer mode for FW download */ -int (*power_up)(struct ath10k *ar); +int (*power_up)(struct ath10k *ar,enum ath10k_firmware_mode fw_mode);/* Power down the device and free up resources. stop() must be called * before this if start() was called earlier
@@ -165,9 +165,10 @@ static inline u16 ath10k_hif_get_free_queue_number(struct ath10k *ar,return ar->hif.ops->get_free_queue_number (ar, pipe_id); } -static inline int ath10k_hif_power_up (struct ath10k *ar) +static inline int ath10k_hif_power_up (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) { -return ar->hif.ops->power_up (ar); +return ar->hif.ops->power_up (ar, fw_mode); }static inline void ath10k_hif_power_down (struct ath10k *ar)
drivers/net/wireless/ath/ath10k/mac.c +1 -1
@@ -4654,7 +4654,7 @@ static int ath10k_start(struct ieee80211_hw *hw) goto err; } - ret =ath10k_hif_power_up (ar); + ret =ath10k_hif_power_up (ar,ATH10K_FIRMWARE_MODE_NORMAL );if (ret) {ath10k_err (ar,"Could not init hif: %d\n" , ret); goto err_off;
drivers/net/wireless/ath/ath10k/pci.c +2 -1
@@ -2789,7 +2789,8 @@ static int ath10k_pci_chip_reset(struct ath10k *ar)return ar_pci->pci_hard_reset (ar); } -static int ath10k_pci_hif_power_up (struct ath10k *ar) +static int ath10k_pci_hif_power_up (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) {struct ath10k_pci *ar_pci =ath10k_pci_priv (ar);int ret;
drivers/net/wireless/ath/ath10k/sdio.c +2 -1
@@ -1381,7 +1381,8 @@ static int ath10k_sdio_hif_disable_intrs(struct ath10k *ar)return ret; } -static int ath10k_sdio_hif_power_up (struct ath10k *ar) +static int ath10k_sdio_hif_power_up (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) {struct ath10k_sdio *ar_sdio =ath10k_sdio_priv (ar);struct sdio_func *func = ar_sdio->func;
drivers/net/wireless/ath/ath10k/snoc.c +16 -4
@@ -942,7 +942,8 @@ static int ath10k_snoc_init_pipes(struct ath10k *ar)return 0 ; } -static int ath10k_snoc_wlan_enable (struct ath10k *ar) +static int ath10k_snoc_wlan_enable (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) {struct ath10k_tgt_pipe_cfg tgt_cfg[CE_COUNT_MAX ];struct ath10k_qmi_wlan_enable_cfg cfg;
@@ -976,7 +977,17 @@ static int ath10k_snoc_wlan_enable(struct ath10k *ar) cfg.shadow_reg_cfg = (struct ath10k_shadow_reg_cfg *) &target_shadow_reg_cfg_map; - mode =QMI_WLFW_MISSION_V01 ; +switch (fw_mode) { +case ATH10K_FIRMWARE_MODE_NORMAL : + mode =QMI_WLFW_MISSION_V01 ; +break ; +case ATH10K_FIRMWARE_MODE_UTF : + mode =QMI_WLFW_FTM_V01 ; +break ; +default : +ath10k_err (ar,"invalid firmware mode %d\n" , fw_mode); +return -EINVAL ; + }return ath10k_qmi_wlan_enable (ar, &cfg, mode,NULL );
@@ -995,14 +1006,15 @@ static void ath10k_snoc_hif_power_down(struct ath10k *ar)ath10k_ce_free_rri (ar); } -static int ath10k_snoc_hif_power_up (struct ath10k *ar) +static int ath10k_snoc_hif_power_up (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) {int ret;ath10k_dbg (ar,ATH10K_DBG_SNOC ,"%s:WCN3990 driver state = %d\n" , __func__, ar->state); - ret =ath10k_snoc_wlan_enable (ar); + ret =ath10k_snoc_wlan_enable (ar, fw_mode);if (ret) {ath10k_err (ar,"failed to enable wcn3990: %d\n" , ret);return ret;
drivers/net/wireless/ath/ath10k/testmode.c +1 -1
@@ -270,7 +270,7 @@ static int ath10k_tm_cmd_utf_start(struct ath10k *ar, struct nlattr *tb[])ath10k_dbg (ar,ATH10K_DBG_TESTMODE ,"testmode wmi version %d\n" , ar->testmode.utf_mode_fw.fw_file.wmi_op_version); - ret =ath10k_hif_power_up (ar); + ret =ath10k_hif_power_up (ar,ATH10K_FIRMWARE_MODE_UTF );if (ret) {ath10k_err (ar,"failed to power up hif (testmode): %d\n" , ret); ar->state =ATH10K_STATE_OFF ;
drivers/net/wireless/ath/ath10k/usb.c +2 -1
@@ -706,7 +706,8 @@ static void ath10k_usb_hif_send_complete_check(struct ath10k *ar, { } -static int ath10k_usb_hif_power_up (struct ath10k *ar) +static int ath10k_usb_hif_power_up (struct ath10k *ar, +enum ath10k_firmware_mode fw_mode) {return 0 ; }
Signature · 7 lines
2.7.4 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 15 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>
Quoted 11 lines
--- drivers/net/wireless/ath/ath10k/ahb.c | 3 ++- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/hif.h | 7 ++++--- drivers/net/wireless/ath/ath10k/mac.c | 2 +- drivers/net/wireless/ath/ath10k/pci.c | 3 ++- drivers/net/wireless/ath/ath10k/sdio.c | 3 ++- drivers/net/wireless/ath/ath10k/snoc.c | 20 ++++++++++++++++---- drivers/net/wireless/ath/ath10k/testmode.c | 2 +- drivers/net/wireless/ath/ath10k/usb.c | 3 ++- 9 files changed, 31 insertions(+), 14 deletions(-)
What ever happened here? I'm told this is useful, but I see no comments and it's marked Deferred in patchwork:
https://patchwork.kernel.org/patch/10579559/
FWIW, it looks OK to me:
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 28 lines · Brian Norris
Quoted 15 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>Quoted 11 lines
--- drivers/net/wireless/ath/ath10k/ahb.c | 3 ++- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/hif.h | 7 ++++--- drivers/net/wireless/ath/ath10k/mac.c | 2 +- drivers/net/wireless/ath/ath10k/pci.c | 3 ++- drivers/net/wireless/ath/ath10k/sdio.c | 3 ++- drivers/net/wireless/ath/ath10k/snoc.c | 20 ++++++++++++++++---- drivers/net/wireless/ath/ath10k/testmode.c | 2 +- drivers/net/wireless/ath/ath10k/usb.c | 3 ++- 9 files changed, 31 insertions(+), 14 deletions(-)
Quoted 4 lines
What ever happened here? I'm told this is useful, but I see no comments and it's marked Deferred in patchwork:
Not sure, I guess it just got accidentally hidden with other patches. It's in new state now.
Quoted 3 lines
FWIW, it looks OK to me:
Reviewed-by Brian Norris <[email protected]>
Thanks!
Signature · 6 lines
Kalle Valo _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 11 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Quoted 6 lines
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>Reviewed-by Brian Norris <[email protected]>Signed-off-by Kalle Valo <[email protected]>
I was able to apply with 3-way merge but please double check the results:
Applying: ath10k: Enable Factory Test Mode for WCN3990 Using index info to reconstruct a base tree...
M drivers/net/wireless/ath/ath10k/ahb.c M drivers/net/wireless/ath/ath10k/core.c M drivers/net/wireless/ath/ath10k/hif.h M drivers/net/wireless/ath/ath10k/mac.c M drivers/net/wireless/ath/ath10k/pci.c M drivers/net/wireless/ath/ath10k/sdio.c M drivers/net/wireless/ath/ath10k/snoc.c M drivers/net/wireless/ath/ath10k/usb.c
Falling back to patching base and 3-way merge... Auto-merging drivers/net/wireless/ath/ath10k/usb.c Auto-merging drivers/net/wireless/ath/ath10k/snoc.c Auto-merging drivers/net/wireless/ath/ath10k/sdio.c Auto-merging drivers/net/wireless/ath/ath10k/pci.c Auto-merging drivers/net/wireless/ath/ath10k/mac.c Auto-merging drivers/net/wireless/ath/ath10k/hif.h Auto-merging drivers/net/wireless/ath/ath10k/core.c Auto-merging drivers/net/wireless/ath/ath10k/ahb.c
Signature · 9 lines
https://patchwork.kernel.org/patch/10579559/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 11 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Quoted 6 lines
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>Reviewed-by Brian Norris <[email protected]>Signed-off-by Kalle Valo <[email protected]>
I was able to apply with 3-way merge but please double check the results:
Applying: ath10k: Enable Factory Test Mode for WCN3990 Using index info to reconstruct a base tree...
M drivers/net/wireless/ath/ath10k/ahb.c M drivers/net/wireless/ath/ath10k/core.c M drivers/net/wireless/ath/ath10k/hif.h M drivers/net/wireless/ath/ath10k/mac.c M drivers/net/wireless/ath/ath10k/pci.c M drivers/net/wireless/ath/ath10k/sdio.c M drivers/net/wireless/ath/ath10k/snoc.c M drivers/net/wireless/ath/ath10k/usb.c
Falling back to patching base and 3-way merge... Auto-merging drivers/net/wireless/ath/ath10k/usb.c Auto-merging drivers/net/wireless/ath/ath10k/snoc.c Auto-merging drivers/net/wireless/ath/ath10k/sdio.c Auto-merging drivers/net/wireless/ath/ath10k/pci.c Auto-merging drivers/net/wireless/ath/ath10k/mac.c Auto-merging drivers/net/wireless/ath/ath10k/hif.h Auto-merging drivers/net/wireless/ath/ath10k/core.c Auto-merging drivers/net/wireless/ath/ath10k/ahb.c
Signature · 3 lines
https://patchwork.kernel.org/patch/10579559/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Kalle,
I have checked the patch, and it is fine.
Thanks,
Rakesh Pillai.
Quoted 34 lines · Kalle Valo
Quoted 11 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Quoted 6 lines
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>Reviewed-by Brian Norris <[email protected]>Signed-off-by Kalle Valo <[email protected]>I was able to apply with 3-way merge but please double check the results:
Applying: ath10k: Enable Factory Test Mode for WCN3990 Using index info to reconstruct a base tree...
M drivers/net/wireless/ath/ath10k/ahb.c M drivers/net/wireless/ath/ath10k/core.c M drivers/net/wireless/ath/ath10k/hif.h M drivers/net/wireless/ath/ath10k/mac.c M drivers/net/wireless/ath/ath10k/pci.c M drivers/net/wireless/ath/ath10k/sdio.c M drivers/net/wireless/ath/ath10k/snoc.c M drivers/net/wireless/ath/ath10k/usb.c
Quoted 9 lines
Falling back to patching base and 3-way merge... Auto-merging
drivers/net/wireless/ath/ath10k/usb.cAuto-mergingdrivers/net/wireless/ath/ath10k/snoc.cAuto-mergingdrivers/net/wireless/ath/ath10k/sdio.cAuto-mergingdrivers/net/wireless/ath/ath10k/pci.cAuto-mergingdrivers/net/wireless/ath/ath10k/mac.cAuto-mergingdrivers/net/wireless/ath/ath10k/hif.hAuto-mergingdrivers/net/wireless/ath/ath10k/core.cAuto-mergingdrivers/net/wireless/ath/ath10k/ahb.c
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 11 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Quoted 6 lines
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>Reviewed-by Brian Norris <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3c545a25939c ath10k: enable Factory Test Mode for WCN3990
Signature · 3 lines
https://patchwork.kernel.org/patch/10579559/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 11 lines · Rakesh Pillai
The support to put WCN3990 firmware into Factory test mode is not present currently. The WCN3990 firmware can operate in Factory test mode based on the mode it receives in the wlan enable message from the host driver.
When the host driver is started in testmode send the operating mode as UTF mode, to the WCN3990 firmware, in the wlan enable message to start the firmware in Factory test mode.
Quoted 6 lines
Tested on: WCN3990
Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1.Signed-off-by Rakesh Pillai <[email protected]>Reviewed-by Brian Norris <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3c545a25939c ath10k: enable Factory Test Mode for WCN3990
Signature · 9 lines
https://patchwork.kernel.org/patch/10579559/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k