Bug 216452
Summary: | iwlwifi: Error while preparing HW: -110 when Intel AMT via WiFi is configured. | ||
---|---|---|---|
Product: | Drivers | Reporter: | Lorenzo Zolfanelli (lorenzo) |
Component: | network-wireless-intel | Assignee: | Default virtual assignee for network-wireless-intel (drivers_network-wireless-intel) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | emmanuel.grumbach, gregory.greenman, lorenzo |
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
See Also: | https://bugzilla.redhat.com/show_bug.cgi?id=966080 | ||
Kernel Version: | 5.15.65 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
iwlwifi kernel log, options debug=1, card preparation failed after cold boot
iwlwifi kernel log, options debug=1, card preparation succeded after module reload iwlwifi kernel log, options debug=1, proposed patch applied, card preparation succeded after reboot |
Description
Lorenzo Zolfanelli
2022-09-05 22:24:22 UTC
Created attachment 301751 [details]
iwlwifi kernel log, options debug=1, card preparation succeded after module reload
Hi, can you try this: diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index ce62929c36..e4868aa2f9 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -603,7 +603,6 @@ static int iwl_pcie_set_hw_ready(struct iwl_trans *trans) int iwl_pcie_prepare_card_hw(struct iwl_trans *trans) { int ret; - int t = 0; int iter; IWL_DEBUG_INFO(trans, "iwl_trans_prepare_card_hw enter\n"); @@ -620,6 +619,8 @@ int iwl_pcie_prepare_card_hw(struct iwl_trans *trans) usleep_range(1000, 2000); for (iter = 0; iter < 10; iter++) { + int t = 0; + /* If HW is not ready, prepare the conditions to check again */ iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, CSR_HW_IF_CONFIG_REG_PREPARE); Hi Emmanuel, I am currently using v5.15.60 and the patch seems indeed to make things better. I will need some more time to test extensively. In my first cold boot after patching the device got ready (automatically) in 12 seconds after the first attempt, at the iteration 7 over 10 (I modified the patch to print the iteration number in the debug kernel messages). Created attachment 301758 [details]
iwlwifi kernel log, options debug=1, proposed patch applied, card preparation succeded after reboot
After days of routinely using my laptop with the patched module, I can confirm that the proposed patch works and is stable. I monitored the iterations used at each start, and they reached a maximum of 8 (over 10 maximum allowed). Thanks to Emmanuel Grumbach for the rapid solution! Great. Patch will be upstreamed throught the usual process. It may take time since we have a big backlog. |