All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ath11k: ignore event 0x6017
@ 2019-07-18  5:49 John Crispin
  2019-07-18  5:49 ` [PATCH 2/2] ath11k: convert message from info to dbg John Crispin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Crispin @ 2019-07-18  5:49 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Shashidhar Lakkavalli, ath11k, John Crispin

Everytime a new peer gets associated, we see the following message in the log
- ath11k c000000.wifi1: Unknown eventid: 0x6017
Ignore this event for now. We probably need to handle the event properly when
we add OMI support.

Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
---
 drivers/net/wireless/ath/ath11k/wmi.c |  1 +
 drivers/net/wireless/ath/ath11k/wmi.h | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
index cba9f3a9ebfd..4ec6f5d50459 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.c
+++ b/drivers/net/wireless/ath/ath11k/wmi.c
@@ -5591,6 +5591,7 @@ static void ath11k_wmi_tlv_op_rx(struct ath11k_base *ab, struct sk_buff *skb)
 	/* add Unsupported events here */
 	case WMI_TBTTOFFSET_EXT_UPDATE_EVENTID:
 	case WMI_VDEV_DELETE_RESP_EVENTID:
+	case WMI_PEER_OPER_MODE_CHANGE_EVENTID:
 		ath11k_dbg(ab, ATH11K_DBG_WMI,
 			   "ignoring unsupported event 0x%x\n", id);
 		break;
diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h
index 7d933eafd3cd..364b44080493 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.h
+++ b/drivers/net/wireless/ath/ath11k/wmi.h
@@ -288,7 +288,6 @@ enum wmi_tlv_cmd_id {
 	WMI_PEER_REORDER_QUEUE_REMOVE_CMDID,
 	WMI_PEER_SET_RX_BLOCKSIZE_CMDID,
 	WMI_PEER_ANTDIV_INFO_REQ_CMDID,
-	WMI_PEER_OPER_MODE_CHANGE_EVENTID,
 	WMI_BCN_TX_CMDID = WMI_TLV_CMD(WMI_GRP_MGMT),
 	WMI_PDEV_SEND_BCN_CMDID,
 	WMI_BCN_TMPL_CMDID,
@@ -586,6 +585,18 @@ enum wmi_tlv_event_id {
 	WMI_WDS_PEER_EVENTID,
 	WMI_PEER_STA_PS_STATECHG_EVENTID,
 	WMI_PEER_ANTDIV_INFO_EVENTID,
+	WMI_PEER_RESERVED0_EVENTID,
+	WMI_PEER_RESERVED1_EVENTID,
+	WMI_PEER_RESERVED2_EVENTID,
+	WMI_PEER_RESERVED3_EVENTID,
+	WMI_PEER_RESERVED4_EVENTID,
+	WMI_PEER_RESERVED5_EVENTID,
+	WMI_PEER_RESERVED6_EVENTID,
+	WMI_PEER_RESERVED7_EVENTID,
+	WMI_PEER_RESERVED8_EVENTID,
+	WMI_PEER_RESERVED9_EVENTID,
+	WMI_PEER_RESERVED10_EVENTID,
+	WMI_PEER_OPER_MODE_CHANGE_EVENTID,
 	WMI_MGMT_RX_EVENTID = WMI_TLV_CMD(WMI_GRP_MGMT),
 	WMI_HOST_SWBA_EVENTID,
 	WMI_TBTTOFFSET_UPDATE_EVENTID,
-- 
2.20.1


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ath11k: convert message from info to dbg
  2019-07-18  5:49 [PATCH 1/2] ath11k: ignore event 0x6017 John Crispin
@ 2019-07-18  5:49 ` John Crispin
  2019-07-18 11:40 ` [PATCH 1/2] ath11k: ignore event 0x6017 Kalle Valo
  2019-08-09  6:56 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: John Crispin @ 2019-07-18  5:49 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Shashidhar Lakkavalli, ath11k, John Crispin

We can regularly see the following message.
- "ath11k c000000.wifi1: failed to find the peer with peer_id 4"
This happens when the FW starts sending stats for the peer whilst the
peer is not fully associated. Convert this info message to a debug one.

Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
---
 drivers/net/wireless/ath/ath11k/dp_rx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index dcbc46b52493..e43fb38d5b6c 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -2632,7 +2632,8 @@ int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id,
 		peer = ath11k_peer_find_by_id(ab, ppdu_info.peer_id);
 
 		if (!peer || !peer->sta) {
-			ath11k_warn(ab, "failed to find the peer with peer_id %d\n",
+			ath11k_dbg(ab, ATH11K_DBG_DATA,
+				    "failed to find the peer with peer_id %d\n",
 				    ppdu_info.peer_id);
 			spin_unlock_bh(&ab->base_lock);
 			rcu_read_unlock();
-- 
2.20.1


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ath11k: ignore event 0x6017
  2019-07-18  5:49 [PATCH 1/2] ath11k: ignore event 0x6017 John Crispin
  2019-07-18  5:49 ` [PATCH 2/2] ath11k: convert message from info to dbg John Crispin
@ 2019-07-18 11:40 ` Kalle Valo
  2019-07-31 14:55   ` Kalle Valo
  2019-08-09  6:56 ` Kalle Valo
  2 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2019-07-18 11:40 UTC (permalink / raw)
  To: John Crispin; +Cc: ath11k, Shashidhar Lakkavalli

John Crispin <john@phrozen.org> writes:

> Everytime a new peer gets associated, we see the following message in the log
> - ath11k c000000.wifi1: Unknown eventid: 0x6017
> Ignore this event for now. We probably need to handle the event properly when
> we add OMI support.
>
> Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
> Signed-off-by: John Crispin <john@phrozen.org>
> ---
>  drivers/net/wireless/ath/ath11k/wmi.c |  1 +
>  drivers/net/wireless/ath/ath11k/wmi.h | 13 ++++++++++++-
>  2 files changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
> index cba9f3a9ebfd..4ec6f5d50459 100644
> --- a/drivers/net/wireless/ath/ath11k/wmi.c
> +++ b/drivers/net/wireless/ath/ath11k/wmi.c
> @@ -5591,6 +5591,7 @@ static void ath11k_wmi_tlv_op_rx(struct ath11k_base *ab, struct sk_buff *skb)
>  	/* add Unsupported events here */
>  	case WMI_TBTTOFFSET_EXT_UPDATE_EVENTID:
>  	case WMI_VDEV_DELETE_RESP_EVENTID:
> +	case WMI_PEER_OPER_MODE_CHANGE_EVENTID:
>  		ath11k_dbg(ab, ATH11K_DBG_WMI,
>  			   "ignoring unsupported event 0x%x\n", id);
>  		break;
> diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h
> index 7d933eafd3cd..364b44080493 100644
> --- a/drivers/net/wireless/ath/ath11k/wmi.h
> +++ b/drivers/net/wireless/ath/ath11k/wmi.h
> @@ -288,7 +288,6 @@ enum wmi_tlv_cmd_id {
>  	WMI_PEER_REORDER_QUEUE_REMOVE_CMDID,
>  	WMI_PEER_SET_RX_BLOCKSIZE_CMDID,
>  	WMI_PEER_ANTDIV_INFO_REQ_CMDID,
> -	WMI_PEER_OPER_MODE_CHANGE_EVENTID,
>  	WMI_BCN_TX_CMDID = WMI_TLV_CMD(WMI_GRP_MGMT),
>  	WMI_PDEV_SEND_BCN_CMDID,
>  	WMI_BCN_TMPL_CMDID,
> @@ -586,6 +585,18 @@ enum wmi_tlv_event_id {
>  	WMI_WDS_PEER_EVENTID,
>  	WMI_PEER_STA_PS_STATECHG_EVENTID,
>  	WMI_PEER_ANTDIV_INFO_EVENTID,
> +	WMI_PEER_RESERVED0_EVENTID,
> +	WMI_PEER_RESERVED1_EVENTID,
> +	WMI_PEER_RESERVED2_EVENTID,
> +	WMI_PEER_RESERVED3_EVENTID,
> +	WMI_PEER_RESERVED4_EVENTID,
> +	WMI_PEER_RESERVED5_EVENTID,
> +	WMI_PEER_RESERVED6_EVENTID,
> +	WMI_PEER_RESERVED7_EVENTID,
> +	WMI_PEER_RESERVED8_EVENTID,
> +	WMI_PEER_RESERVED9_EVENTID,
> +	WMI_PEER_RESERVED10_EVENTID,
> +	WMI_PEER_OPER_MODE_CHANGE_EVENTID,

Why all these reserved ids, is it like that also in official WMI header
definitions? Can someone from Qualcomm check this and add proper names
for the ids?

-- 
Kalle Valo

_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ath11k: ignore event 0x6017
  2019-07-18 11:40 ` [PATCH 1/2] ath11k: ignore event 0x6017 Kalle Valo
@ 2019-07-31 14:55   ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-07-31 14:55 UTC (permalink / raw)
  To: John Crispin; +Cc: ath11k, Shashidhar Lakkavalli

Kalle Valo <kvalo@codeaurora.org> writes:

> John Crispin <john@phrozen.org> writes:
>
>> Everytime a new peer gets associated, we see the following message in the log
>> - ath11k c000000.wifi1: Unknown eventid: 0x6017
>> Ignore this event for now. We probably need to handle the event properly when
>> we add OMI support.
>>
>> Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
>> Signed-off-by: John Crispin <john@phrozen.org>
>> ---
>>  drivers/net/wireless/ath/ath11k/wmi.c |  1 +
>>  drivers/net/wireless/ath/ath11k/wmi.h | 13 ++++++++++++-
>>  2 files changed, 13 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
>> index cba9f3a9ebfd..4ec6f5d50459 100644
>> --- a/drivers/net/wireless/ath/ath11k/wmi.c
>> +++ b/drivers/net/wireless/ath/ath11k/wmi.c
>> @@ -5591,6 +5591,7 @@ static void ath11k_wmi_tlv_op_rx(struct ath11k_base *ab, struct sk_buff *skb)
>>  	/* add Unsupported events here */
>>  	case WMI_TBTTOFFSET_EXT_UPDATE_EVENTID:
>>  	case WMI_VDEV_DELETE_RESP_EVENTID:
>> +	case WMI_PEER_OPER_MODE_CHANGE_EVENTID:
>>  		ath11k_dbg(ab, ATH11K_DBG_WMI,
>>  			   "ignoring unsupported event 0x%x\n", id);
>>  		break;
>> diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h
>> index 7d933eafd3cd..364b44080493 100644
>> --- a/drivers/net/wireless/ath/ath11k/wmi.h
>> +++ b/drivers/net/wireless/ath/ath11k/wmi.h
>> @@ -288,7 +288,6 @@ enum wmi_tlv_cmd_id {
>>  	WMI_PEER_REORDER_QUEUE_REMOVE_CMDID,
>>  	WMI_PEER_SET_RX_BLOCKSIZE_CMDID,
>>  	WMI_PEER_ANTDIV_INFO_REQ_CMDID,
>> -	WMI_PEER_OPER_MODE_CHANGE_EVENTID,
>>  	WMI_BCN_TX_CMDID = WMI_TLV_CMD(WMI_GRP_MGMT),
>>  	WMI_PDEV_SEND_BCN_CMDID,
>>  	WMI_BCN_TMPL_CMDID,
>> @@ -586,6 +585,18 @@ enum wmi_tlv_event_id {
>>  	WMI_WDS_PEER_EVENTID,
>>  	WMI_PEER_STA_PS_STATECHG_EVENTID,
>>  	WMI_PEER_ANTDIV_INFO_EVENTID,
>> +	WMI_PEER_RESERVED0_EVENTID,
>> +	WMI_PEER_RESERVED1_EVENTID,
>> +	WMI_PEER_RESERVED2_EVENTID,
>> +	WMI_PEER_RESERVED3_EVENTID,
>> +	WMI_PEER_RESERVED4_EVENTID,
>> +	WMI_PEER_RESERVED5_EVENTID,
>> +	WMI_PEER_RESERVED6_EVENTID,
>> +	WMI_PEER_RESERVED7_EVENTID,
>> +	WMI_PEER_RESERVED8_EVENTID,
>> +	WMI_PEER_RESERVED9_EVENTID,
>> +	WMI_PEER_RESERVED10_EVENTID,
>> +	WMI_PEER_OPER_MODE_CHANGE_EVENTID,
>
> Why all these reserved ids, is it like that also in official WMI header
> definitions? Can someone from Qualcomm check this and add proper names
> for the ids?

I got confirmation privately that these are ok.

-- 
Kalle Valo

_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ath11k: ignore event 0x6017
  2019-07-18  5:49 [PATCH 1/2] ath11k: ignore event 0x6017 John Crispin
  2019-07-18  5:49 ` [PATCH 2/2] ath11k: convert message from info to dbg John Crispin
  2019-07-18 11:40 ` [PATCH 1/2] ath11k: ignore event 0x6017 Kalle Valo
@ 2019-08-09  6:56 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-08-09  6:56 UTC (permalink / raw)
  To: John Crispin; +Cc: ath11k, Shashidhar Lakkavalli

John Crispin <john@phrozen.org> wrote:

> Everytime a new peer gets associated, we see the following message in the log
> - ath11k c000000.wifi1: Unknown eventid: 0x6017
> Ignore this event for now. We probably need to handle the event properly when
> we add OMI support.
> 
> Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
> Signed-off-by: John Crispin <john@phrozen.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

2 patches applied to ath11k-post-bringup branch of ath.git, thanks.

e56e2919db5f ath11k: ignore event 0x6017
53738c3c22bc ath11k: convert message from info to dbg

-- 
https://patchwork.kernel.org/patch/11048519/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-09  6:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18  5:49 [PATCH 1/2] ath11k: ignore event 0x6017 John Crispin
2019-07-18  5:49 ` [PATCH 2/2] ath11k: convert message from info to dbg John Crispin
2019-07-18 11:40 ` [PATCH 1/2] ath11k: ignore event 0x6017 Kalle Valo
2019-07-31 14:55   ` Kalle Valo
2019-08-09  6:56 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.