Skip to contentSkip to conversation

iwlwifi: pcie: restore support for Killer Qu C0 NICs

PATCH In review Jan Alexander Steffens (heftig) 5 participants 6 messages Dec 24, 2019 – Mar 4, 2020 1 message not in the archive

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

PATCH 1/1 iwlwifi: pcie: restore support for Killer Qu C0 NICs

Commit 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe") refactored the cfg mangling. Unfortunately, in this process the lines which picked the right cfg for Killer Qu C0 NICs after C0 detection were lost. These lines were added by commit b9500577d361 ("iwlwifi: pcie: handle switching killer Qu B0 NICs to C0").

I suspect this is more of the "merge damage" which commit 7cded5658329 ("iwlwifi: pcie: fix merge damage on making QnJ exclusive") talks about.

Restore the missing lines so the driver loads the right firmware for these NICs.

Fixes 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe")
---
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +4 -0
index b0b7eca1754e..de62a6dc4e73 100644
@@ -1107,6 +1107,10 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 			cfg = &iwl9560_2ac_cfg_qu_c0_jf_b0;
 		else if (cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0)
 			cfg = &iwl9560_2ac_160_cfg_qu_c0_jf_b0;
+		else if (cfg == &killer1650s_2ax_cfg_qu_b0_hr_b0)
+			cfg = &killer1650s_2ax_cfg_qu_c0_hr_b0;
+		else if (cfg == &killer1650i_2ax_cfg_qu_b0_hr_b0)
+			cfg = &killer1650i_2ax_cfg_qu_c0_hr_b0;
 	}
 
 	/* same thing for QuZ... */
Signature · 1 line
2.24.1
#1 lore raw
Quoted 7 lines · Jan Alexander Steffens (heftig)

Commit 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe") refactored the cfg mangling. Unfortunately, in this process the lines which picked the right cfg for Killer Qu C0 NICs after C0 detection were lost. These lines were added by commit b9500577d361 ("iwlwifi: pcie: handle switching killer Qu B0 NICs to C0").

Quoted 5 lines

I suspect this is more of the "merge damage" which commit 7cded5658329 ("iwlwifi: pcie: fix merge damage on making QnJ exclusive") talks about.

Restore the missing lines so the driver loads the right firmware for these NICs.

This seems real, as upgrading 5.5.0 -> 5.5.5 just broke my iwlwifi on XPS 7390. How come?

#2 lore raw
Quoted 8 lines · Leho Kraav
Quoted 7 lines · Jan Alexander Steffens (heftig)

Commit 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe") refactored the cfg mangling. Unfortunately, in this process the lines which picked the right cfg for Killer Qu C0 NICs after C0 detection were lost. These lines were added by commit b9500577d361 ("iwlwifi: pcie: handle switching killer Qu B0 NICs to C0").

Quoted 8 lines
Quoted 5 lines

I suspect this is more of the "merge damage" which commit 7cded5658329 ("iwlwifi: pcie: fix merge damage on making QnJ exclusive") talks about.

Restore the missing lines so the driver loads the right firmware for these NICs.

This seems real, as upgrading 5.5.0 -> 5.5.5 just broke my iwlwifi on XPS 7390. How come?

Luca, should I apply this to wireless-drivers?

https://patchwork.kernel.org/patch/11309095/

Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#3 lore raw
Quoted 16 lines · Kalle Valo
Quoted 14 lines · Leho Kraav
Quoted 12 lines · Jan Alexander Steffens (heftig)

Commit 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe") refactored the cfg mangling. Unfortunately, in this process the lines which picked the right cfg for Killer Qu C0 NICs after C0 detection were lost. These lines were added by commit b9500577d361 ("iwlwifi: pcie: handle switching killer Qu B0 NICs to C0").

I suspect this is more of the "merge damage" which commit 7cded5658329 ("iwlwifi: pcie: fix merge damage on making QnJ exclusive") talks about.

Restore the missing lines so the driver loads the right firmware for these NICs.

Quoted 6 lines
Quoted 2 lines

This seems real, as upgrading 5.5.0 -> 5.5.5 just broke my iwlwifi on XPS 7390. How come?

Luca, should I apply this to wireless-drivers?

https://patchwork.kernel.org/patch/11309095/

Yes, please take it to wireless-drivers. I've reassigned it to you.

But please note that this will conflict with another patch that is already in v5.6-rc* that introduced this code again in a different way:

https://patchwork.kernel.org/patch/11318849/

--
Cheers,
Luca.

#4 lore raw
In reply to Jan Alexander Steffens (heftig)
Quoted 7 lines · Jan Alexander Steffens (heftig)

Commit 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe") refactored the cfg mangling. Unfortunately, in this process the lines which picked the right cfg for Killer Qu C0 NICs after C0 detection were lost. These lines were added by commit b9500577d361 ("iwlwifi: pcie: handle switching killer Qu B0 NICs to C0").

Quoted 8 lines

I suspect this is more of the "merge damage" which commit 7cded5658329 ("iwlwifi: pcie: fix merge damage on making QnJ exclusive") talks about.

Restore the missing lines so the driver loads the right firmware for these NICs.

Fixes 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe")

As Luca said, this fails to apply to wireless-drivers. Please rebase and resend as v2.

Recorded preimage for 'drivers/net/wireless/intel/iwlwifi/pcie/drv.c'
error: Failed to merge in the changes.
Applying: iwlwifi: pcie: restore support for Killer Qu C0 NICs
Using index info to reconstruct a base tree...
M drivers/net/wireless/intel/iwlwifi/pcie/drv.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/net/wireless/intel/iwlwifi/pcie/drv.c
CONFLICT (content): Merge conflict in drivers/net/wireless/intel/iwlwifi/pcie/drv.c Patch failed at 0001 iwlwifi: pcie: restore support for Killer Qu C0 NICs The copy of the patch that failed is found in: .git/rebase-apply/patch

Patch set to Changes Requested.

Signature · 3 lines
https://patchwork.kernel.org/patch/11309095/

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 12 lines · Kalle Valo
Quoted 10 lines · Jan Alexander Steffens (heftig)

Commit 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe") refactored the cfg mangling. Unfortunately, in this process the lines which picked the right cfg for Killer Qu C0 NICs after C0 detection were lost. These lines were added by commit b9500577d361 ("iwlwifi: pcie: handle switching killer Qu B0 NICs to C0").

I suspect this is more of the "merge damage" which commit 7cded5658329 ("iwlwifi: pcie: fix merge damage on making QnJ exclusive") talks about.

Quoted 8 lines
Quoted 5 lines

Restore the missing lines so the driver loads the right firmware for these NICs.

Fixes 809805a820c6 ("iwlwifi: pcie: move some cfg mangling from trans_pcie_alloc to probe")

As Luca said, this fails to apply to wireless-drivers. Please rebase and resend as v2.

Hmmm, sorry, I confused things a bit. I missed the fact that wireless- drivers is already at v5.6.

This patch is not needed in v5.6-rc* because another patch has done a similar change. There was some refactoring in this area, so the patch that is in v5.6 doesn't apply in v5.5, so Jan's patch has to be sent to stable v5.5 and not be applied in wireless-drivers.

Jan, if you want this to be fixed in v5.5, can you please send it to [email protected] with an explanation of why it has to be there even though it's not in the mainline? Or just send it and CC me, so I'll reply with an explanation of the issue.

--
Cheers,
Luca.