Guest User

Untitled

a guest
Jan 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. lwhsu is trying to add driver support for intel wireless 9560. He has done some code here:
  2. But, the driver seems not working so he invited me to debug.
  3.  
  4. This is the first error log:
  5.  
  6. `api flags index 1 larger than supported by driver`
  7.  
  8. We thought that is just a version problem so we bumped the version to avoid to hit the case.
  9. Still, there are other error logs:
  10.  
  11. ```
  12. iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0x604c110000-0x604c113fff at device 20.3 on pci0
  13. iwm0: timeout waiting for clock stabilization
  14. iwm0: apm init error 60
  15. iwm0: could not initialize hardware
  16. ```
  17.  
  18. 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.
  19. We found the IRQ information does not display "iwm0"
  20. % vmstat -i
  21. interrupt total rate
  22. irq9: acpi0 1 0
  23. cpu0:timer 3314518 12
  24. cpu1:timer 1617788 6
  25. cpu2:timer 1560000 6
  26. cpu3:timer 1539914 6
  27. cpu4:timer 1560190 6
  28. cpu5:timer 1548846 6
  29. cpu6:timer 1602733 6
  30. cpu7:timer 1693147 6
  31. irq128: xhci0 91387 0
  32. irq129: ahci0 306623 1
  33. irq133: hdac0 36 0
  34. irq134: em0:irq0 557434 2
  35. Total 15392617 5
  36.  
  37. Comparing to Intel 8265 (good example):
  38.  
  39. > vmstat -i
  40. interrupt total rate
  41. irq1: atkbd0 49983 2
  42. irq9: acpi0 50686 2
  43. irq12: psm0 227864 11
  44. irq16: vgapci0 743067 36
  45. cpu0:timer 2052123 101
  46. cpu1:timer 1431203 70
  47. cpu2:timer 1482806 73
  48. cpu3:timer 1450326 71
  49. cpu4:timer 1493074 73
  50. cpu5:timer 1451673 71
  51. cpu6:timer 1548006 76
  52. cpu7:timer 1439006 71
  53. irq128: xhci0 37743 2
  54. irq129: iwm0 451303 22
  55. irq130: nvme0 44 0
  56. irq131: nvme0 130357 6
  57. irq132: nvme0 125464 6
  58. irq133: nvme0 128783 6
  59. irq134: nvme0 124244 6
  60. irq135: nvme0 129532 6
  61. irq136: nvme0 126176 6
  62. irq137: nvme0 130928 6
  63. irq138: nvme0 127506 6
  64. irq143: hdac0 17308 1
  65. irq144: em0:irq0 49017 2
  66. Total 14998222 735
  67.  
  68. Some ideas to fix the issue:
  69.  
  70. 1. We are suspecting if the problem is related to the IRQ that not properly shared between PCI driver and Intel wireless driver
  71. However, it works in Intel wireless 8265 with similar code. This idea is still questionable.
  72.  
  73. 2. Maybe, to bring up intel wireless 9560, it would need to add some new procedures to the driver.
  74.  
  75. 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