All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: iwlwifi: fix system commands group ordering
@ 2023-11-12  9:59 Emmanuel Grumbach
  2023-11-12 10:05   ` Emmanuel Grumbach
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12  9:59 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Linux Wireless, Anjaneyulu, Gregory Greenman,
	Linux Regressions, Johannes Berg, Bagas Sanjaya, Miri Korenblit,
	Emmanuel Grumbach

From: Miri Korenblit <miriam.rachel.korenblit@intel.com>

The commands should be sorted inside the group definition.
Fix the ordering so we won't get following warning:
WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))

Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
Change-Id: I0112bd7da4559a8e69e84cd8f55ba8e6fe8252cb
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index fef86a8b4163..1627b2f819db 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
 	HCMD_NAME(RFI_CONFIG_CMD),
 	HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
 	HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
-	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 	HCMD_NAME(SYSTEM_STATISTICS_CMD),
 	HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF),
+	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 };
 
 /* Please keep this array *SORTED* by hex value.
-- 
2.41.0


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

* [PATCH v2] wifi: iwlwifi: fix system commands group ordering
  2023-11-12  9:59 [PATCH] wifi: iwlwifi: fix system commands group ordering Emmanuel Grumbach
@ 2023-11-12 10:05   ` Emmanuel Grumbach
  2023-11-12 10:09 ` [PATCH v3] " Emmanuel Grumbach
  2023-11-12 14:36 ` [PATCH v4] " Emmanuel Grumbach
  2 siblings, 0 replies; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12 10:05 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Linux Wireless, Anjaneyulu, Pagadala Yesu, Greenman,
	Gregory, Linux Regressions, Johannes Berg, Bagas Sanjaya,
	Miri Korenblit, Emmanuel Grumbach

From: Miri Korenblit <miriam.rachel.korenblit@intel.com>

The commands should be sorted inside the group definition.
Fix the ordering so we won't get following warning:
WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))

Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
Change-Id: I18f7b57c7c565537e3d97f8c7ff83f0cc8e4709c
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
v2: remove ChangeId
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index fef86a8b4163..1627b2f819db 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
 	HCMD_NAME(RFI_CONFIG_CMD),
 	HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
 	HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
-	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 	HCMD_NAME(SYSTEM_STATISTICS_CMD),
 	HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF),
+	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 };
 
 /* Please keep this array *SORTED* by hex value.
-- 
2.41.0


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

* [PATCH v2] wifi: iwlwifi: fix system commands group ordering
@ 2023-11-12 10:05   ` Emmanuel Grumbach
  0 siblings, 0 replies; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12 10:05 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Linux Wireless, Anjaneyulu, Pagadala Yesu, Greenman,
	Gregory, Linux Regressions, Johannes Berg, Bagas Sanjaya,
	Miri Korenblit, Emmanuel Grumbach

From: Miri Korenblit <miriam.rachel.korenblit@intel.com>

The commands should be sorted inside the group definition.
Fix the ordering so we won't get following warning:
WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))

Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
Change-Id: I18f7b57c7c565537e3d97f8c7ff83f0cc8e4709c
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
v2: remove ChangeId
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index fef86a8b4163..1627b2f819db 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
 	HCMD_NAME(RFI_CONFIG_CMD),
 	HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
 	HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
-	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 	HCMD_NAME(SYSTEM_STATISTICS_CMD),
 	HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF),
+	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 };
 
 /* Please keep this array *SORTED* by hex value.
-- 
2.41.0


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

* [PATCH v3] wifi: iwlwifi: fix system commands group ordering
  2023-11-12  9:59 [PATCH] wifi: iwlwifi: fix system commands group ordering Emmanuel Grumbach
  2023-11-12 10:05   ` Emmanuel Grumbach
@ 2023-11-12 10:09 ` Emmanuel Grumbach
  2023-11-12 14:08   ` Bagas Sanjaya
  2023-11-12 14:36 ` [PATCH v4] " Emmanuel Grumbach
  2 siblings, 1 reply; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12 10:09 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Linux Wireless, pagadala.yesu.anjaneyulu,
	gregory.greenman, Linux Regressions, Johannes Berg,
	Bagas Sanjaya, Miri Korenblit, Emmanuel Grumbach

From: Miri Korenblit <miriam.rachel.korenblit@intel.com>

The commands should be sorted inside the group definition.
Fix the ordering so we won't get following warning:
WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))

Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
v3: remove changeId for real...
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index fef86a8b4163..1627b2f819db 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
 	HCMD_NAME(RFI_CONFIG_CMD),
 	HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
 	HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
-	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 	HCMD_NAME(SYSTEM_STATISTICS_CMD),
 	HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF),
+	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 };
 
 /* Please keep this array *SORTED* by hex value.
-- 
2.41.0


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

* Re: [PATCH v3] wifi: iwlwifi: fix system commands group ordering
  2023-11-12 10:09 ` [PATCH v3] " Emmanuel Grumbach
@ 2023-11-12 14:08   ` Bagas Sanjaya
  0 siblings, 0 replies; 11+ messages in thread
From: Bagas Sanjaya @ 2023-11-12 14:08 UTC (permalink / raw)
  To: Emmanuel Grumbach, Linus Torvalds
  Cc: Kalle Valo, Linux Wireless, pagadala.yesu.anjaneyulu,
	gregory.greenman, Linux Regressions, Johannes Berg,
	Miri Korenblit

[-- Attachment #1: Type: text/plain, Size: 1971 bytes --]

On Sun, Nov 12, 2023 at 12:09:44PM +0200, Emmanuel Grumbach wrote:
> From: Miri Korenblit <miriam.rachel.korenblit@intel.com>
> 
> The commands should be sorted inside the group definition.
> Fix the ordering so we won't get following warning:
> WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))
> 
> Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>

Hi Emmanuel,

As this fixes a regression tracked by regzbot, let this be known by
regzbot by adding missing tags:

Link: https://lore.kernel.org/regressions/2fa930bb-54dd-4942-a88d-05a47c8e9731@gmail.com/
Link: https://lore.kernel.org/linux-wireless/CAHk-=wix6kqQ5vHZXjOPpZBfM7mMm9bBZxi2Jh7XnaKCqVf94w@mail.gmail.com/

> ---
> v3: remove changeId for real...
> ---
>  drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
> index fef86a8b4163..1627b2f819db 100644
> --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
> +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
> @@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
>  	HCMD_NAME(RFI_CONFIG_CMD),
>  	HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
>  	HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
> -	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
>  	HCMD_NAME(SYSTEM_STATISTICS_CMD),
>  	HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF),
> +	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
>  };
>  
>  /* Please keep this array *SORTED* by hex value.

This fix is confirmed by one of original reporter and another tester, so:

Tested-by: Niklāvs Koļesņikovs <pinkflames.linux@gmail.com>
Tested-by: Damian Tometzki <damian@riscv-rocks.de>

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* [PATCH v4] wifi: iwlwifi: fix system commands group ordering
  2023-11-12  9:59 [PATCH] wifi: iwlwifi: fix system commands group ordering Emmanuel Grumbach
  2023-11-12 10:05   ` Emmanuel Grumbach
  2023-11-12 10:09 ` [PATCH v3] " Emmanuel Grumbach
@ 2023-11-12 14:36 ` Emmanuel Grumbach
  2023-11-12 18:54   ` Kalle Valo
  2 siblings, 1 reply; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12 14:36 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Linux Wireless, pagadala.yesu.anjaneyulu,
	gregory.greenman, Linux Regressions, Johannes Berg,
	Bagas Sanjaya, Miri Korenblit,
	Niklāvs Koļesņikovs, Damian Tometzki,
	Emmanuel Grumbach

From: Miri Korenblit <miriam.rachel.korenblit@intel.com>

The commands should be sorted inside the group definition.
Fix the ordering so we won't get following warning:
WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))

Link: https://lore.kernel.org/regressions/2fa930bb-54dd-4942-a88d-05a47c8e9731@gmail.com/
Link: https://lore.kernel.org/linux-wireless/CAHk-=wix6kqQ5vHZXjOPpZBfM7mMm9bBZxi2Jh7XnaKCqVf94w@mail.gmail.com/
Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
Tested-by: Niklāvs Koļesņikovs <pinkflames.linux@gmail.com>
Tested-by: Damian Tometzki <damian@riscv-rocks.de>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
v3: remove ChangeId
v4: add the required tested-by and link tags
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index fef86a8b4163..1627b2f819db 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
 	HCMD_NAME(RFI_CONFIG_CMD),
 	HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
 	HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
-	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 	HCMD_NAME(SYSTEM_STATISTICS_CMD),
 	HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF),
+	HCMD_NAME(RFI_DEACTIVATE_NOTIF),
 };
 
 /* Please keep this array *SORTED* by hex value.
-- 
2.41.0


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

* Re: [PATCH v4] wifi: iwlwifi: fix system commands group ordering
  2023-11-12 14:36 ` [PATCH v4] " Emmanuel Grumbach
@ 2023-11-12 18:54   ` Kalle Valo
  2023-11-12 19:39     ` Linus Torvalds
  0 siblings, 1 reply; 11+ messages in thread
From: Kalle Valo @ 2023-11-12 18:54 UTC (permalink / raw)
  To: Emmanuel Grumbach
  Cc: Linus Torvalds, Linux Wireless, pagadala.yesu.anjaneyulu,
	gregory.greenman, Linux Regressions, Johannes Berg,
	Bagas Sanjaya, Miri Korenblit,
	Niklāvs Koļesņikovs, Damian Tometzki

Emmanuel Grumbach <emmanuel.grumbach@intel.com> writes:

> From: Miri Korenblit <miriam.rachel.korenblit@intel.com>
>
> The commands should be sorted inside the group definition.
> Fix the ordering so we won't get following warning:
> WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg))
>
> Link: https://lore.kernel.org/regressions/2fa930bb-54dd-4942-a88d-05a47c8e9731@gmail.com/
> Link: https://lore.kernel.org/linux-wireless/CAHk-=wix6kqQ5vHZXjOPpZBfM7mMm9bBZxi2Jh7XnaKCqVf94w@mail.gmail.com/
> Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics")
> Tested-by: Niklāvs Koļesņikovs <pinkflames.linux@gmail.com>
> Tested-by: Damian Tometzki <damian@riscv-rocks.de>
> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>

Linus, I suspect it will take a while before we make a new wireless pull
request (there's currently just one commit in the wireless tree). So if
you want to take this directly to your tree please go ahead, otherwise
you get it via the normal route in a week or two. Just let us know what
you prefer.

Acked-by: Kalle Valo <kvalo@kernel.org>

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

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

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

* Re: [PATCH v4] wifi: iwlwifi: fix system commands group ordering
  2023-11-12 18:54   ` Kalle Valo
@ 2023-11-12 19:39     ` Linus Torvalds
  2023-11-12 19:53       ` Emmanuel Grumbach
  0 siblings, 1 reply; 11+ messages in thread
From: Linus Torvalds @ 2023-11-12 19:39 UTC (permalink / raw)
  To: Kalle Valo, Johannes Berg, Miri Korenblit, Gregory Greenman
  Cc: Emmanuel Grumbach, Linux Wireless, pagadala.yesu.anjaneyulu,
	Linux Regressions, Bagas Sanjaya,
	Niklāvs Koļesņikovs, Damian Tometzki

On Sun, 12 Nov 2023 at 10:54, Kalle Valo <kvalo@kernel.org> wrote:
>
> Linus, I suspect it will take a while before we make a new wireless pull
> request (there's currently just one commit in the wireless tree). So if
> you want to take this directly to your tree please go ahead, otherwise
> you get it via the normal route in a week or two. Just let us know what
> you prefer.
>
> Acked-by: Kalle Valo <kvalo@kernel.org>

Ok, I just tested it in my private tree, and it fixes the WARN_ON() as
expected, so I'll apply it for real.

However, now that I don't have that big warning in there, I do note
another iwlwifi issue that is new to this meger window:

  debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
  iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
  debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
  iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2

and looking at my system logs, this is new.

It looks like it is probably due to

  c36235acb34f ("wifi: iwlwifi: mvm: rework debugfs handling")
  e9dd25550770 ("wifi: iwlwifi: mvm: add a per-link debugfs")

but that's just from looking at the patches (ie no bisection or any
real effort).

This is after the system has come up, so I assume it's when
networkmanager or whatever actually is setting that wireless thing up.

Again: I actually don't *use* the WiFi on this machine - but from a
quick check it does seem to work. So this is just an annoyance and a
sign that somebody didn't do all the details right (possibly triggered
by odd user land behavior, of course, but still...)

                Linus

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

* Re: [PATCH v4] wifi: iwlwifi: fix system commands group ordering
  2023-11-12 19:39     ` Linus Torvalds
@ 2023-11-12 19:53       ` Emmanuel Grumbach
  2023-11-12 20:01         ` Emmanuel Grumbach
  2023-11-13 16:10         ` Ben Greear
  0 siblings, 2 replies; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12 19:53 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Johannes Berg, Miri Korenblit, Gregory Greenman,
	Emmanuel Grumbach, Linux Wireless, pagadala.yesu.anjaneyulu,
	Linux Regressions, Bagas Sanjaya,
	Niklāvs Koļesņikovs, Damian Tometzki

On Sun, Nov 12, 2023 at 9:39 PM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> On Sun, 12 Nov 2023 at 10:54, Kalle Valo <kvalo@kernel.org> wrote:
> >
> > Linus, I suspect it will take a while before we make a new wireless pull
> > request (there's currently just one commit in the wireless tree). So if
> > you want to take this directly to your tree please go ahead, otherwise
> > you get it via the normal route in a week or two. Just let us know what
> > you prefer.
> >
> > Acked-by: Kalle Valo <kvalo@kernel.org>
>
> Ok, I just tested it in my private tree, and it fixes the WARN_ON() as
> expected, so I'll apply it for real.

Good to know - thanks.

>
> However, now that I don't have that big warning in there, I do note
> another iwlwifi issue that is new to this meger window:
>
>   debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
>   iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
>   debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
>   iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
>
> and looking at my system logs, this is new.
>
> It looks like it is probably due to
>
>   c36235acb34f ("wifi: iwlwifi: mvm: rework debugfs handling")
>   e9dd25550770 ("wifi: iwlwifi: mvm: add a per-link debugfs")
>
> but that's just from looking at the patches (ie no bisection or any
> real effort).

Don't bother, we'll take a look.

>
> This is after the system has come up, so I assume it's when
> networkmanager or whatever actually is setting that wireless thing up.

Most likely the network-manager brings the device up several times or something
like that, but let's not blame them before we check what happens internally.

>
> Again: I actually don't *use* the WiFi on this machine - but from a
> quick check it does seem to work. So this is just an annoyance and a
> sign that somebody didn't do all the details right (possibly triggered
> by odd user land behavior, of course, but still...)
>

Oh, we know the rules :)

>                 Linus

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

* Re: [PATCH v4] wifi: iwlwifi: fix system commands group ordering
  2023-11-12 19:53       ` Emmanuel Grumbach
@ 2023-11-12 20:01         ` Emmanuel Grumbach
  2023-11-13 16:10         ` Ben Greear
  1 sibling, 0 replies; 11+ messages in thread
From: Emmanuel Grumbach @ 2023-11-12 20:01 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Kalle Valo, Johannes Berg, Miri Korenblit, Gregory Greenman,
	Emmanuel Grumbach, Linux Wireless, pagadala.yesu.anjaneyulu,
	Linux Regressions, Bagas Sanjaya,
	Niklāvs Koļesņikovs, Damian Tometzki

>
> >
> > However, now that I don't have that big warning in there, I do note
> > another iwlwifi issue that is new to this meger window:
> >
> >   debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
> >   iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
> >   debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
> >   iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
> >
> > and looking at my system logs, this is new.
> >
> > It looks like it is probably due to
> >
> >   c36235acb34f ("wifi: iwlwifi: mvm: rework debugfs handling")
> >   e9dd25550770 ("wifi: iwlwifi: mvm: add a per-link debugfs")
> >
> > but that's just from looking at the patches (ie no bisection or any
> > real effort).
>
> Don't bother, we'll take a look.

Miri sent me fixes that we have in our internal tree that have not yet
been published.
The fixes were made during the merge window.
I can send them here, but I think I'd prefer to let those patches go
through the regular
pipes. Also, I'd prefer the people who usually interact with the trees
handle that. Gregory
was OOO today and that's why I chimed in. Miri is still ramping up.
If it's really urgent, I can send the fixes though.

>
> >
> > This is after the system has come up, so I assume it's when
> > networkmanager or whatever actually is setting that wireless thing up.
>
> Most likely the network-manager brings the device up several times or something
> like that, but let's not blame them before we check what happens internally.
>
> >
> > Again: I actually don't *use* the WiFi on this machine - but from a
> > quick check it does seem to work. So this is just an annoyance and a
> > sign that somebody didn't do all the details right (possibly triggered
> > by odd user land behavior, of course, but still...)
> >
>
> Oh, we know the rules :)
>
> >                 Linus

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

* Re: [PATCH v4] wifi: iwlwifi: fix system commands group ordering
  2023-11-12 19:53       ` Emmanuel Grumbach
  2023-11-12 20:01         ` Emmanuel Grumbach
@ 2023-11-13 16:10         ` Ben Greear
  1 sibling, 0 replies; 11+ messages in thread
From: Ben Greear @ 2023-11-13 16:10 UTC (permalink / raw)
  To: Emmanuel Grumbach, Linus Torvalds
  Cc: Kalle Valo, Johannes Berg, Miri Korenblit, Gregory Greenman,
	Emmanuel Grumbach, Linux Wireless, pagadala.yesu.anjaneyulu,
	Linux Regressions, Bagas Sanjaya,
	Niklāvs Koļesņikovs, Damian Tometzki

On 11/12/23 11:53 AM, Emmanuel Grumbach wrote:
> On Sun, Nov 12, 2023 at 9:39 PM Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>>
>> On Sun, 12 Nov 2023 at 10:54, Kalle Valo <kvalo@kernel.org> wrote:
>>>
>>> Linus, I suspect it will take a while before we make a new wireless pull
>>> request (there's currently just one commit in the wireless tree). So if
>>> you want to take this directly to your tree please go ahead, otherwise
>>> you get it via the normal route in a week or two. Just let us know what
>>> you prefer.
>>>
>>> Acked-by: Kalle Valo <kvalo@kernel.org>
>>
>> Ok, I just tested it in my private tree, and it fixes the WARN_ON() as
>> expected, so I'll apply it for real.
> 
> Good to know - thanks.
> 
>>
>> However, now that I don't have that big warning in there, I do note
>> another iwlwifi issue that is new to this meger window:
>>
>>    debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
>>    iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
>>    debugfs: Directory 'iwlmvm' with parent 'netdev:wlo2' already present!
>>    iwlwifi 0000:45:00.0: Failed to create debugfs directory under netdev:wlo2
>>
>> and looking at my system logs, this is new.
>>
>> It looks like it is probably due to
>>
>>    c36235acb34f ("wifi: iwlwifi: mvm: rework debugfs handling")
>>    e9dd25550770 ("wifi: iwlwifi: mvm: add a per-link debugfs")
>>
>> but that's just from looking at the patches (ie no bisection or any
>> real effort).
> 
> Don't bother, we'll take a look.
> 
>>
>> This is after the system has come up, so I assume it's when
>> networkmanager or whatever actually is setting that wireless thing up.
> 
> Most likely the network-manager brings the device up several times or something
> like that, but let's not blame them before we check what happens internally.

The debugfs warnings are seen all of my systems, no network manager for me, but
I am bringing stations up and down a lot.

Thanks,
Ben



-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

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

end of thread, other threads:[~2023-11-13 16:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-12  9:59 [PATCH] wifi: iwlwifi: fix system commands group ordering Emmanuel Grumbach
2023-11-12 10:05 ` [PATCH v2] " Emmanuel Grumbach
2023-11-12 10:05   ` Emmanuel Grumbach
2023-11-12 10:09 ` [PATCH v3] " Emmanuel Grumbach
2023-11-12 14:08   ` Bagas Sanjaya
2023-11-12 14:36 ` [PATCH v4] " Emmanuel Grumbach
2023-11-12 18:54   ` Kalle Valo
2023-11-12 19:39     ` Linus Torvalds
2023-11-12 19:53       ` Emmanuel Grumbach
2023-11-12 20:01         ` Emmanuel Grumbach
2023-11-13 16:10         ` Ben Greear

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.