Skip to content
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

Load driver get kernel Trace from dmesg. #329

Open
yjdwbj opened this issue Feb 22, 2020 · 1 comment
Open

Load driver get kernel Trace from dmesg. #329

yjdwbj opened this issue Feb 22, 2020 · 1 comment

Comments

@yjdwbj
Copy link

yjdwbj commented Feb 22, 2020

hi, when i build this source . got kernel panic .

[47715.871907] RTL871X: module init start
[47715.871910] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[47715.871910] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[47716.023197] ------------[ cut here ]------------
[47716.023236] WARNING: CPU: 0 PID: 3773 at wiphy_register.cold.8+0x196/0x236 [cfg80211]
[47716.023237] Modules linked in: rtl8812au(O+) mt7601Uap(O) rtl8192cu rtl_usb rtl8192c_common rtlwifi mac80211 libarc4 cfg80211 sha256_ssse3 sha256_generic nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype br_netfilter xt_conntrack iptable_mangle xt_CHECKSUM ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp llc nf_tables ip6table_filter ip6_tables iptable_filter dm_thin_pool dm_persistent_data dm_bufio dm_bio_prison dm_mod nfnetlink tun iptable_nat xt_MASQUERADE bpfilter overlay openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) squashfs cpufreq_powersave vboxdrv(O) cpufreq_userspace cpufreq_conservative binfmt_misc joydev edac_mce_amd evdev crc32_pclmul snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep ghash_clmulni_intel fam15h_power snd_hda_core snd_pcm_oss snd_mixer_oss sp5100_tco pcspkr k10temp snd_pcm snd_timer sg snd soundcore video button
[47716.023283]  acpi_cpufreq loop ip_tables x_tables hid_generic usbhid amdgpu gpu_sched ohci_pci crc32c_intel r8169 ehci_pci i2c_piix4 ohci_hcd ehci_hcd realtek xhci_pci libphy xhci_hcd radeon sd_mod usbcore usb_common ttm rtc_cmos [last unloaded: rtl8821au]
[47716.023301] CPU: 0 PID: 3773 Comm: systemd-udevd Tainted: G        W  O      5.3.8-20191102-lcy #2
[47716.023302] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./F2A88XM-D3HP, BIOS F2 12/24/2015
[47716.023313] RIP: 0010:wiphy_register.cold.8+0x196/0x236 [cfg80211]
[47716.023316] Code: e9 0f 87 fc ff 48 c7 c7 08 ba a0 a0 e8 50 5f 73 e0 0f 0b 41 bc ea ff ff ff e9 f6 86 fc ff 48 c7 c7 08 ba a0 a0 e8 37 5f 73 e0 <0f> 0b 41 bc ea ff ff ff e9 dd 86 fc ff 48 c7 c7 08 ba a0 a0 e8 1e
[47716.023317] RSP: 0018:ffffc90004973ac0 EFLAGS: 00010246
[47716.023319] RAX: 0000000000000024 RBX: ffff8883f218f300 RCX: 0000000000000000
[47716.023321] RDX: 0000000000000000 RSI: ffff88842fa11a58 RDI: ffff88842fa11a58
[47716.023322] RBP: ffffc90004973b28 R08: 0000000000000583 R09: 0000000000000004
[47716.023323] R10: 0000000000000000 R11: 0000000000000001 R12: 000000000000034e
[47716.023324] R13: ffff88819e536830 R14: ffffffffa0cf85a0 R15: ffff88819e536800
[47716.023326] FS:  00007f019fe36d40(0000) GS:ffff88842fa00000(0000) knlGS:0000000000000000
[47716.023327] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[47716.023329] CR2: 00005653374abd70 CR3: 00000002603a8000 CR4: 00000000000406f0
[47716.023330] Call Trace:
[47716.023395]  ? _rtw_malloc+0x24/0x26 [rtl8812au]
[47716.023444]  ? _rtw_zmalloc+0x2b/0x3c [rtl8812au]
[47716.023495]  ? _rtw_memcpy+0x7/0x9 [rtl8812au]
[47716.023549]  ? rtw_5g_rates_init+0x11/0x13 [rtl8812au]
[47716.023604]  ? rtw_spt_band_alloc+0xc8/0xca [rtl8812au]
[47716.023659]  rtw_wdev_alloc+0xfa/0x269 [rtl8812au]
[47716.023716]  rtw_usb_if1_init+0x139/0x214 [rtl8812au]
[47716.023772]  rtw_drv_init+0x228/0x2cd [rtl8812au]
[47716.023786]  usb_probe_interface+0x108/0x250 [usbcore]
[47716.023794]  really_probe+0xe1/0x270
[47716.023799]  driver_probe_device+0x59/0xd0
[47716.023802]  device_driver_attach+0x66/0x70
[47716.023806]  __driver_attach+0x54/0xc0
[47716.023809]  ? device_driver_attach+0x70/0x70
[47716.023811]  bus_for_each_dev+0x72/0xb0
[47716.023815]  bus_add_driver+0x1c2/0x1e0
[47716.023819]  driver_register+0x66/0xb0
[47716.023828]  usb_register_driver+0x86/0x140 [usbcore]
[47716.023865]  rtw_drv_entry+0x7d/0x1000 [rtl8812au]
[47716.023868]  ? 0xffffffffa0a27000
[47716.023871]  do_one_initcall+0x42/0x18f
[47716.023876]  ? _cond_resched+0x10/0x20
[47716.023881]  ? kmem_cache_alloc+0x13f/0x1d0
[47716.023885]  do_init_module+0x50/0x200
[47716.023888]  load_module+0x1c69/0x1da0
[47716.023891]  ? __symbol_get+0x90/0x90
[47716.023895]  __se_sys_finit_module+0xe0/0xf0
[47716.023898]  do_syscall_64+0x4a/0x120
[47716.023902]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[47716.023905] RIP: 0033:0x7f019ff2bf59
[47716.023908] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
[47716.023910] RSP: 002b:00007ffdd5277c98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[47716.023912] RAX: ffffffffffffffda RBX: 00005653374aef60 RCX: 00007f019ff2bf59
[47716.023914] RDX: 0000000000000000 RSI: 00007f019fe2bcad RDI: 0000000000000006
[47716.023915] RBP: 00007f019fe2bcad R08: 0000000000000000 R09: 0000000000000000
[47716.023916] R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000000
[47716.023917] R13: 000056533749f4c0 R14: 0000000000020000 R15: 00005653374aef60
[47716.023919] ---[ end trace 69a271b1bcda66be ]---
[47716.141824] usb 6-5: reset high-speed USB device number 26 using ehci-pci
[47716.270888] usbcore: registered new interface driver rtl8812au
[47716.270892] RTL871X: module init ret=0
  • and device info of wifi is blow
