NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.09k stars 14.14k forks source link

ath10k driver fails at startup #56355

Closed WarpspeedSCP closed 5 years ago

WarpspeedSCP commented 5 years ago

Issue description

I am currently using ethernet, but I want to be able to use wifi. currently journalctl -b | grep ath gives me-

Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: unable to read from the device
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: could not execute otp for board id check: -110
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: failed to get board id from otp: -110
Feb 25 21:07:12 nixos kernel: ath10k_pci 0000:03:00.0: could not probe fw (-110)

I have tried adding the firmwareLinuxNonfree package to configuration.nix but I am not sure if that did anything.

Steps to reproduce

Fresh install with atheros hardware I guess... Problem is with ath10k firmware.

Technical details

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.102, NixOS, 18.09.2257.235487585ed (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

lspci-

03:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
CrazedProgrammer commented 5 years ago

Do you have the option hardware.enableRedistributableFirmware enabled? I had the same kind of issue with my Intel WiFi chip when it wasn't enabled.

fpletz commented 5 years ago

This could be firmware-related since we have similar issues with ath10k in the past. Please try a recent a recent 19.03 or 19.09 channel and feel free to reopen if this issues persists.