Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lwhsu is trying to add driver support for intel wireless 9560. He has done some code here:
- But, the driver seems not working so he invited me to debug.
- This is the first error log:
- `api flags index 1 larger than supported by driver`
- We thought that is just a version problem so we bumped the version to avoid to hit the case.
- Still, there are other error logs:
- ```
- iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0x604c110000-0x604c113fff at device 20.3 on pci0
- iwm0: timeout waiting for clock stabilization
- iwm0: apm init error 60
- iwm0: could not initialize hardware
- ```
- Tracing the code, it means the driver doesn's receive interrupts to set "wait_entry->triggered = 1", so the driver fails due to time out.
- We found the IRQ information does not display "iwm0"
- % vmstat -i
- interrupt total rate
- irq9: acpi0 1 0
- cpu0:timer 3314518 12
- cpu1:timer 1617788 6
- cpu2:timer 1560000 6
- cpu3:timer 1539914 6
- cpu4:timer 1560190 6
- cpu5:timer 1548846 6
- cpu6:timer 1602733 6
- cpu7:timer 1693147 6
- irq128: xhci0 91387 0
- irq129: ahci0 306623 1
- irq133: hdac0 36 0
- irq134: em0:irq0 557434 2
- Total 15392617 5
- Comparing to Intel 8265 (good example):
- > vmstat -i
- interrupt total rate
- irq1: atkbd0 49983 2
- irq9: acpi0 50686 2
- irq12: psm0 227864 11
- irq16: vgapci0 743067 36
- cpu0:timer 2052123 101
- cpu1:timer 1431203 70
- cpu2:timer 1482806 73
- cpu3:timer 1450326 71
- cpu4:timer 1493074 73
- cpu5:timer 1451673 71
- cpu6:timer 1548006 76
- cpu7:timer 1439006 71
- irq128: xhci0 37743 2
- irq129: iwm0 451303 22
- irq130: nvme0 44 0
- irq131: nvme0 130357 6
- irq132: nvme0 125464 6
- irq133: nvme0 128783 6
- irq134: nvme0 124244 6
- irq135: nvme0 129532 6
- irq136: nvme0 126176 6
- irq137: nvme0 130928 6
- irq138: nvme0 127506 6
- irq143: hdac0 17308 1
- irq144: em0:irq0 49017 2
- Total 14998222 735
- Some ideas to fix the issue:
- 1. We are suspecting if the problem is related to the IRQ that not properly shared between PCI driver and Intel wireless driver
- However, it works in Intel wireless 8265 with similar code. This idea is still questionable.
- 2. Maybe, to bring up intel wireless 9560, it would need to add some new procedures to the driver.
- 3. The intel wireless contains 2 kernel modules: iwm9000fw and iwm. We are not sure how they co-work. Maybe the binary iwm9080fw doesn't work properly?
Add Comment
Please, Sign In to add comment