Does Jetson NX support the bcm43752a2 series WiFi module, collectively referred to as ap6275p, which is a PCI interface WiFi/BT module. Check if bcmdhd_pcie in the driver has been partially adapted. I tried to adapt it but it didn’t work. Has this driver been adapted before?
No, we didn’t test this before.
What kind of error do you hit there?
[ 143.700583] [dhd] dhd_pcie_dump_wrapper_regs: OOBR Reg
[ 143.700720] [dhd] sbreg: addr:0x18110100 val:0x1 read:1
[ 143.700799] [dhd] sbreg: addr:0x18110104 val:0x8b read:1
[ 143.700874] [dhd] sbreg: addr:0x18110108 val:0xa3 read:1
[ 143.700951] [dhd] sbreg: addr:0x1811010c val:0x471 read:1
[ 143.701110] [dhd]
------- DUMPING PCIE core Registers -------
[ 143.701367] [dhd] ClkReq0(0x1e10)=0x1f100000 ClkReq1(0x1e14)=0x0 ClkReq2(0x1e18)=0x0 ClkReq3(0x1e1c)=0x0
[ 143.701530] [dhd] ltssm_hist_0(0x1cec)=0xffffffff ltssm_hist_1(0x1cf0)=0xffff8109 ltssm_hist_2(0x1cf4)=0xa101112 ltssm_hist_3(0x1cf8)=0x13141501
[ 143.701655] [dhd] trefup(0x1814)=0xb805188c trefup_ext(0x1818)=0x608a14
[ 143.701783] [dhd] errlog(0x40)=0x0 errlog_addr(0x44)=0x0 Function_Intstatus(0xc10)=0x80 Function_Intmask(0xc14)=0x0 Power_Intstatus(0xc18)=0x0 Power_Intmask(0xc1c)=0x80
[ 143.701879] [dhd] err_hdrlog1(0x1b0)=0x0 err_hdrlog2(0x1b4)=0x0 err_hdrlog3(0x1b8)=0x0 err_hdrlog4(0x1bc)=0x0
[ 143.701956] [dhd] err_code(0x1c0)=0x0 PCIH2D_MailBox(00000140)=00000000
[ 143.702223] [dhd] CC HW_WAR :0xff00
[ 143.702436] [dhd] ARM HW_WAR:0xff00
[ 143.702616] [dhd] PCIE HW_WAR :0xff
[ 143.702874] [dhd] MINRESMASK :0x1
[ 143.702931] [dhd]
------- DUMPING DMA Registers -------
[ 143.703030] [dhd] HostToDev TX: XmtCtrl=0x03300883 XmtPtr=0x00004ce0
[ 143.703142] [dhd] : XmtAddrLow=0x002a4c30 XmtAddrHigh=0x00000000
[ 143.703217] [dhd] : XmtStatus0=0x20004ce0 XmtStatus1=0x00004ce0
[ 143.703336] [dhd] HostToDev RX: RcvCtrl=0x00000000 RcvPtr=0x00004820
[ 143.703414] [dhd] : RcvAddrLow=0x002a4820 RcvAddrHigh=0x00000000
[ 143.703488] [dhd] : RcvStatus0=0x00004820 RcvStatus1=0x00004820
[ 143.703561] [dhd] DevToHost TX: XmtCtrl=0x012c0803 XmtPtr=0x00003ac0
[ 143.703632] [dhd] : XmtAddrLow=0x002a2f00 XmtAddrHigh=0x00000000
[ 143.703705] [dhd] : XmtStatus0=0x20003ac0 XmtStatus1=0x00003ac0
[ 143.703842] [dhd] DevToHost RX: RcvCtrl=0x00000000 RcvPtr=0x00001ef0
[ 143.703957] [dhd] : RcvAddrLow=0x002a1ef0 RcvAddrHigh=0x00000000
[ 143.704219] [dhd] : RcvStatus0=0x00001ef0 RcvStatus1=0x00001ef0
[ 143.704354] [dhd]
lb_rxp_stop_thr_hitcnt: 0 lb_rxp_strt_thr_hitcnt: 0
[ 143.704415] [dhd]
lb_rxp_napi_sched_cnt: 0 lb_rxp_napi_complete_cnt: 0
[ 143.704521] [dhd] dhd_query_bus_erros: FW TRAP has occurred, cannot proceed
[ 143.704604] [dhd] [Repeats 0 times]
[ 143.704675] [dhd] dhd_os_send_hang_message: Event HANG send up due to re=0 te=0 s=5
[ 143.704737] [dhd] Driver: 101.10.591.46.22 (20231003-3)
[dhd] Firmware: wl0: Jul 12 2022 18:54:54 version 18.35.387.23.146 (g412cc5ec) FWID 01-93c53be6
[dhd] CLM: 9.9.12_SS (2021-10-12 17:03:28)
[dhd] Chip: aae8 Rev 2
[ 143.704801] [dhd] MAC b8:2d:28:5a:3b:30
[ 143.705120] [dhd] dhdpcie_bus_remove_prep: making DHD_BUS_DOWN
[ 143.705276] [dhd] dhd_detach: making dhdpub up FALSE
[ 143.705299] [dhd] dhd_hang_process: device is not ready
[ 143.705454] [dhd] dhd_detach(): thread:dhd_watchdog_thread:589 wait for terminate
[ 143.705516] [dhd] dhd_detach(): thread:dhd_watchdog_thread:589 terminated OK
[ 143.773101] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 3 → mode 0
[ 143.773114] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=40, TCPDATA_INFO_MAXNUM=40
[ 143.784003] [dhd] dhdpcie_bus_release: disable pcie dev
[ 143.784044] [dhd] dhdpcie_bus_release: stop host dev dev
[ 143.784060] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 7, size 0
[ 143.784284] ------------[ cut here ]------------
[ 143.784290] pcieh 0004:01:00.0: disabling already-disabled device
[ 143.784337] WARNING: CPU: 4 PID: 1405 at drivers/pci/pci.c:2150 pci_disable_device+0xe4/0xf0
[ 143.784343] Modules linked in: bcmdhd_pcie(E+)
[ 143.784368] CPU: 4 PID: 1405 Comm: insmod Tainted: G E 5.10.120-tegra #22
[ 143.784375] Hardware name: Unknown NVIDIA Jetson Xavier NX Developer Kit/NVIDIA Jetson Xavier NX Developer Kit, BIOS 4.1-33958178 08/01/2023
[ 143.784383] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=–)
[ 143.784390] pc : pci_disable_device+0xe4/0xf0
[ 143.784396] lr : pci_disable_device+0xe4/0xf0
[ 143.784401] sp : ffff8000136eb740
[ 143.784408] x29: ffff8000136eb740 x28: ffffa3adbc1377f8
[ 143.784419] x27: ffff655f7653e280 x26: ffff655f7653e600
[ 143.784431] x25: ffff655f7653ea00 x24: ffff655f76539f80
[ 143.784442] x23: ffffa3adbc142000 x22: ffffa3adbc0e3860
[ 143.784454] x21: ffffa3adbc129660 x20: ffff655f449ea0b8
[ 143.784465] x19: ffff655f449ea000 x18: 0000000000000010
[ 143.784476] x17: 0000000000000000 x16: ffffa3ade34db390
[ 143.784509] x15: ffff655f7b969430 x14: ffffffffffffffff
[ 143.784520] x13: ffff8000936eb317 x12: ffff8000136eb31f
[ 143.784531] x11: ffff655f73d00920 x10: 0000000000000640
[ 143.784544] x9 : 00000000fffffffe x8 : 69642d7964616572
[ 143.784577] x7 : 6c6120676e696c62 x6 : c0000000ffffefff
[ 143.784588] x5 : ffff6560bfe29958 x4 : ffffa3ade4cd7a28
[ 143.784599] x3 : 0000000000000001 x2 : ffff6560bfe29960
[ 143.784610] x1 : 0000000000000000 x0 : 0000000000000000
[ 143.784622] Call trace:
[ 143.784630] pci_disable_device+0xe4/0xf0
[ 143.784732] dhdpcie_pci_probe+0x1e8/0x8c0 [bcmdhd_pcie]
[ 143.784740] pci_device_probe+0xe8/0x1a0
[ 143.784750] really_probe+0xf8/0x3d0
[ 143.784764] driver_probe_device+0x60/0xc0
[ 143.784772] device_driver_attach+0x78/0x80
[ 143.784778] __driver_attach+0x68/0xf0
[ 143.784802] bus_for_each_dev+0x84/0xe0
[ 143.784809] driver_attach+0x34/0x40
[ 143.784815] bus_add_driver+0x150/0x1f0
[ 143.784822] driver_register+0x68/0x120
[ 143.784829] __pci_register_driver+0x5c/0x70
[ 143.784919] dhdpcie_bus_register+0x50/0x120 [bcmdhd_pcie]
[ 143.785010] dhd_bus_register+0x24/0x50 [bcmdhd_pcie]
[ 143.785093] dhd_wifi_platform_load+0x60/0x2b0 [bcmdhd_pcie]
[ 143.785172] dhd_wifi_platform_register_drv+0x14c/0x190 [bcmdhd_pcie]
[ 143.785265] init_module+0x108/0x2b0 [bcmdhd_pcie]
[ 143.785274] do_one_initcall+0x50/0x2f0
[ 143.785285] do_init_module+0x50/0x200
[ 143.785309] load_module+0x2000/0x22f0
[ 143.785316] __do_sys_finit_module+0xb4/0x100
[ 143.785323] __arm64_sys_finit_module+0x2c/0x40
[ 143.785331] el0_svc_common.constprop.0+0x80/0x1d0
[ 143.785338] do_el0_svc+0x38/0xb0
[ 143.785347] el0_svc+0x1c/0x30
[ 143.785353] el0_sync_handler+0xa8/0xb0
[ 143.785359] el0_sync+0x16c/0x180
[ 143.785365] —[ end trace 1932b2509e11b90d ]—
[ 143.785487] [dhd] dhdpcie_pci_probe: PCIe Enumeration failed
[ 143.785504] [dhd] dhdpcie_pci_probe : mutex is released.
[ 143.785834] [dhd] dhdpcie_bus_register: dhdpcie initialize failed.
[ 143.785903] [dhd] dhd_wifi_platform_load_pcie: dhd_bus_register failed err=-1
[ 143.785991] [dhd] unregister wifi platform drivers
[ 143.785997] [dhd] wifi_platform_bus_enumerate device present 0
[ 143.786002] ======== Card detection to remove PCIE card! ========
[ 143.786012] [dhd] _dhd_module_init: Failed to load the driver, try cnt 0
[ 143.786027] [dhd] _dhd_module_init: Failed to load driver max retry reached**
[ 143.786053] [dhd] STATIC-MSG) dhd_static_buf_exit : Enter
[ 143.786577] [dhd] _dhd_module_init: Exit err=-1
This is a driver that is compatible with another set of drivers that I usually use and works properly. There is an error when running it, which seems to be related to dhd_query_bus_erros
Also, is it feasible for me to adapt based on the drivers provided by the system itself? The native driver adaptation process keeps reporting that the device cannot be found
We cannot answer this question. As I said this kind of driver and device were not tested on Jetson before.
Maybe consult with the card vendor about this situation first.