correction in pktlog service connect and pktlog enable command
cover correction in pktlog service connect and pktlog enable command
WCN3990 firmware supports htc pktlog service through which host driver gets pktlog information. Pktlog service should be connected before htc start command, hence pktlog connect is moved before htc start.
WCN3990 firwmare expects pdev_id along with filter and reserved params to enable pktlog htc service. So adding pdev_id in pktlog enable comamnd params.
Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1
Abhishek Ambure (2):
ath10k: move pktlog connect service before htc start
ath10k: correct wmi_tlv command params to enable pktlog for WCN3990
drivers/net/wireless/ath/ath10k/htc.c | 16 ++++++++-------- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.h | 1 + 3 files changed, 11 insertions(+), 8 deletions(-)
Signature · 7 lines
1.9.1 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
PATCH 1/2 ath10k: move pktlog connect service before htc start
WCN3990 supports HTC service for pktlog. PKTLOG service should be connected before HTC start. Hence move connect pktlog service before HTC start
Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1
--- drivers/net/wireless/ath/ath10k/htc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/net/wireless/ath/ath10k/htc.c +8 -8
@@ -893,6 +893,14 @@ int ath10k_htc_start(struct ath10k_htc *htc)int status =0 ;struct ath10k_htc_msg *msg; +if (ath10k_htc_pktlog_svc_supported (ar)) { + status =ath10k_htc_pktlog_connect (ar); +if (status) { +ath10k_err (ar,"failed to connect to pktlog: %d\n" , status); +return status; + } + } + skb =ath10k_htc_build_tx_ctrl_skb (htc->ar);if (!skb)return -ENOMEM ;
@@ -919,14 +927,6 @@ int ath10k_htc_start(struct ath10k_htc *htc)return status; } -if (ath10k_htc_pktlog_svc_supported (ar)) { - status =ath10k_htc_pktlog_connect (ar); -if (status) { -ath10k_err (ar,"failed to connect to pktlog: %d\n" , status); -return status; - } - } -return 0 ; }
Signature · 7 lines
1.9.1 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
PATCH 2/2 ath10k: correct wmi_tlv command params to enable pktlog for WCN3990
In reply to Abhishek AmburePKT log enable command expects pdev id in enable params which is missing in current configuration. Fill pdev id in pkt log enable wmi command for correct configuration.
Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1
--- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.h | 1 + 2 files changed, 3 insertions(+)
drivers/net/wireless/ath/ath10k/wmi-tlv.c +2 -0
@@ -2981,6 +2981,8 @@ static void *ath10k_wmi_tlv_put_wmm(void *ptr, tlv->len =__cpu_to_le16 (sizeof (*cmd)); cmd = (void *)tlv->value; cmd->filter =__cpu_to_le32 (filter); + cmd->pdev_id =__cpu_to_le32 (0 ); + cmd->reserved =__cpu_to_le32 (0 ); ptr +=sizeof (*tlv); ptr +=sizeof (*cmd);
drivers/net/wireless/ath/ath10k/wmi-tlv.h +1 -0
@@ -1923,6 +1923,7 @@ struct wmi_tlv_vdev_stats { } __packed;struct wmi_tlv_pktlog_enable { +__le32 pdev_id;__le32 reserved;__le32 filter; } __packed;
Signature · 7 lines
1.9.1 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Re: [PATCH 2/2] ath10k: correct wmi_tlv command params to enable pktlog for WCN3990
Quoted 10 lines · Abhishek Ambure
PKT log enable command expects pdev id in enable params which is missing in current configuration. Fill pdev id in pkt log enable wmi command for correct configuration.
Fixes ca996ec56608 ("ath10k: implement wmi-tlv backend")Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1Signed-off-by Abhishek Ambure <[email protected]>Signed-off-by Kalle Valo <[email protected]>
How do I know this doesn't break QCA6174/QCA9377?
Signature · 9 lines
https://patchwork.kernel.org/patch/10947635/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Re: [PATCH 2/2] ath10k: correct wmi_tlv command params to enable pktlog for WCN3990
Quoted 6 lines · Kalle Valo
Quoted 4 lines · Abhishek Ambure
PKT log enable command expects pdev id in enable params which is missing in current configuration. Fill pdev id in pkt log enable wmi command for correct configuration.
Quoted 8 lines
Quoted 6 lines
Fixes ca996ec56608 ("ath10k: implement wmi-tlv backend")Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1Signed-off-by Abhishek Ambure <[email protected]>Signed-off-by Kalle Valo <[email protected]>How do I know this doesn't break QCA6174/QCA9377?
Abhishek mentioned me privately that he is checking this.
Signature · 6 lines
Kalle Valo _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Re: [PATCH 2/2] ath10k: correct wmi_tlv command params to enable pktlog for WCN3990
In reply to Abhishek AmbureQuoted 10 lines · Abhishek Ambure
PKT log enable command expects pdev id in enable params which is missing in current configuration. Fill pdev id in pkt log enable wmi command for correct configuration.
Fixes ca996ec56608 ("ath10k: implement wmi-tlv backend")Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1Signed-off-by Abhishek Ambure <[email protected]>Signed-off-by Kalle Valo <[email protected]>
How do I know this doesn't break QCA6174/QCA9377?
Signature · 3 lines
https://patchwork.kernel.org/patch/10947635/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches