ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath10k: Remove trace about getting temperature
@ 2015-02-24 18:26 Matthias Kaehlcke
  2015-03-10 15:54 ` Kalle Valo
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Kaehlcke @ 2015-02-24 18:26 UTC (permalink / raw)
  To: ath10k; +Cc: Kalle Valo, Matthias Kaehlcke, Rajkumar Manoharan

When ath10k debugging is enabled this trace generates a log entry
every time the chip temperature is read. On systems polling the
temperature this clutters the log with entries which aren't
particularly useful. Remove this trace.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
 drivers/net/wireless/ath/ath10k/wmi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index aeea1c7..1c86984 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -4881,7 +4881,6 @@ ath10k_wmi_10_2_op_gen_pdev_get_temperature(struct ath10k *ar)
 	if (!skb)
 		return ERR_PTR(-ENOMEM);
 
-	ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi pdev get temperature\n");
 	return skb;
 }
 
-- 
2.2.0.rc0.207.ga3a616c


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

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

* Re: [PATCH] ath10k: Remove trace about getting temperature
  2015-02-24 18:26 [PATCH] ath10k: Remove trace about getting temperature Matthias Kaehlcke
@ 2015-03-10 15:54 ` Kalle Valo
  2015-03-10 16:34   ` Matthias Kaehlcke
       [not found]   ` <CAKZ8rEOVf4q_i7at=h3PiwwGDNeuiEL467wFCOwADwd0BhtbCw@mail.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Kalle Valo @ 2015-03-10 15:54 UTC (permalink / raw)
  To: Matthias Kaehlcke; +Cc: Rajkumar Manoharan, ath10k

Matthias Kaehlcke <mka@chromium.org> writes:

> When ath10k debugging is enabled this trace generates a log entry
> every time the chip temperature is read. On systems polling the
> temperature this clutters the log with entries which aren't
> particularly useful. Remove this trace.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>  drivers/net/wireless/ath/ath10k/wmi.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
> index aeea1c7..1c86984 100644
> --- a/drivers/net/wireless/ath/ath10k/wmi.c
> +++ b/drivers/net/wireless/ath/ath10k/wmi.c
> @@ -4881,7 +4881,6 @@ ath10k_wmi_10_2_op_gen_pdev_get_temperature(struct ath10k *ar)
>  	if (!skb)
>  		return ERR_PTR(-ENOMEM);
>  
> -	ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi pdev get temperature\n");
>  	return skb;

I'm worried that this is dangerous, as that means that not all WMI
commands will be in debug and something might be missed because of that.

Isn't there any other way? Like implementing ath10k_dbg_ratelimit()? Or
adding a new log level?

-- 
Kalle Valo

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

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

* Re: [PATCH] ath10k: Remove trace about getting temperature
  2015-03-10 15:54 ` Kalle Valo
@ 2015-03-10 16:34   ` Matthias Kaehlcke
       [not found]   ` <CAKZ8rEOVf4q_i7at=h3PiwwGDNeuiEL467wFCOwADwd0BhtbCw@mail.gmail.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Matthias Kaehlcke @ 2015-03-10 16:34 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Matthias Kaehlcke, Rajkumar Manoharan, ath10k

On Tue, Mar 10, 2015 at 8:54 AM, Kalle Valo <kvalo@qca.qualcomm.com> wrote:
> Matthias Kaehlcke <mka@chromium.org> writes:
>
>> When ath10k debugging is enabled this trace generates a log entry
>> every time the chip temperature is read. On systems polling the
>> temperature this clutters the log with entries which aren't
>> particularly useful. Remove this trace.
>>
>> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
>> ---
>>  drivers/net/wireless/ath/ath10k/wmi.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
>> index aeea1c7..1c86984 100644
>> --- a/drivers/net/wireless/ath/ath10k/wmi.c
>> +++ b/drivers/net/wireless/ath/ath10k/wmi.c
>> @@ -4881,7 +4881,6 @@ ath10k_wmi_10_2_op_gen_pdev_get_temperature(struct ath10k *ar)
>>       if (!skb)
>>               return ERR_PTR(-ENOMEM);
>>
>> -     ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi pdev get temperature\n");
>>       return skb;
>
> I'm worried that this is dangerous, as that means that not all WMI
> commands will be in debug and something might be missed because of that.

I see your concern

> Isn't there any other way? Like implementing ath10k_dbg_ratelimit()? Or
> adding a new log level?

Switching to dynamic debugging (dev_dbg, ...) could be an option.
Debug messages would be disabled by default but can be enabled at
runtime

-- 

Matthias Kaehlcke | Software Engineer | mka@google.com

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

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

* Re: [PATCH] ath10k: Remove trace about getting temperature
       [not found]   ` <CAKZ8rEOVf4q_i7at=h3PiwwGDNeuiEL467wFCOwADwd0BhtbCw@mail.gmail.com>
@ 2015-03-12 13:17     ` Kalle Valo
  0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2015-03-12 13:17 UTC (permalink / raw)
  To: Matthias Kaehlcke; +Cc: Matthias Kaehlcke, Rajkumar Manoharan, ath10k

Matthias Kaehlcke <mka@google.com> writes:

>     > -     ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi pdev get temperature\n");
>     >       return skb;
>
>     I'm worried that this is dangerous, as that means that not all WMI
>     commands will be in debug and something might be missed because of that.
>
>
> I see your concern
>  
>
>     Isn't there any other way? Like implementing ath10k_dbg_ratelimit()? Or
>     adding a new log level?
>
>
> Switching to dynamic debugging (dev_dbg, ...) could be an option. Debug
> messages would be disabled by default but can be enabled at runtime

I don't really like dynamic debugging framework as it's not really
convenient with bigger drivers like ath10k. Is it possible to add
support for dynamic debugging without sacrificing the current debug
functionality, especially setting debug levels via debug_mask
parameters?


-- 
Kalle Valo

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

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

end of thread, other threads:[~2015-03-12 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 18:26 [PATCH] ath10k: Remove trace about getting temperature Matthias Kaehlcke
2015-03-10 15:54 ` Kalle Valo
2015-03-10 16:34   ` Matthias Kaehlcke
     [not found]   ` <CAKZ8rEOVf4q_i7at=h3PiwwGDNeuiEL467wFCOwADwd0BhtbCw@mail.gmail.com>
2015-03-12 13:17     ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox