erikarn / athp

freebsd ath10k port

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kernel page fault after loading if_athp

bradleythughes opened this issue · comments

I'm creating this issue as advised in #freebsd-wifi on EFNet.

I have a Dell XPS 13 9370 with a Killer Wireless-AC 1435 NIC, which seems to be based on the QCA6174.

I installed a 12.0-CURRENT snapshot[1] and then built this module to see what happens. After loading the module, I get a Kernel Page Fault panic:

Reading symbols from /boot/kernel/if_athp.ko...done.
Loaded symbols for /boot/kernel/if_athp.ko
...
Reading symbols from /boot/kernel/athp_QCA6174_hw3.0_board.bin.ko...done.
Loaded symbols for /boot/kernel/athp_QCA6174_hw3.0_board.bin.ko
Reading symbols from /boot/kernel/athp_QCA6174_hw3.0_firmware-4.bin.ko...done.
Loaded symbols for /boot/kernel/athp_QCA6174_hw3.0_firmware-4.bin.ko
#0  doadump (textdump=0) at pcpu.h:230
230	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) #0  doadump (textdump=0) at pcpu.h:230
#1  0xffffffff8043dcbb in db_dump (dummy=<value optimized out>, 
    dummy2=<value optimized out>, dummy3=<value optimized out>, 
    dummy4=<value optimized out>) at /usr/src/sys/ddb/db_command.c:574
#2  0xffffffff8043da89 in db_command (cmd_table=<value optimized out>)
    at /usr/src/sys/ddb/db_command.c:481
#3  0xffffffff8043d804 in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:534
#4  0xffffffff80440a2f in db_trap (type=<value optimized out>, 
    code=<value optimized out>) at /usr/src/sys/ddb/db_main.c:252
#5  0xffffffff80bddd23 in kdb_trap (type=12, code=0, tf=<value optimized out>)
    at /usr/src/sys/kern/subr_kdb.c:693
#6  0xffffffff81077911 in trap_fatal (frame=0xfffffe008a663580, 
    eva=18446741877233962312) at /usr/src/sys/amd64/amd64/trap.c:884
#7  0xffffffff81077a32 in trap_pfault (frame=0xfffffe008a663580, 
    usermode=<value optimized out>) at pcpu.h:230
#8  0xffffffff8107703a in trap (frame=0xfffffe008a663580)
    at /usr/src/sys/amd64/amd64/trap.c:427
#9  0xffffffff8105194c in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:230
#10 0xffffffff82a92d2b in __ath10k_htt_rx_ring_fill_n ()
   from /boot/kernel/if_athp.ko
#11 0xffffffff82a8fefc in ath10k_htt_rx_ring_fill_n ()
   from /boot/kernel/if_athp.ko
#12 0xffffffff82a8fe55 in ath10k_htt_rx_ring_refill ()
   from /boot/kernel/if_athp.ko
#13 0xffffffff82a5a466 in ath10k_core_start () from /boot/kernel/if_athp.ko
#14 0xffffffff82a5ba67 in ath10k_core_probe_fw () from /boot/kernel/if_athp.ko
#15 0xffffffff82a5cec0 in ath10k_core_register_work ()
   from /boot/kernel/if_athp.ko
#16 0xffffffff80bf15ec in taskqueue_run_locked (queue=0xfffff80003707200)
    at /usr/src/sys/kern/subr_taskqueue.c:465
#17 0xffffffff80bf23b8 in taskqueue_thread_loop (arg=<value optimized out>)
    at /usr/src/sys/kern/subr_taskqueue.c:757
#18 0xffffffff80b51dc4 in fork_exit (
    callout=0xffffffff80bf2330 <taskqueue_thread_loop>, 
    arg=0xfffffe0089957078, frame=0xfffffe008a6639c0)
    at /usr/src/sys/kern/kern_fork.c:1057
#19 0xffffffff810528fe in fork_trampoline ()
    at /usr/src/sys/amd64/amd64/exception.S:978
#20 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal
(kgdb) 

I put the full crash dump details in Gist[2].

  1. https://download.freebsd.org/ftp/snapshots/amd64/amd64/ISO-IMAGES/12.0/FreeBSD-12.0-CURRENT-amd64-20180719-r336479-memstick.img
  2. https://gist.github.com/bradleythughes/3954a110d43d805b034f9c5047b4a7f8

I'll look in to this.

I got a mail notification that you were wondering if I could try again. I downloaded and install 12.0-ALPHA8 and rebuilt the module. I get the same crash as before (backtrace below, this time with debugging symbols):

#9  0xffffffff8103b825 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:232
#10 0xffffffff82a8dd2f in __ath10k_htt_rx_ring_fill_n (htt=0xfffffe00007178f8, 
    num=1023)
    at /root/athp-master/otus/freebsd/src/sys/modules/athp/../../dev/athp/if_athp_htt_rx.c:226
#11 0xffffffff82a8aefc in ath10k_htt_rx_ring_fill_n (htt=0xfffffe00007178f8, 
    num=1023)
    at /root/athp-master/otus/freebsd/src/sys/modules/athp/../../dev/athp/if_athp_htt_rx.c:248
#12 0xffffffff82a8ae55 in ath10k_htt_rx_ring_refill (ar=0xfffffe0000710000)
    at /root/athp-master/otus/freebsd/src/sys/modules/athp/../../dev/athp/if_athp_htt_rx.c:312
#13 0xffffffff82a55466 in ath10k_core_start (ar=0xfffffe0000710000, 
    mode=ATH10K_FIRMWARE_MODE_NORMAL)
    at /root/athp-master/otus/freebsd/src/sys/modules/athp/../../dev/athp/if_athp_core.c:1485
#14 0xffffffff82a56a67 in ath10k_core_probe_fw (ar=0xfffffe0000710000)
    at /root/athp-master/otus/freebsd/src/sys/modules/athp/../../dev/athp/if_athp_core.c:1661
#15 0xffffffff82a57ec0 in ath10k_core_register_work (arg=0xfffffe0000710000, 
    npending=1)
    at /root/athp-master/otus/freebsd/src/sys/modules/athp/../../dev/athp/if_athp_core.c:1699

Hey bradleythughes, I may have ran in to your issue myself, if you would like to checkout my local branch which is https://github.com/Geramy/athp/tree/mtx_lock_null
Give it a shot and let me know, I found a few issues and have submitted a pull request for this issue.
I hope I can get yours working as well, at least partially, we want as much test cases as we can get so that we can test and test more and more 👍

Howdy! I will give it a try later this evening. :)

Hey, sorry there has been bugs in my branch, but give my new branch a checkout and i'm going to merge it in to a single branch then do a pr soon. checkout the branch athp_parent_dma_allocate

I will give that a try. I got the same crash with your mtx_lock_null branch, but I will happily try whatever you need me to :)

Cool, let me know how that goes and submit a log for me, I been working on dma stuff maybe if effected you maybe not, i'll look in to that file tonight and work on your bug specifically if it isn't already fixed because of any change i might have done. It might just be a little hard for me because I dont have your wifi card but i'll give it a shot in the dark! :)

No go, unfortunately, same crash/stack trace as before: https://gist.github.com/bradleythughes/3954a110d43d805b034f9c5047b4a7f8#file-core-txt-1

As I said before, I am happy to try whatever you need. I am not afraid to help dig into the code, either. I know C well, but have very little knowledge about drivers and the kernel interfaces they use (but I'm a fast learner). In other words, I can hack on the code if you need me to; I will just need some guidance and help along the way. :)

Thanks for looking into this! I would love to run FreeBSD on this machine at some point :D

It seems that the issue is because ath10k_wmi_tx_beacons_nowait is holding the conf lock, a non-sleepable lock while, ath10k_htt_rx_ring_refill is trying to lock on a non-sleepable rx lock. The thing about dma buffers is you cant make them while being locked on another lock, or so far thats how i'm seeing it the "freebsd" way. lol

Hey I submitted some changes I worked on to my repository under this branch, it compiles and I believe it solves your issue, please let me know.
https://github.com/Geramy/athp/tree/athp_parent_dma_allocate
I am new at this and maybe I thought I solved your issue butttttt it looks promising to what i did and what your bug was and I was able to easily find what the crash log said due to my recent discovery of the lock issues that happen 👍

Howdy! I tried the updated athp_parent_dma_allocate branch, and good news! No panic on driver load :)

It seems to get stuck in a loop after loading it though. It also panicked when I tried to unload the driver, but based on the output that's not surprising. Crash info is here: https://gist.github.com/bradleythughes/3954a110d43d805b034f9c5047b4a7f8#file-core-txt-2

The dmesg output from the driver is in the dump, which I've copied below:

athp0: <QCA6174> mem 0xdc000000-0xdc1fffff at device 0.0 on pci2
athp_pci_attach: msicount=8, msixcount=0
athp0: athp_pci_attach: 8 MSI interrupts
athp0: ath10k_pci_alloc_pipes: WARNING: configuring 4k dmamap size for pipe 5; figure out what to do instead
athp0: ath10k_pci_alloc_pipes: WARNING: configuring 4k dmamap size for pipe 6; figure out what to do instead
athp0: athp_pci_attach: chipid: 0x00340aff
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c
athp0: wmi unified ready event not received
athp0: ath10k_pci_irq_sync: TODO
athp0: ath10k_pci_kill_tasklet: called
athp0: ath10k_htt_tx_free: called
athp0: ath10k_htt_tx_free: tearing down htt locks
athp0: could not init core (-60)
athp0: could not probe fw, clean up allocations, memory and retry. (-60)
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: athp_pci_detach: called
athp0: ath10k_core_unregister: TODO

athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c

You might be missing the firmware files in /boot/firmware

idk about the directory "athp_QCA6174_hw3.0/firmware-5.bin"

As requested, here is PCI info about the device, from pciconf -lv:

none8@pci0:2:0:0:	class=0x028000 card=0x143a1a56 chip=0x003e168c rev=0x32 hdr=0x00
    vendor     = 'Qualcomm Atheros'
    device     = 'QCA6174 802.11ac Wireless Network Adapter'
    class      = network

Hey, I tihnk part of the problem is we don't have the right revision setup for this chip.
we have 0x30 0x20 0x10 but not 0x32. let me know if you see that too

Thats not the problem.

Just to verify the two files names you should have are, athp_QCA6174_hw3.0_firmware.bin and athp_QCA6174_hw3.0_board.bin under the firmwares folder.
You may want to try a different firmware file.
https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0
and read the following:
https://askubuntu.com/questions/1063679/ath10k-and-qca6174-causing-pcie-errors-firmware-crashes-and-connection-drops

Is there a firmware version 6

Please try my new branch, I think I may have made a bad change as in I tested it but for some reason it didnt fully rebuild or something so when I tested it, I thought the change worked, I just retested it and found it it was having issues with the changes I made, so I made a small bug fix which should have fixed the bug I had made. It did not undo my dma changes, it just fixed the bug that stopped the firmwares from loading. now it loads. https://github.com/Geramy/athp/tree/tx_power_change

When you are done trying that I have a new branch i've jsut tested and it seems to be amazing :) https://github.com/Geramy/athp/tree/NEW_ATHP_ARVIF_LOCK
It starts so quick after the locking changes I have made, its great. LMK what happens thanks!

Hello folks,

I'm with a dell xps 9380 with the same hardware/problem here:

none10@pci0:2:0:0: class=0x028000 card=0x143a1a56 chip=0x003e168c rev=0x32 hdr=0x00
vendor = 'Qualcomm Atheros'
device = 'QCA6174 802.11ac Wireless Network Adapter'
class = network

athp0: mem 0xdc000000-0xdc1fffff at device 0.0 on pci2
athp_pci_attach: msicount=8, msixcount=0
athp0: athp_pci_attach: 8 MSI interrupts
athp0: ath10k_pci_alloc_pipes: WARNING: configuring 4k dmamap size for pipe 5; figure out what to do instead
athp0: ath10k_pci_alloc_pipes: WARNING: configuring 4k dmamap size for pipe 6; figure out what to do instead
athp0: athp_pci_attach: chipid: 0x00340aff
athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin
athp_cal-pci-athp0.bin: could not load firmware image, error 2
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_board.bin
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-5.bin
athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, error 2
athp0: could not fetch firmware file 'athp_QCA6174_hw3.0/firmware-5.bin': -1
athp0: ath10k_fetch_fw_file: firmware_get: athp_QCA6174_hw3.0_firmware-4.bin
athp0: ath10k_core_init_firmware_features: hardware crypto
athp0: ath10k_download_cal_dt: TODO: device tree check
athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x0000006c

Fatal trap 12: page fault while in kernel mode
cpuid = 7; apic id = 07
fault virtual address = 0x0
fault code = supervisor write data, page not present
instruction pointer = 0x20:0xffffffff84f9d189
stack pointer = 0x28:0xfffffe00995695c0
frame pointer = 0x28:0xfffffe0099569620
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 (athp0 ath10k_at_wq)
trap number = 12

I'm using the ARVIF_LOCK brach;

root@Radagast:/home/lbalbi/Src/athp/athp # git branch

  • NEW_ATHP_ARVIF_LOCK

And tried all firmwares from : https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0

Do I'm making something wrong, or missing something?

I can test any code you wish, if this help.

I've put the core.txt at https://drive.google.com/drive/folders/12m3JDlMCeK-YYgNQeaJTK6dp2D_ytMgQ?usp=sharing.

Thank's in advanced

Best's
Balbi

Have you tried the above resoluion?s? Please make a new ticket