rtl8812AU_8821AU_linux$ lsusb -s 006:026 -v

Bus 006 Device 026: ID 0bda:0811 Realtek Semiconductor Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x0811 
  bcdDevice            2.00
  iManufacturer           1 Realtek 
  iProduct                2 802.11ac WLAN Adapter 
  iSerial                 3 00e04c000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x003c
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           6
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 802.11ac WLAN Adapter 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x000c
  bNumDeviceCaps          1
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      HIRD Link Power Management (LPM) Supported
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered
  • and the host kernel i'am custom build .
rtl8812AU_8821AU_linux$ uname -a
Linux debian 5.3.8-20191102-lcy #2 SMP Sat Nov 2 22:40:06 CST 2019 x86_64 GNU/Linux

I hope everyone to help me.Thank you .

@ChoKyuWon
Copy link

I have same issue and my dmesg is like this:

[    5.950601] rtl8812au: module verification failed: signature and/or required key missing - tainting kernel
[    5.975661] RTL871X: module init start
[    5.975661] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[    5.975662] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[    6.039044] usbcore: registered new interface driver snd-usb-audio
[    6.116571] kauditd_printk_skb: 1 callbacks suppressed
[    6.116573] audit: type=1130 audit(1589342955.466:12): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=lvm2-monitor comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.148280] audit: type=1130 audit(1589342955.496:13): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-fsck@dev-disk-by\x2duuid-487B\x2dC997 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.165156] ------------[ cut here ]------------
[    6.165177] WARNING: CPU: 1 PID: 469 at net/wireless/core.c:867 wiphy_register+0x6e6/0x940 [cfg80211]
[    6.165178] Modules linked in: vfat fat rtl8812au(OE+) cfg80211 snd_usb_audio snd_usbmidi_lib mousedev snd_rawmidi joydev input_leds snd_seq_device mc snd_hda_codec_hdmi(+) edac_mce_amd nouveau kvm_amd kvm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel irqbypass ttm snd_intel_nhlt drm_kms_helper snd_hda_codec eeepc_wmi snd_hda_core asus_wmi ucsi_ccg(+) battery typec_ucsi snd_hwdep crct10dif_pclmul drm crc32_pclmul typec wmi_bmof mxm_wmi igb sparse_keymap snd_pcm agpgart ghash_clmulni_intel rfkill syscopyarea snd_timer sysfillrect snd aesni_intel sysimgblt sp5100_tco i2c_algo_bit crypto_simd dca ccp fb_sys_fops soundcore i2c_piix4 cryptd i2c_nvidia_gpu k10temp glue_helper tpm_crb pcspkr tpm_tis wmi tpm_tis_core tpm pinctrl_amd gpio_amdpt evdev mac_hid rng_core acpi_cpufreq uinput sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_logitech_hidpp uas usb_storage hid_logitech_dj hid_generic usbhid hid crc32c_intel ahci libahci libata
[    6.165217]  xhci_pci xhci_hcd scsi_mod
[    6.165221] CPU: 1 PID: 469 Comm: systemd-udevd Tainted: G           OE     5.4.23-1-MANJARO #1
[    6.165222] Hardware name: System manufacturer System Product Name/PRIME X470-PRO, BIOS 5406 11/13/2019
[    6.165237] RIP: 0010:wiphy_register+0x6e6/0x940 [cfg80211]
[    6.165239] Code: ff e9 76 fa ff ff 0f 0b b8 ea ff ff ff e9 6a fa ff ff 0f 0b b8 ea ff ff ff e9 5e fa ff ff 0f 0b b8 ea ff ff ff e9 52 fa ff ff <0f> 0b b8 ea ff ff ff e9 46 fa ff ff 0f 0b b8 ea ff ff ff e9 3a fa
[    6.165240] RSP: 0018:ffffbe9c80ecb9d0 EFLAGS: 00010246
[    6.165241] RAX: ffffffffc1034210 RBX: ffff9fb4285e9b00 RCX: ffffffffc1034200
[    6.165242] RDX: ffffffffc10342a0 RSI: 0000000000000001 RDI: 000000000000001e
[    6.165243] RBP: ffffbe9c80ecba58 R08: 0000000000000003 R09: 0000000000000004
[    6.165244] R10: ffffbe9c80558fd6 R11: ffff9fb438236c24 R12: ffff9fb4285e9b00
[    6.165245] R13: ffffbe9c80ecb9e0 R14: ffff9fb435611000 R15: ffff9fb435348000
[    6.165246] FS:  00007f79a8927840(0000) GS:ffff9fb43e840000(0000) knlGS:0000000000000000
[    6.165247] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.165248] CR2: 00007f1f3b87bfd8 CR3: 00000007f8fb6000 CR4: 0000000000340ee0
[    6.165249] Call Trace:
[    6.165256]  ? __kmalloc+0x196/0x270
[    6.165291]  ? _rtw_malloc+0x29/0x2a [rtl8812au]
[    6.165318]  ? _rtw_memcpy+0xc/0xd [rtl8812au]
[    6.165349]  ? rtw_spt_band_alloc+0xa6/0xa8 [rtl8812au]
[    6.165376]  rtw_wdev_alloc+0xff/0x26e [rtl8812au]
[    6.165403]  rtw_usb_if1_init+0x130/0x1f8 [rtl8812au]
[    6.165425]  rtw_drv_init+0x235/0x2bd [rtl8812au]
[    6.165430]  usb_probe_interface+0xe0/0x280
[    6.165434]  really_probe+0x298/0x3c0
[    6.165438]  driver_probe_device+0xb6/0x100
[    6.165441]  device_driver_attach+0x53/0x60
[    6.165443]  __driver_attach+0x8a/0x150
[    6.165445]  ? device_driver_attach+0x60/0x60
[    6.165447]  bus_for_each_dev+0x89/0xd0
[    6.165449]  bus_add_driver+0x14d/0x1f0
[    6.165452]  driver_register+0x6c/0xc0
[    6.165454]  usb_register_driver+0x84/0x120
[    6.165456]  ? 0xffffffffc0981000
[    6.165474]  rtw_drv_entry+0x82/0x1000 [rtl8812au]
[    6.165478]  do_one_initcall+0x59/0x234
[    6.165482]  do_init_module+0x5c/0x230
[    6.165484]  load_module+0x285c/0x2b20
[    6.165489]  ? __do_sys_finit_module+0xbb/0x120
[    6.165491]  __do_sys_finit_module+0xbb/0x120
[    6.165494]  do_syscall_64+0x4e/0x140
[    6.165498]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    6.165499] RIP: 0033:0x7f79a96a3f8d
[    6.165502] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d3 4e 0c 00 f7 d8 64 89 01 48
[    6.165503] RSP: 002b:00007ffda3969298 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    6.165504] RAX: ffffffffffffffda RBX: 000055dda26c9af0 RCX: 00007f79a96a3f8d
[    6.165505] RDX: 0000000000000000 RSI: 00007f79a931684d RDI: 000000000000000f
[    6.165506] RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000000
[    6.165506] R10: 000000000000000f R11: 0000000000000246 R12: 00007f79a931684d
[    6.165507] R13: 0000000000000000 R14: 000055dda25bc640 R15: 000055dda26c9af0
[    6.165510] ---[ end trace 20d88e23c6a334a2 ]---
  • kernel version and distros:
$ uname -a
Linux kyuwon 5.4.23-1-MANJARO #1 SMP PREEMPT Wed May 13 12:16:00 KST 2020 x86_64 GNU/Linux

In my case, I use https://github.com/gnab/rtl8812au and It work well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants