-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page Fault for QCA6174 #24
Comments
After change the board data from the https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/board.bin , loading the driver work. Now the issue is when I create the wlan interface by using command "ifconfig wlan0 create wlandev athp0" , the system panic , I need some help, plz. The log: Fatal trap 12: page fault while in kernel mode |
Hey Guys, Nathan Kuo |
Hello, i can confirm i have exactly the same problem, a panic due to a mutex, on FreeBSD current |
Sorry I did not read the entire post we are currently working on mutex issues. |
What machines or laptops are you guys running? |
Hi Geramy,
Freebsd 12 running on thinkpad t400
The attached is my note.
Thanks.
Nathan Kuo
From: Geramy [mailto:[email protected]]
Sent: Friday, May 8, 2020 11:23 AM
To: erikarn/athp
Cc: NathanKuo0821; Author
Subject: Re: [erikarn/athp] Page Fault for QCA6174 (#24)
What machines or laptops are you guys running?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#24 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADRAYFVLVDCSVQJM6FS5FSDRQN3K3ANCNFSM4KU7XVBQ> .
…--
Avast 防毒軟體已檢查此封電子郵件的病毒。
https://www.avast.com/antivirus
install freebsd 12
login : root
password : 12345678
dhclient em0
#### UI
pkg update
pkg install xorg
pkg install gnome3
pkg install vim
vim /etc/rc.conf
gdm_enable="YES"
gnome_enable="YES"
reboot
#### group root
vim /etc/group
wheel:*:0:root,jjplus
#### download kernel
fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
tar -C / -xvf /tmp/src.txz
#### compile kernel
cd /usr/src
make kernel-toolchain
make kernel
make buildkernel KERNCONF=GENERIC
make installkernel KERNCONF=GENERIC
#### download athp for ath10k
git clone --branch NEW_ATHP_ARVIF_LOCK https://github.com/Geramy/athp
vim /root/athp/otus/freebsd/src/sys/modules/build_module
#!/bin/sh
X_SRCDIR=${X_SRCDIR:="/usr/src"}
X_KERNDIR=${X_KERNDIR:="/usr/obj/usr/src/amd64.amd64/sys/GENERIC"}
X_KMODOWN=${X_KMODOWN:="root"}
X_KMODGRP=${X_KMODGRP:="root"}
# This allows for -HEAD includes for net80211 ..
env CFLAGS="-I../../../sys/" \
make \
MODULES_OVERRIDE="" \
DEBUG_FLAGS="-g" \
DEBUG_FLAGS="-g" \
KMODDIR="/root/athp/otus/freebsd/modules/" \
KMODOWN="${X_KMODOWN}" \
KMODGRP="${X_KMODGRP}" \
MAKESYSPATH="${X_SRCDIR}/share/mk" \
SYSDIR="${X_SRCDIR}/sys/" \
KERNBUILDDIR="${X_KERNDIR}" \
KERN_DEBUGDIR="" \
$@
#### ref athfw/QCA6174 to copy firmware5
#### FreeBSD 12.0 Mounting Drives
pkg install fusefs-ntfs fusefs-ext4fuse fusefs-ext2 fusefs-simple-mtpfs
reboot
kldload fuse
ntfs-3g /dev/da0s1 /mnt/
#### ref web site
https://headthirst.com/freebsd-mounting.html
https://unix.stackexchange.com/questions/204956/how-do-you-install-the-freebsd10-kernel-sources
https://github.com/Geramy/athp
#11
FreeBSD-12.0-RELEASE-amd64-dvd1.imgPTN
|
i have an older razer blade 2015 model the QCA6174 is branded as "killer networking" wireless card |
hello @Geramy i'm on a acer aspire S13 |
hi! Does anyone have the exact models of their cards? Even the FCC IDs stamped on them would be nice. There are a handful of QCA6174 variants out there and they have different data path / command path needs. I've fixed one bug in the RX path that caused a panic on my QCA6174 HW3.2, but there are other NICs out there and other bugs to chase. I'd like to try and fix them all but I will need more NICs to test! Thanks! |
@erikarn just compiled your module (cheating on the MA_OWNED undefined in my case). Here is the dmesg when i load the if_athp after compilation:
No interface appears in ifconfig, certainly due to the firmware issue |
i just cheated again, adding the new modules and replacing firmware-5 with firmware-6 (which exists not the first) in the code.
|
Alienware 15 R2 (Killer 1535) Output from PS - The |
please do throw patches at me, I'm tidying up the tree right now in an
attempt to get it ready to land.
…-adrian
On Tue, 23 Aug 2022 at 08:31, DH3S3N ***@***.***> wrote:
hi! Does anyone have the exact models of their cards? Even the FCC IDs
stamped on them would be nice.
There are a handful of QCA6174 variants out there and they have different
data path / command path needs.
I've fixed one bug in the RX path that caused a panic on my QCA6174 HW3.2,
but there are other NICs out there and other bugs to chase.
I'd like to try and fix them all but I will need more NICs to test! Thanks!
Alienware 15 R2 (Killer 1535)
MSIP-CRM-ATH-QCNFA364A
FCC ID: PPD-QCNFA364AH
Qualcomm Atheros
Model: QCNFA364A
CMIITID:2015AJ1614(M)
IC: 4104A-QCNFA364A
CCAI15LP0770T
[image:
Dual-band-Killer1535-802-11ac-M-2-Wireless-Card-For-Bigfoot-Killer-Wireless-AC-1535-Atheros
jpg_220x220]
<https://user-images.githubusercontent.com/59414907/186199377-fe0117b1-6547-4e95-8c00-a2ddcf5326ab.jpg>
[image:
Dual-band-Killer1535-802-11ac-M-2-Wireless-Card-For-Bigfoot-Killer-Wireless-AC-1535-Atheros
jpg_220x220-2]
<https://user-images.githubusercontent.com/59414907/186199477-ed3c71cc-33a0-408d-aa1b-52671c26559f.jpg>
6
—
Reply to this email directly, view it on GitHub
<#24 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2L3IQDOIGKSGYMEU2X63V2TVEXANCNFSM4KU7XVBQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I running QCA6174 with FreeBSD RELEASE 12.0 on my laptop, after load the driver the page fault error occurred.
I try to replace the board data based on issues #20 , but the issue still exist.
Does anyone have an idea for this issue? I need some help.
Infomation:
OS : FreeBSD 12.0
Driver : git clone --branch NEW_ATHP_ARVIF_LOCK https://github.com/Geramy/athp
Laptop : Lenovo T400
Command:
kldload athp_QCA6174_hw3.0_board.bin
kldload athp_QCA6174_hw3.0_firmware-4.bin
kldload if_athp
Log:
FreeBSD 12.0-RELEASE FreeBSD 12.0-RELEASE GENERIC amd64
panic: page fault
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Unread portion of the kernel message buffer:
athp0: wmi unified ready event not received
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address = 0x58
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff82a26fc1
stack pointer = 0x28:0xfffffe002e63b6c0
frame pointer = 0x28:0xfffffe002e63b720
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
panic: page fault
cpuid = 1
time = 1581651376
KDB: stack backtrace:
0 0xffffffff80be7977 at kdb_backtrace+0x67
1 0xffffffff80b9b563 at vpanic+0x1a3
2 0xffffffff80b9b3b3 at panic+0x43
3 0xffffffff8107496f at trap_fatal+0x35f
4 0xffffffff810749c9 at trap_pfault+0x49
5 0xffffffff81073fee at trap+0x29e
6 0xffffffff8104f1d5 at calltrap+0x8
7 0xffffffff82a26e81 at ath10k_ce_init_pipe+0x31
8 0xffffffff82a28a59 at ath10k_pci_init_pipes+0x49
9 0xffffffff82a223a0 at ath10k_pci_warm_reset+0xf0
10 0xffffffff82a2225f at ath10k_pci_safe_chip_reset+0x3f
11 0xffffffff82a2a624 at ath10k_pci_hif_stop+0x64
12 0xffffffff82a2f14c at ath10k_hif_stop+0x2c
13 0xffffffff82a2e30b at ath10k_core_start+0x81b
14 0xffffffff82a2f837 at ath10k_core_probe_fw+0x2f7
15 0xffffffff82a32c88 at attempt_ath10k_core_probe_fw+0x18
16 0xffffffff82a30c97 at ath10k_core_register_work+0x27
17 0xffffffff80bf9cb4 at taskqueue_run_locked+0x154
Uptime: 4m44s
https://imgur.com/L4x229k
https://imgur.com/5fiUXcb
https://imgur.com/j6vGwho
Nathan Kuo
The text was updated successfully, but these errors were encountered: