Skip to contentSkip to conversation

wifi: iwlwifi: fix system commands group ordering

PATCH Superseded Emmanuel Grumbach 6 participants 10 messages Nov 12, 2023 – Nov 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: iwlwifi: fix system commands group ordering

From: Miri Korenblit <[email protected]>

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
---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -1
index fef86a8b4163..1627b2f819db 100644
@@ -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.
Signature · 1 line
2.41.0
#1 lore raw

PATCH v2 1/1 wifi: iwlwifi: fix system commands group ordering

From: Miri Korenblit <[email protected]>

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

---
v2: remove ChangeId

---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -1
index fef86a8b4163..1627b2f819db 100644
@@ -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.
Signature · 1 line
2.41.0
#2 lore raw

PATCH v3 1/1 wifi: iwlwifi: fix system commands group ordering

In reply to Emmanuel Grumbach

From: Miri Korenblit <[email protected]>

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")

---
v3: remove changeId for real...

---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -1
index fef86a8b4163..1627b2f819db 100644
@@ -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.
Signature · 1 line
2.41.0
Tested-by Niklāvs Koļesņikovs Tested-by Damian Tometzki on v3 1/1
#3 lore raw
Quoted 9 lines · Emmanuel Grumbach

From: Miri Korenblit <[email protected]>

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")

Hi Emmanuel,

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

Quoted 11 lines

---
v3: remove changeId for real...

---
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +0 -0
index fef86a8b4163..1627b2f819db 100644

drivers/net/wireless/intel/iwlwifi/mvm/ops.c static const struct iwl_hcmd_names iwl_mvm_system_names[] = { · line 558

Quoted 10 lines
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -1
@@ -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:

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#4 lore raw

PATCH v4 1/1 wifi: iwlwifi: fix system commands group ordering

In reply to Emmanuel Grumbach

From: Miri Korenblit <[email protected]>

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))

---
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(-)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -1
index fef86a8b4163..1627b2f819db 100644
@@ -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.
Signature · 1 line
2.41.0
Acked-by on v4 1/1
#5 lore raw
Quoted 6 lines · Emmanuel Grumbach

From: Miri Korenblit <[email protected]>

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))

Quoted 7 lines

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.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#6 lore raw
Quoted 8 lines · Kalle Valo

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.

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

#7 lore raw
Quoted 9 lines · Linus Torvalds
Quoted 7 lines · Kalle Valo

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.

Quoted 4 lines
Quoted 1 line

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.

Quoted 11 lines

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.

Quoted 7 lines

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.

Quoted 3 lines

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.

Quoted 6 lines

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 :)

Quoted 1 line

Linus

#8 lore raw
Quoted 14 lines
Quoted 14 lines

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

Quoted 7 lines
Quoted 5 lines

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.

Quoted 18 lines
Quoted 4 lines

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.

Quoted 6 lines

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 :)

Quoted 1 line

Linus

#9 lore raw
In reply to Emmanuel Grumbach
Quoted 37 lines · Emmanuel Grumbach
Quoted 9 lines · Linus Torvalds
Quoted 7 lines · Kalle Valo

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.

Quoted 4 lines
Quoted 1 line

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.

Quoted 11 lines

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.

Quoted 7 lines

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).

Quoted 8 lines

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

Quoted 3 lines

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

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com