Revert "mt76: mt7921: enable aspm by default"
Subsystems (5)
PATCH 1/1 Revert "mt76: mt7921: enable aspm by default"
This reverts commit bf3747ae2e25dda6a9e6c464a717c66118c588c8.
This commit introduces a regression on some systems where the kernel is crashing in different locations after a reboot was issued.
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
---
drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7921/pci.c +1 -6
@@ -20,10 +20,6 @@ static const struct pci_device_id mt7921_pci_device_table[] = { { }, }; -static bool mt7921_disable_aspm; -module_param_named (disable_aspm, mt7921_disable_aspm, bool,0644 ); -MODULE_PARM_DESC (disable_aspm,"disable PCI ASPM support" ); -static void mt7921_rx_poll_complete (struct mt76_dev *mdev,enum mt76_rxq_id q) {
@@ -280,8 +276,7 @@ static int mt7921_pci_probe(struct pci_dev *pdev,if (ret) goto err_free_pci_vec; -if (mt7921_disable_aspm) -mt76_pci_disable_aspm (pdev); +mt76_pci_disable_aspm (pdev); mdev =mt76_alloc_device (&pdev->dev,sizeof (*dev), &mt7921_ops, &drv_ops);
Signature · 7 lines
2.35.1 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 9 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is crashing in different locations after a reboot was issued.
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Can I take this to wireless tree? Felix, ack?
I'll also add:
Signature · 8 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 9 lines · Kalle Valo
Quoted 7 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is crashing in different locations after a reboot was issued.
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Quoted 8 lines
Quoted 2 lines
Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")
Sorry, stupid questions from the regression tracker: wouldn't this cause a regression for users of kernel versions post-bf3747ae2e25, as the power consumption is likely to increase for them? Without having dug into the backstory much: would disabling ASPM for this particular machine using a quirk be the better approach? Or are we assuming a lot of machines are affected?
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat)
P.S.: As the Linux kernel's regression tracker I'm getting a lot of reports on my table. I can only look briefly into most of them and lack knowledge about most of the areas they concern. I thus unfortunately will sometimes get things wrong or miss something important. I hope that's not the case here; if you think it is, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.
Quoted 18 lines · Thorsten Leemhuis
Quoted 17 lines · Kalle Valo
Quoted 10 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is crashing in different locations after a reboot was issued.
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Link:
https://lore.kernel.org/linux-wireless/[email protected]/Signed-off-by Philippe Schenker <[email protected]>Can I take this to wireless tree? Felix, ack?
I'll also add:
Quoted 8 lines
Quoted 1 line
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Sorry, stupid questions from the regression tracker: wouldn't this cause a regression for users of kernel versions post-bf3747ae2e25, as the power consumption is likely to increase for them? Without having dug into the backstory much: would disabling ASPM for this particular machine using a quirk be the better approach? Or are we assuming a lot of machines are affected?
Kernel crashing is far more serious than increased power consumption. If there's a better fix available in the next day or two of course that can be considered. But if there's no such fix available, we have to revert the commit.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 29 lines · Thorsten Leemhuis
Quoted 13 lines · Kalle Valo
Quoted 10 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is crashing in different locations after a reboot was issued.
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Link:
https://lore.kernel.org/linux-wireless/[email protected]/Signed-off-by Philippe Schenker <[email protected]>Quoted 5 lines
Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Sorry, stupid questions from the regression tracker: wouldn't this cause a regression for users of kernel versions post-bf3747ae2e25, as the power consumption is likely to increase for them? Without having dug into the backstory much: would disabling ASPM for this particular machine using a quirk be the better approach? Or are we assuming a lot of machines are affected?
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat)
Quoted 7 lines
P.S.: As the Linux kernel's regression tracker I'm getting a lot of reports on my table. I can only look briefly into most of them and lack knowledge about most of the areas they concern. I thus unfortunately will sometimes get things wrong or miss something important. I hope that's not the case here; if you think it is, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.
BTW, maybe you could add that boilerplace text after P.S. into the signature (ie. under "-- " line)? That way your mails would more readable and make it more clear that you didn't write the boilerplate text specifically for this mail.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 9 lines · Kalle Valo
Quoted 9 lines
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) [...]
P.S.: As the Linux kernel's regression tracker I'm getting a lot of reports on my table. I can only look briefly into most of them and lack knowledge about most of the areas they concern. I thus unfortunately will sometimes get things wrong or miss something important. I hope that's not the case here; if you think it is, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.
Quoted 4 lines
BTW, maybe you could add that boilerplace text after
P.S. into the signature (ie. under "-- " line)? That way your mails would more readable and make it more clear that you didn't write the boilerplate text specifically for this mail.
Late reply:
FYI, I thought back and forth about the boilerplace text and how to handle that when I started using it. I deliberately decided against putting it under a "-- " line, as that wouldn't work well for some of the mails I write -- for example those where I deliberately use top-posting (which I hate and kinda feels wrong, but nevertheless right at the same time) to make this as easy to grasp as possible.
After your comment I have thought about it again for a while but in the end for now decided to mostly stick to the approach I used, but your comment made me shorten the text a bit.
Ciao, Thorsten
Quoted 14 lines · Kalle Valo
Quoted 12 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is
crashing in different locations after a reboot was issued.This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Quoted 8 lines
Quoted 1 line
Signed-off-by Philippe Schenker <[email protected]>Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")
Hi Kalle,
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit 602cc0c9618a81 ("mt76: mt7921e: fix possible probe failure after reboot")
Link:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/mediatek/mt76?id=602cc0c9618a819ab00ea3c9400742a0ca318380
I can reproduce the problem in my v5.16-rc5 desktop. And the issue can be fixed when the patch applied.
Hi Philippe,
Can you please help to check the patch in your platform?
Regards,
Deren
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 34 lines · Deren Wu
Quoted 16 lines · Kalle Valo
Quoted 6 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is
crashing in different locations after a reboot was issued.Quoted 7 lines
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Signed-off-by Philippe Schenker <[email protected]>Quoted 6 lines
Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Hi Kalle,
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit602cc0c9618a81("mt76: mt7921e: fix possible probe failure after
reboot")
Link:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/mediatek/mt76?id=602cc0c9618a819ab00ea3c9400742a0ca318380
Quoted 7 lines
I can reproduce the problem in my v5.16-rc5 desktop. And the issue can be fixed when the patch applied.
Hi Philippe,
Can you please help to check the patch in your platform?
Aah, so I have been a bit late with my painful bisecting. Should have checked -next before... Whatever, your patch works just fine. I cherry picked your patch on top mainline v5.17 and it works just fine with that one.
Thank you very much Deren!
Sorry Kalle for the overlapping revert, please do not apply it.
Best Regards,
Philippe
Quoted 5 lines
Regards,
Deren
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 39 lines · Philippe Schenker
Quoted 38 lines · Deren Wu
Quoted 16 lines · Kalle Valo
Quoted 6 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is
crashing in different locations after a reboot was issued.Quoted 7 lines
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Signed-off-by Philippe Schenker <[email protected]>Quoted 6 lines
Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Hi Kalle,
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit602cc0c9618a81("mt76: mt7921e: fix possible probe failure after
reboot")
Link:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/mediatek/mt76?id=602cc0c9618a819ab00ea3c9400742a0ca318380I can reproduce the problem in my v5.16-rc5 desktop. And the issue can be fixed when the patch applied.
Quoted 6 lines
Quoted 3 lines
Hi Philippe,
Can you please help to check the patch in your platform?
Aah, so I have been a bit late with my painful bisecting. Should have checked -next before...
Actually commit 602cc0c9618a is already in Linus' tree and it was included in v5.18-rc1 release.
Quoted 4 lines
Whatever, your patch works just fine. I cherry picked your patch on top mainline v5.17 and it works just fine with that one.
Thank you very much Deren!
And thank you Philippe for quickly testing this!
Quoted 1 line
Sorry Kalle for the overlapping revert, please do not apply it.
Ok, I'll drop your revert.
Signature · 8 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 34 lines · Deren Wu
Quoted 16 lines · Kalle Valo
Quoted 6 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is
crashing in different locations after a reboot was issued.Quoted 7 lines
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Signed-off-by Philippe Schenker <[email protected]>Quoted 6 lines
Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Hi Kalle,
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit602cc0c9618a81("mt76: mt7921e: fix possible probe failure after
reboot")
Link:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/mediatek/mt76?id=602cc0c9618a819ab00ea3c9400742a0ca318380
Quoted 7 lines
I can reproduce the problem in my v5.16-rc5 desktop. And the issue can be fixed when the patch applied.
Hi Philippe,
Can you please help to check the patch in your platform?
Hi Kalle and Deren,
I just noticed on my system and mainline v5.18 reboots do now work however Bluetooth is no longer accessible after a reboot.
Reverting commit bf3747ae2e25dda6a9e6c464a717c66118c588c8 on top of v5.18 solves this problem for me.
@Deren are you aware of this bug?
@Kalle Is there a bugtracker somewhere I can submit this?
Thanks,
Philippe
Quoted 5 lines
Regards,
Deren
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Quoted 45 lines · Philippe Schenker
Quoted 34 lines · Deren Wu
Quoted 16 lines · Kalle Valo
Quoted 6 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is
crashing in different locations after a reboot was issued.Quoted 7 lines
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest firmware.
Signed-off-by Philippe Schenker <[email protected]>Quoted 6 lines
Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Hi Kalle,
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit602cc0c9618a81("mt76: mt7921e: fix possible probe failure after
reboot")
Link:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/mediatek/mt76?id=602cc0c9618a819ab00ea3c9400742a0ca318380Quoted 7 lines
I can reproduce the problem in my v5.16-rc5 desktop. And the issue can be fixed when the patch applied.
Hi Philippe,
Can you please help to check the patch in your platform?
Hi Kalle and Deren,
Quoted 8 lines
I just noticed on my system and mainline v5.18 reboots do now work however Bluetooth is no longer accessible after a reboot.
Reverting commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8on top of v5.18 solves this problem for me.@Deren are you aware of this bug?
@Kalle Is there a bugtracker somewhere I can submit this?
For regressions the best is to submit it to the regressions list, CCed it now.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 12 lines · Kalle Valo
Quoted 10 lines · Philippe Schenker
Quoted 9 lines · Deren Wu
Quoted 8 lines · Kalle Valo
Quoted 6 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the kernel is
crashing in different locations after a reboot was issued.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest
firmware.Link:
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 9 lines
Quoted 2 lines
Signed-off-by Philippe Schenker <[email protected]>Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Hi Kalle,
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit602cc0c9618a81("mt76: mt7921e: fix possible probe failure after
reboot")
Link:
Quoted 19 lines
Quoted 19 lines
Quoted 10 lines
I can reproduce the problem in my v5.16-rc5 desktop. And the issue can
be fixed when the patch applied.Hi Philippe,
Can you please help to check the patch in your platform?
Hi Kalle and Deren,
I just noticed on my system and mainline v5.18 reboots do now work however Bluetooth is no longer accessible after a reboot.
Reverting commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8on top of v5.18 solves this problem for me.
Quoted 7 lines
Quoted 2 lines
@Deren are you aware of this bug?
@Kalle Is there a bugtracker somewhere I can submit this?For regressions the best is to submit it to the regressions list, CCed
it now.
Hi Philippe,
Tried your test with v5.18.0 on my desktop and both wifi/bt are still avaible after reboot. The only problem is I need to insert btusb module by command "modprobe btusb" to make BT workable.
I will check the issue on different platforms. If there are any finding, I will let you know.
Regards,
Deren
Quoted 72 lines · Deren Wu
Quoted 14 lines · Kalle Valo
Quoted 12 lines · Philippe Schenker
Quoted 11 lines · Deren Wu
Quoted 10 lines · Kalle Valo
Quoted 8 lines · Philippe Schenker
This reverts commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8.This commit introduces a regression on some systems where the
kernel is
crashing in different locations after a reboot was issued.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
This issue was bisected on a Thinkpad P14s Gen2 (AMD) with latest
firmware.Link:
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 9 lines
Quoted 2 lines
Signed-off-by Philippe Schenker <[email protected]>Can I take this to wireless tree? Felix, ack?
I'll also add:
Fixes bf3747ae2e25 ("mt76: mt7921: enable aspm by default")Hi Kalle,
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
We have a patch for a similar problem. Can you wait for the verification by Philippe?
Commit602cc0c9618a81("mt76: mt7921e: fix possible probe failure
after
reboot")
Link:Quoted 20 lines
Quoted 20 lines
Quoted 10 lines
I can reproduce the problem in my v5.16-rc5 desktop. And the issue can
be fixed when the patch applied.Hi Philippe,
Can you please help to check the patch in your platform?
Hi Kalle and Deren,
I just noticed on my system and mainline v5.18 reboots do now work however Bluetooth is no longer accessible after a reboot.
Reverting commit
bf3747ae2e25dda6a9e6c464a717c66118c588c8on top of
v5.18 solves this problem for me.Quoted 7 lines
Quoted 2 lines
@Deren are you aware of this bug?
@Kalle Is there a bugtracker somewhere I can submit this?For regressions the best is to submit it to the regressions list, CCed
it now.Hi Philippe,
Quoted 7 lines
Tried your test with v5.18.0 on my desktop and both wifi/bt are still avaible after reboot. The only problem is I need to insert btusb module
by command "modprobe btusb" to make BT workable.I will check the issue on different platforms. If there are any finding, I will let you know.
Thanks for your tests, I did test again on my platform. This time with a hand-built v5.18 straight from torvalds/linux. And I can confirm my findings I even loaded btusb (removed and reloaded) nothing helped. I always get the message
No default controller available
In this case I guess it could be rather a BIOS issue. In this testing round also some USB ports did not work.
If it helps any my system is a Lenovo P14s Gen2. I believe then the driver is good.
Regards,
Philippe
Quoted 4 lines
Regards,
Deren