Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658538 - sys-kernel/gentoo-sources-4.17.x regression: iwlwifi probe fail with -12
Summary: sys-kernel/gentoo-sources-4.17.x regression: iwlwifi probe fail with -12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://git.kernel.org/pub/scm/linux/...
Whiteboard: genpatches-4.17-4
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2018-06-19 22:27 UTC by Andreas Steinmetz
Modified: 2018-07-15 22:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Steinmetz 2018-06-19 22:27:01 UTC
I do have two systems that fail iwlwifi probe on 4.17.x (in my case 4.17.2):

System 1:
=========
Supermicro X11DAi-N
87:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
[    3.138151] iwlwifi: probe of 0000:87:00.0 failed with error -12

System 2:
=========
XMG P7xxDM(-G)
3d:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
[    2.896529] iwlwifi: probe of 0000:3d:00.0 failed with error -12


I did do a git bisect on system 2 and found the following commit to be the culprit for this system:

[b468620f2a1dfdcfddfd6fa54367b8bcc1b51248] iommu/amd_iommu: Use CONFIG_DMA_DIRECT_OPS=y and dma_direct_{alloc,free}()

Reverting this commit on sys-kernel/gentoo-sources-4.17.2 enables the iwlwifi probe (iwlwifi is working).

I do not dare to try this on system 1 until someone convinces me that reverting the stated commit has no problematic side effects.
Comment 1 Mike Pagano gentoo-dev 2018-06-19 23:18:32 UTC
Nice bisect. It looks like this commit has been reverted in Linus's tree.
I'll queue up the revert for gentoo-sources, but I should check kernel-stable and really submit this revert for greg-kh's stable series.
Comment 2 Mike Pagano gentoo-dev 2018-06-19 23:35:55 UTC
stable was CC'ed on the patch, so it should make it into 4.17.3.  But it will make it into gentoo-sources-4.17.3 either from upstream or our patchset.
Comment 3 hkBst 2018-06-24 10:48:50 UTC
Which firmware are you using Andreas?
Comment 4 Fabio Coatti 2018-07-01 15:50:52 UTC
The same issue happens on my laptop but with intel_iommu commit on stable tree:
d657c5c73ca987214a6f9436e435b34fc60f332a
but this commit has not been reverted (so far at least).

Reverting it makes the iwlwifi working again, as expected.

I already reported the problem upstream on lkml, tbh I did't checked if it was already reported also for intel :). 

Waiting for answers.
Comment 5 Mike Pagano gentoo-dev 2018-07-15 22:27:38 UTC
Available in gentoo-sources kernels >= 4.17.3.
If this problem persists, please re-open this.