Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1701566 > unrolled thread

Re: [PATCH] iwlwifi: Demote messages about fw flags size to info

Started byJoão Paulo Rechi Vita <jprvita@endlessm.com>
First post2017-08-02 01:00 +0200
Last post2017-08-03 16:40 +0200
Articles 6 — 5 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] iwlwifi: Demote messages about fw flags size to info João Paulo Rechi Vita <jprvita@endlessm.com> - 2017-08-02 01:00 +0200
    Re: [PATCH] iwlwifi: Demote messages about fw flags size to info Luca Coelho <luca@coelho.fi> - 2017-08-02 06:50 +0200
      RE: [PATCH v2] iwlwifi: Demote messages about fw flags size to info David Laight <David.Laight@ACULAB.COM> - 2017-08-03 16:40 +0200
        [PATCH v3] iwlwifi: Demote messages about fw flags size to info "João Paulo Rechi Vita" <jprvita@gmail.com> - 2017-08-03 16:50 +0200
          Re: [PATCH v3] iwlwifi: Demote messages about fw flags size to info "Coelho, Luciano" <luciano.coelho@intel.com> - 2017-08-08 10:30 +0200
      [PATCH v2] iwlwifi: Demote messages about fw flags size to info "João Paulo Rechi Vita" <jprvita@gmail.com> - 2017-08-03 16:40 +0200

#1701566 — Re: [PATCH] iwlwifi: Demote messages about fw flags size to info

FromJoão Paulo Rechi Vita <jprvita@endlessm.com>
Date2017-08-02 01:00 +0200
SubjectRe: [PATCH] iwlwifi: Demote messages about fw flags size to info
Message-ID<u9OiS-1CI-19@gated-at.bofh.it>
Hello Luca,

On Mon, Jul 24, 2017 at 4:01 AM, Coelho, Luciano
<luciano.coelho@intel.com> wrote:
> On Fri, 2017-07-21 at 07:51 -0700, João Paulo Rechi Vita wrote:

(...)

>> Currently these messages are presented to the user during boot if there
>> is no bootsplash covering the console, sometimes even if the boot splash
>> is enabled but has not started yet by the time this message is shown.
>>

I should have provided another piece of information here: all of this
happens even when booting with the 'quiet' kernel parameter.

> This specific case is harmless, but I'd rather keep this message as an
> error, because in other situations it could lead to unexpected
> behavioir, so I prefer to keep it very visible.
>
>

I see your point, and I understand the purpose of these messages. I'm
wondering if perhaps having them at the warning level would give them
enough visibility, while still keeping a clean boot process to the end
user. If so, I can send an updated patch.

Thanks for your reply and for pointing to the fix for the root cause
of that message.

Cheers,

......................................................................................
João Paulo Rechi Vita  |  +1.415.851.5778  |  Endless

[toc] | [next] | [standalone]


#1701704

FromLuca Coelho <luca@coelho.fi>
Date2017-08-02 06:50 +0200
Message-ID<u9TLz-5cd-7@gated-at.bofh.it>
In reply to#1701566
Hi João Paulo,


On Tue, 2017-08-01 at 15:58 -0700, João Paulo Rechi Vita wrote:
> Hello Luca,
> 
> On Mon, Jul 24, 2017 at 4:01 AM, Coelho, Luciano
> <luciano.coelho@intel.com> wrote:
> > On Fri, 2017-07-21 at 07:51 -0700, João Paulo Rechi Vita wrote:
> 
> (...)
> 
> > > Currently these messages are presented to the user during boot if there
> > > is no bootsplash covering the console, sometimes even if the boot splash
> > > is enabled but has not started yet by the time this message is shown.
> > > 
> 
> I should have provided another piece of information here: all of this
> happens even when booting with the 'quiet' kernel parameter.

Oh, okay, that's annoying.


> > This specific case is harmless, but I'd rather keep this message as an
> > error, because in other situations it could lead to unexpected
> > behavioir, so I prefer to keep it very visible.
> > 
> > 
> 
> I see your point, and I understand the purpose of these messages. I'm
> wondering if perhaps having them at the warning level would give them
> enough visibility, while still keeping a clean boot process to the end
> user. If so, I can send an updated patch.
> 
> Thanks for your reply and for pointing to the fix for the root cause
> of that message.

Sure, I agree it's better to make it use IWL_WARN(), which will generate
a dev_warn() instead of a dev_err().


--
Cheers,
Luca.

[toc] | [prev] | [next] | [standalone]


#1703165 — RE: [PATCH v2] iwlwifi: Demote messages about fw flags size to info

FromDavid Laight <David.Laight@ACULAB.COM>
Date2017-08-03 16:40 +0200
SubjectRE: [PATCH v2] iwlwifi: Demote messages about fw flags size to info
Message-ID<uaps5-1gd-11@gated-at.bofh.it>
In reply to#1701704
From: João Paulo Rechi Vita
> Sent: 03 August 2017 15:30
> These messages are not reporting a real error, just the fact that the
> firmware knows about more flags then the driver.
                                  than
> 
> Currently these messages are presented to the user during boot if there
> is no bootsplash covering the console, even when booting the kernel with
> "quiet".
> 
> Demoting it to the warn level helps having a clean boot process.
> 
> Signed-off-by: Joo Paulo Rechi Vita <jprvita@endlessm.com>

	David

[toc] | [prev] | [next] | [standalone]


#1703172 — [PATCH v3] iwlwifi: Demote messages about fw flags size to info

From"João Paulo Rechi Vita" <jprvita@gmail.com>
Date2017-08-03 16:50 +0200
Subject[PATCH v3] iwlwifi: Demote messages about fw flags size to info
Message-ID<uapBM-1kp-5@gated-at.bofh.it>
In reply to#1703165
These messages are not reporting a real error, just the fact that the
firmware knows about more flags than the driver.

Currently these messages are presented to the user during boot if there
is no bootsplash covering the console, even when booting the kernel with
"quiet".

Demoting it to the warn level helps having a clean boot process.

Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
---

v2 changes:
 - Set to warn level instead of info

v3 changes:
 - Fix commit message typo

 drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
index be466a074c1d..c98a254bbd4d 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
@@ -461,9 +461,9 @@ static int iwl_set_ucode_api_flags(struct iwl_drv *drv, const u8 *data,
 	int i;
 
 	if (api_index >= DIV_ROUND_UP(NUM_IWL_UCODE_TLV_API, 32)) {
-		IWL_ERR(drv,
-			"api flags index %d larger than supported by driver\n",
-			api_index);
+		IWL_WARN(drv,
+			 "api flags index %d larger than supported by driver\n",
+			 api_index);
 		/* don't return an error so we can load FW that has more bits */
 		return 0;
 	}
@@ -485,9 +485,9 @@ static int iwl_set_ucode_capabilities(struct iwl_drv *drv, const u8 *data,
 	int i;
 
 	if (api_index >= DIV_ROUND_UP(NUM_IWL_UCODE_TLV_CAPA, 32)) {
-		IWL_ERR(drv,
-			"capa flags index %d larger than supported by driver\n",
-			api_index);
+		IWL_WARN(drv,
+			 "capa flags index %d larger than supported by driver\n",
+			 api_index);
 		/* don't return an error so we can load FW that has more bits */
 		return 0;
 	}
-- 
2.13.2

[toc] | [prev] | [next] | [standalone]


#1706151 — Re: [PATCH v3] iwlwifi: Demote messages about fw flags size to info

From"Coelho, Luciano" <luciano.coelho@intel.com>
Date2017-08-08 10:30 +0200
SubjectRe: [PATCH v3] iwlwifi: Demote messages about fw flags size to info
Message-ID<uc83M-5ix-7@gated-at.bofh.it>
In reply to#1703172
On Thu, 2017-08-03 at 07:47 -0700, João Paulo Rechi Vita wrote:
> These messages are not reporting a real error, just the fact that the
> firmware knows about more flags than the driver.
> 
> Currently these messages are presented to the user during boot if there
> is no bootsplash covering the console, even when booting the kernel with
> "quiet".
> 
> Demoting it to the warn level helps having a clean boot process.
> 
> Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
> ---
> 
> v2 changes:
>  - Set to warn level instead of info
> 
> v3 changes:
>  - Fix commit message typo

Thanks, João Paulo! I pushed this to our internal tree and it will
eventually reach the mainline following our normal upstreaming process.

--
Cheers,
Luca.

[toc] | [prev] | [next] | [standalone]


#1703166 — [PATCH v2] iwlwifi: Demote messages about fw flags size to info

From"João Paulo Rechi Vita" <jprvita@gmail.com>
Date2017-08-03 16:40 +0200
Subject[PATCH v2] iwlwifi: Demote messages about fw flags size to info
Message-ID<uaps5-1gd-13@gated-at.bofh.it>
In reply to#1701704
These messages are not reporting a real error, just the fact that the
firmware knows about more flags then the driver.

Currently these messages are presented to the user during boot if there
is no bootsplash covering the console, even when booting the kernel with
"quiet".

Demoting it to the warn level helps having a clean boot process.

Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
---

v2 changes:
 - Set to warn level instead of info

 drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
index be466a074c1d..c98a254bbd4d 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
@@ -461,9 +461,9 @@ static int iwl_set_ucode_api_flags(struct iwl_drv *drv, const u8 *data,
 	int i;
 
 	if (api_index >= DIV_ROUND_UP(NUM_IWL_UCODE_TLV_API, 32)) {
-		IWL_ERR(drv,
-			"api flags index %d larger than supported by driver\n",
-			api_index);
+		IWL_WARN(drv,
+			 "api flags index %d larger than supported by driver\n",
+			 api_index);
 		/* don't return an error so we can load FW that has more bits */
 		return 0;
 	}
@@ -485,9 +485,9 @@ static int iwl_set_ucode_capabilities(struct iwl_drv *drv, const u8 *data,
 	int i;
 
 	if (api_index >= DIV_ROUND_UP(NUM_IWL_UCODE_TLV_CAPA, 32)) {
-		IWL_ERR(drv,
-			"capa flags index %d larger than supported by driver\n",
-			api_index);
+		IWL_WARN(drv,
+			 "capa flags index %d larger than supported by driver\n",
+			 api_index);
 		/* don't return an error so we can load FW that has more bits */
 		return 0;
 	}
-- 
2.13.2

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web