Re: [qubes-users] Re: Atheros ath9k wireless pci-e not functional in Fedora-24 template

2016-12-18 Thread entr0py
Marek Marczykowski-Górecki:
> On Sat, Dec 17, 2016 at 10:56:12AM -0800, 3n7r0...@gmail.com wrote:
>> On Friday, December 16, 2016 at 8:36:53 PM UTC, 3n7r...@gmail.com wrote:
>>> ath9k is a well supported driver in Linux. Present in kernel since 2.6. 
>>> (https://wireless.wiki.kernel.org/en/users/drivers/ath9k) Card is 5+ year 
>>> old implementation.
>>>
>>> Tested and working in a Fedora-25 LiveCD without any additional 
>>> configuration. (Kernel 4.8)
>>>
>>> In Qubes 3.1, added as PCI device to a Fedora-24 TemplateVM. (Kernel 4.1) 
>>> ath9k driver is correctly loaded but device does not show up in `iwconfig`.
>>>
>>>
>>> $ lspci -k | grep -A 3 -i network
>>> 00:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network 
>>> Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
>>> Kernel driver in use: ath9k
>>> Kernel modules: ath9k
>>>
>>>
>>> $ iwconfig
>>> lono wireless extensions.
>>>
>>>
>>> [1.980648] pcifront pci-0: Installing PCI frontend
>>> [1.980706] pcifront pci-0: Creating PCI Frontend Bus :00
>>> [1.980732] pcifront pci-0: PCI host bridge to bus :00
>>> [1.980736] pci_bus :00: root bus resource [io  0x-0x]
>>> [1.980740] pci_bus :00: root bus resource [mem 
>>> 0x-0xf]
>>> [1.980743] pci_bus :00: root bus resource [bus 00-ff]
>>> [1.980877] pci :00:00.0: [168c:0024] type 00 class 0x028000
>>> [1.981171] pci :00:00.0: reg 0x10: [mem 0xf7d0-0xf7d0 64bit]
>>> [1.983450] pci :00:00.0: supports D1
>>> [1.984459] pcifront pci-0: claiming resource :00:00.0/0
>>> [2.028350] alg: No test for crc32 (crc32-pclmul)
>>> [2.07] intel_rapl: Found RAPL domain package
>>> [2.033344] intel_rapl: Found RAPL domain core
>>> [2.131727] EXT4-fs (xvdb): mounted filesystem with ordered data mode. 
>>> Opts: discard
>>> [2.140627] cfg80211: Calling CRDA to update world regulatory domain
>>> [2.146866] cfg80211: World regulatory domain updated:
>>> [2.146873] cfg80211:  DFS Master region: unset
>>> [2.146875] cfg80211:   (start_freq - end_freq @ bandwidth), 
>>> (max_antenna_gain, max_eirp), (dfs_cac_time)
>>> [2.146898] cfg80211:   (2402000 KHz - 2472000 KHz @ 4 KHz), (N/A, 
>>> 2000 mBm), (N/A)
>>> [2.146903] cfg80211:   (2457000 KHz - 2482000 KHz @ 2 KHz, 92000 
>>> KHz AUTO), (N/A, 2000 mBm), (N/A)
>>> [2.146908] cfg80211:   (2474000 KHz - 2494000 KHz @ 2 KHz), (N/A, 
>>> 2000 mBm), (N/A)
>>> [2.146912] cfg80211:   (517 KHz - 525 KHz @ 8 KHz, 16 
>>> KHz AUTO), (N/A, 2000 mBm), (N/A)
>>> [2.146918] cfg80211:   (525 KHz - 533 KHz @ 8 KHz, 16 
>>> KHz AUTO), (N/A, 2000 mBm), (0 s)
>>> [2.146923] cfg80211:   (549 KHz - 573 KHz @ 16 KHz), (N/A, 
>>> 2000 mBm), (0 s)
>>> [2.146927] cfg80211:   (5735000 KHz - 5835000 KHz @ 8 KHz), (N/A, 
>>> 2000 mBm), (N/A)
>>> [2.146932] cfg80211:   (5724 KHz - 6372 KHz @ 216 KHz), 
>>> (N/A, 0 mBm), (N/A)
>>> [2.176424] ath9k :00:00.0: Xen PCI mapped GSI17 to IRQ31
>>> *[2.314703] BUG: unable to handle kernel paging request at 
>>> c96c0040
>>> *[2.314712] IP: [] iowrite32+0x38/0x40
>>> [2.314718] PGD 3fdd1067 PUD 3fdd0067 PMD 3ade1067 PTE 8010f7d00075
>>> *[2.314723] Oops: 0003 [#1] SMP 
>>> [2.314726] Modules linked in: ath9k(+) ath9k_common ath9k_hw ath 
>>> mac80211 cfg80211 rfkill intel_rapl iosf_mbi x86_pkg_temp_thermal coretemp 
>>> crct10dif_pclmul crc32_pclmul crc32c_intel pcspkr xen_pcifront xenfs 
>>> dummy_hcd udc_core xen_privcmd u2mfn(O) xen_blkback nf_conntrack_pptp 
>>> nf_conntrack_proto_gre nf_conntrack xen_blkfront
>>> *[2.314748] CPU: 0 PID: 214 Comm: systemd-udevd Tainted: G   O  
>>>   4.1.24-10.pvops.qubes.x86_64 #1
>>> [2.314763] RSP: e02b:88003cab7870  EFLAGS: 00010296
>>> [2.314766] RAX:  RBX: 88003c2ed3a0 RCX: 
>>> 0004
>>> [2.314769] RDX: c96c0040 RSI: c96c0040 RDI: 
>>> 
>>> [2.314772] RBP: 88003cab78a8 R08: 000186a0 R09: 
>>> 88003d001800
>>> [2.314775] R10: 88003d001800 R11: 5dc5 R12: 
>>> 
>>> [2.314778] R13: 0100 R14: a027b550 R15: 
>>> 88003c910028
>>> [2.314783] FS:  7f502afb68c0() GS:88003f80() 
>>> knlGS:
>>> [2.314788] CS:  e033 DS:  ES:  CR0: 80050033
>>> [2.314791] CR2: c96c0040 CR3: 3c9a5000 CR4: 
>>> 00042660
>>> [2.314794] Stack:
>>> [2.314797]  a02910b5 8098  
>>> 88003c910028
>>> [2.314802]  88003c910078 0100 a027b550 
>>> 88003cab78c8
>>> [2.314807]  a0239de2 88003c910078 88003c910028 
>>> 88003cab78e8
>>> [2.314813] Call Trace:
>>> [2.314820]  [] ? ath9k_iow

Re: [qubes-users] Re: Atheros ath9k wireless pci-e not functional in Fedora-24 template

2016-12-17 Thread Marek Marczykowski-Górecki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Sat, Dec 17, 2016 at 10:56:12AM -0800, 3n7r0...@gmail.com wrote:
> On Friday, December 16, 2016 at 8:36:53 PM UTC, 3n7r...@gmail.com wrote:
> > ath9k is a well supported driver in Linux. Present in kernel since 2.6. 
> > (https://wireless.wiki.kernel.org/en/users/drivers/ath9k) Card is 5+ year 
> > old implementation.
> > 
> > Tested and working in a Fedora-25 LiveCD without any additional 
> > configuration. (Kernel 4.8)
> > 
> > In Qubes 3.1, added as PCI device to a Fedora-24 TemplateVM. (Kernel 4.1) 
> > ath9k driver is correctly loaded but device does not show up in `iwconfig`.
> > 
> > 
> > $ lspci -k | grep -A 3 -i network
> > 00:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network 
> > Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
> > Kernel driver in use: ath9k
> > Kernel modules: ath9k
> > 
> > 
> > $ iwconfig
> > lono wireless extensions.
> > 
> > 
> > [1.980648] pcifront pci-0: Installing PCI frontend
> > [1.980706] pcifront pci-0: Creating PCI Frontend Bus :00
> > [1.980732] pcifront pci-0: PCI host bridge to bus :00
> > [1.980736] pci_bus :00: root bus resource [io  0x-0x]
> > [1.980740] pci_bus :00: root bus resource [mem 
> > 0x-0xf]
> > [1.980743] pci_bus :00: root bus resource [bus 00-ff]
> > [1.980877] pci :00:00.0: [168c:0024] type 00 class 0x028000
> > [1.981171] pci :00:00.0: reg 0x10: [mem 0xf7d0-0xf7d0 64bit]
> > [1.983450] pci :00:00.0: supports D1
> > [1.984459] pcifront pci-0: claiming resource :00:00.0/0
> > [2.028350] alg: No test for crc32 (crc32-pclmul)
> > [2.07] intel_rapl: Found RAPL domain package
> > [2.033344] intel_rapl: Found RAPL domain core
> > [2.131727] EXT4-fs (xvdb): mounted filesystem with ordered data mode. 
> > Opts: discard
> > [2.140627] cfg80211: Calling CRDA to update world regulatory domain
> > [2.146866] cfg80211: World regulatory domain updated:
> > [2.146873] cfg80211:  DFS Master region: unset
> > [2.146875] cfg80211:   (start_freq - end_freq @ bandwidth), 
> > (max_antenna_gain, max_eirp), (dfs_cac_time)
> > [2.146898] cfg80211:   (2402000 KHz - 2472000 KHz @ 4 KHz), (N/A, 
> > 2000 mBm), (N/A)
> > [2.146903] cfg80211:   (2457000 KHz - 2482000 KHz @ 2 KHz, 92000 
> > KHz AUTO), (N/A, 2000 mBm), (N/A)
> > [2.146908] cfg80211:   (2474000 KHz - 2494000 KHz @ 2 KHz), (N/A, 
> > 2000 mBm), (N/A)
> > [2.146912] cfg80211:   (517 KHz - 525 KHz @ 8 KHz, 16 
> > KHz AUTO), (N/A, 2000 mBm), (N/A)
> > [2.146918] cfg80211:   (525 KHz - 533 KHz @ 8 KHz, 16 
> > KHz AUTO), (N/A, 2000 mBm), (0 s)
> > [2.146923] cfg80211:   (549 KHz - 573 KHz @ 16 KHz), (N/A, 
> > 2000 mBm), (0 s)
> > [2.146927] cfg80211:   (5735000 KHz - 5835000 KHz @ 8 KHz), (N/A, 
> > 2000 mBm), (N/A)
> > [2.146932] cfg80211:   (5724 KHz - 6372 KHz @ 216 KHz), 
> > (N/A, 0 mBm), (N/A)
> > [2.176424] ath9k :00:00.0: Xen PCI mapped GSI17 to IRQ31
> > *[2.314703] BUG: unable to handle kernel paging request at 
> > c96c0040
> > *[2.314712] IP: [] iowrite32+0x38/0x40
> > [2.314718] PGD 3fdd1067 PUD 3fdd0067 PMD 3ade1067 PTE 8010f7d00075
> > *[2.314723] Oops: 0003 [#1] SMP 
> > [2.314726] Modules linked in: ath9k(+) ath9k_common ath9k_hw ath 
> > mac80211 cfg80211 rfkill intel_rapl iosf_mbi x86_pkg_temp_thermal coretemp 
> > crct10dif_pclmul crc32_pclmul crc32c_intel pcspkr xen_pcifront xenfs 
> > dummy_hcd udc_core xen_privcmd u2mfn(O) xen_blkback nf_conntrack_pptp 
> > nf_conntrack_proto_gre nf_conntrack xen_blkfront
> > *[2.314748] CPU: 0 PID: 214 Comm: systemd-udevd Tainted: G   O  
> >   4.1.24-10.pvops.qubes.x86_64 #1
> > [2.314763] RSP: e02b:88003cab7870  EFLAGS: 00010296
> > [2.314766] RAX:  RBX: 88003c2ed3a0 RCX: 
> > 0004
> > [2.314769] RDX: c96c0040 RSI: c96c0040 RDI: 
> > 
> > [2.314772] RBP: 88003cab78a8 R08: 000186a0 R09: 
> > 88003d001800
> > [2.314775] R10: 88003d001800 R11: 5dc5 R12: 
> > 
> > [2.314778] R13: 0100 R14: a027b550 R15: 
> > 88003c910028
> > [2.314783] FS:  7f502afb68c0() GS:88003f80() 
> > knlGS:
> > [2.314788] CS:  e033 DS:  ES:  CR0: 80050033
> > [2.314791] CR2: c96c0040 CR3: 3c9a5000 CR4: 
> > 00042660
> > [2.314794] Stack:
> > [2.314797]  a02910b5 8098  
> > 88003c910028
> > [2.314802]  88003c910078 0100 a027b550 
> > 88003cab78c8
> > [2.314807]  a0239de2 88003c910078 88003c910028 
> > 88003cab78e8
> > [2.314813] Call Trace:
> > [   

[qubes-users] Re: Atheros ath9k wireless pci-e not functional in Fedora-24 template

2016-12-17 Thread 3n7r0py1
On Friday, December 16, 2016 at 8:36:53 PM UTC, 3n7r...@gmail.com wrote:
> ath9k is a well supported driver in Linux. Present in kernel since 2.6. 
> (https://wireless.wiki.kernel.org/en/users/drivers/ath9k) Card is 5+ year old 
> implementation.
> 
> Tested and working in a Fedora-25 LiveCD without any additional 
> configuration. (Kernel 4.8)
> 
> In Qubes 3.1, added as PCI device to a Fedora-24 TemplateVM. (Kernel 4.1) 
> ath9k driver is correctly loaded but device does not show up in `iwconfig`.
> 
> 
> $ lspci -k | grep -A 3 -i network
> 00:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network Adapter 
> [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
>   Kernel driver in use: ath9k
>   Kernel modules: ath9k
> 
> 
> $ iwconfig
> lono wireless extensions.
> 
> 
> [1.980648] pcifront pci-0: Installing PCI frontend
> [1.980706] pcifront pci-0: Creating PCI Frontend Bus :00
> [1.980732] pcifront pci-0: PCI host bridge to bus :00
> [1.980736] pci_bus :00: root bus resource [io  0x-0x]
> [1.980740] pci_bus :00: root bus resource [mem 0x-0xf]
> [1.980743] pci_bus :00: root bus resource [bus 00-ff]
> [1.980877] pci :00:00.0: [168c:0024] type 00 class 0x028000
> [1.981171] pci :00:00.0: reg 0x10: [mem 0xf7d0-0xf7d0 64bit]
> [1.983450] pci :00:00.0: supports D1
> [1.984459] pcifront pci-0: claiming resource :00:00.0/0
> [2.028350] alg: No test for crc32 (crc32-pclmul)
> [2.07] intel_rapl: Found RAPL domain package
> [2.033344] intel_rapl: Found RAPL domain core
> [2.131727] EXT4-fs (xvdb): mounted filesystem with ordered data mode. 
> Opts: discard
> [2.140627] cfg80211: Calling CRDA to update world regulatory domain
> [2.146866] cfg80211: World regulatory domain updated:
> [2.146873] cfg80211:  DFS Master region: unset
> [2.146875] cfg80211:   (start_freq - end_freq @ bandwidth), 
> (max_antenna_gain, max_eirp), (dfs_cac_time)
> [2.146898] cfg80211:   (2402000 KHz - 2472000 KHz @ 4 KHz), (N/A, 
> 2000 mBm), (N/A)
> [2.146903] cfg80211:   (2457000 KHz - 2482000 KHz @ 2 KHz, 92000 KHz 
> AUTO), (N/A, 2000 mBm), (N/A)
> [2.146908] cfg80211:   (2474000 KHz - 2494000 KHz @ 2 KHz), (N/A, 
> 2000 mBm), (N/A)
> [2.146912] cfg80211:   (517 KHz - 525 KHz @ 8 KHz, 16 KHz 
> AUTO), (N/A, 2000 mBm), (N/A)
> [2.146918] cfg80211:   (525 KHz - 533 KHz @ 8 KHz, 16 KHz 
> AUTO), (N/A, 2000 mBm), (0 s)
> [2.146923] cfg80211:   (549 KHz - 573 KHz @ 16 KHz), (N/A, 
> 2000 mBm), (0 s)
> [2.146927] cfg80211:   (5735000 KHz - 5835000 KHz @ 8 KHz), (N/A, 
> 2000 mBm), (N/A)
> [2.146932] cfg80211:   (5724 KHz - 6372 KHz @ 216 KHz), (N/A, 
> 0 mBm), (N/A)
> [2.176424] ath9k :00:00.0: Xen PCI mapped GSI17 to IRQ31
> *[2.314703] BUG: unable to handle kernel paging request at 
> c96c0040
> *[2.314712] IP: [] iowrite32+0x38/0x40
> [2.314718] PGD 3fdd1067 PUD 3fdd0067 PMD 3ade1067 PTE 8010f7d00075
> *[2.314723] Oops: 0003 [#1] SMP 
> [2.314726] Modules linked in: ath9k(+) ath9k_common ath9k_hw ath mac80211 
> cfg80211 rfkill intel_rapl iosf_mbi x86_pkg_temp_thermal coretemp 
> crct10dif_pclmul crc32_pclmul crc32c_intel pcspkr xen_pcifront xenfs 
> dummy_hcd udc_core xen_privcmd u2mfn(O) xen_blkback nf_conntrack_pptp 
> nf_conntrack_proto_gre nf_conntrack xen_blkfront
> *[2.314748] CPU: 0 PID: 214 Comm: systemd-udevd Tainted: G   O
> 4.1.24-10.pvops.qubes.x86_64 #1
> [2.314763] RSP: e02b:88003cab7870  EFLAGS: 00010296
> [2.314766] RAX:  RBX: 88003c2ed3a0 RCX: 
> 0004
> [2.314769] RDX: c96c0040 RSI: c96c0040 RDI: 
> 
> [2.314772] RBP: 88003cab78a8 R08: 000186a0 R09: 
> 88003d001800
> [2.314775] R10: 88003d001800 R11: 5dc5 R12: 
> 
> [2.314778] R13: 0100 R14: a027b550 R15: 
> 88003c910028
> [2.314783] FS:  7f502afb68c0() GS:88003f80() 
> knlGS:
> [2.314788] CS:  e033 DS:  ES:  CR0: 80050033
> [2.314791] CR2: c96c0040 CR3: 3c9a5000 CR4: 
> 00042660
> [2.314794] Stack:
> [2.314797]  a02910b5 8098  
> 88003c910028
> [2.314802]  88003c910078 0100 a027b550 
> 88003cab78c8
> [2.314807]  a0239de2 88003c910078 88003c910028 
> 88003cab78e8
> [2.314813] Call Trace:
> [2.314820]  [] ? ath9k_iowrite32+0x35/0x90 [ath9k]
> [2.314828]  [] ath9k_enable_mib_counters+0x52/0x90 
> [ath9k_hw]
> [2.314835]  [] ath9k_hw_ani_init+0xa6/0xe0 [ath9k_hw]
> [2.314841]  [] __ath9k_hw_init+0x5c9/0xb40 [ath9k_hw]
> [2.314846]  [] ath9k_hw_init+0x35/0x90 [ath9k_hw]
> [2.31485