Jump to content

Orange Pi Zero, XR819 Driver, sunxi-mmc 1c10000.mmc: Cannot do DMA to address 0x00008000514a3870


yangqxliuy

Recommended Posts

I've change OpiZero's cpu from H2+ to H5, and made linux5.4.65 image with the option of "Orangepiplus (H5)" of the Build-Package which described in the Orangepi manual. After the linux startup, the output of command DMESG shows "sunxi-mmc 1c10000.mmc: Cannot do DMA to address 0x00008000514a3870", and TRACE as follows:

 

[  212.402793] xradio_wlan: version magic '5.15.27-station SMP preempt mod_unload aarch64' should be '5.4.65-sunxi64 SMP mod_unload aarch64'

[  248.019893] xradio_wlan: loading out-of-tree module taints kernel.

[  248.024327] xradio_wlan: module verification failed: signature and/or required key missing - tainting kernel

[  248.027506] xradio: XR819 device discovered

[  248.030479] sunxi-mmc 1c10000.mmc: Cannot do DMA to address 0x0000800051e83870

[  248.030507] sunxi-mmc 1c10000.mmc: overflow 0x0000800051e83870+8 of DMA mask ffffffff bus mask 0

[  248.030538] ------------[ cut here ]------------

[  248.030572] WARNING: CPU: 2 PID: 1513 at kernel/dma/direct.c:35 report_addr+0x38/0xa0

[  248.030578] Modules linked in: xradio_wlan(OE+) zstd rtl8xxxu rtl8192cu rtl_usb rtl8192c_common rtlwifi mac80211 cfg80211 libarc4 snd_soc_simple_card snd_soc_simple_card_utils sun8i_codec_analog sun8i_adda_pr_regmap sun4i_i2s sun4i_gpadc_iio sun4i_tcon sun8i_tcon_top sun8i_mixer cpufreq_dt zram sch_fq_codel usb_f_acm u_serial g_serial libcomposite ip_tables x_tables autofs4 fixed gpio_regulator

[  248.030691] CPU: 2 PID: 1513 Comm: insmod Tainted: G           OE     5.4.65-sunxi64 #2.2.2

[  248.030697] Hardware name: Xunlong Orange Pi Zero Plus (2pw5, Linux-Kernel Device Tree) (DT)

[  248.030707] pstate: 80000005 (Nzcv daif -PAN -UAO)

[  248.030720] pc : report_addr+0x38/0xa0

[  248.030731] lr : report_addr+0x98/0xa0

[  248.030736] sp : ffff800011e833c0

[  248.030741] x29: ffff800011e833c0 x28: ffff800011e83dd0

[  248.030752] x27: 0000000000000000 x26: ffff800011e836e8

[  248.030763] x25: ffff800011e83600 x24: 0000000000000000

[  248.030773] x23: 0000000000000002 x22: ffff000036706810

[  248.030782] x21: 0000000000000008 x20: ffff000035ccf000

[  248.030793] x19: ffff000036706810 x18: 0000000000000020

[  248.030802] x17: 00000000000012b0 x16: 00000000000012a0

[  248.030812] x15: ffff800011085000 x14: 6b73616d20414d44

[  248.030822] x13: 20666f20382b3037 x12: 3833386531353030

[  248.030832] x11: 3038303030307830 x10: 0000000000000000

[  248.030842] x9 : 0000000000000003 x8 : 00000000000001b4

[  248.030851] x7 : 0000000000000001 x6 : 0000000000000001

[  248.030861] x5 : 0000000000000000 x4 : 0000000000000001

[  248.030870] x3 : 0000000000000006 x2 : 6eac74d7450f9a00

[  248.030879] x1 : 6eac74d7450f9a00 x0 : 0000000000000000

[  248.030889] Call trace:

[  248.030903]  report_addr+0x38/0xa0

[  248.030914]  dma_direct_map_page+0x110/0x130

[  248.030924]  dma_direct_map_sg+0x78/0xe0

[  248.030939]  sunxi_mmc_request+0x70/0x4f0

[  248.030952]  __mmc_start_request+0x64/0x130

[  248.030962]  mmc_start_request+0x90/0xb8

[  248.030973]  mmc_wait_for_req+0x6c/0x100

[  248.030985]  mmc_io_rw_extended+0x250/0x2a8

[  248.030996]  sdio_io_rw_ext_helper+0x18c/0x230

[  248.031007]  sdio_memcpy_fromio+0x1c/0x28

[  248.031072]  sdio_data_read+0x1c/0x28 [xradio_wlan]

[  248.031118]  __xradio_read+0x28/0x40 [xradio_wlan]

[  248.031166]  xradio_reg_read+0x3c/0x60 [xradio_wlan]

[  248.031214]  xradio_load_firmware+0x34/0xe18 [xradio_wlan]

[  248.031261]  xradio_core_init+0x130/0x460 [xradio_wlan]

[  248.031308]  sdio_probe+0x130/0x164 [xradio_wlan]

[  248.031321]  sdio_bus_probe+0x12c/0x198

[  248.031337]  really_probe+0xdc/0x430

[  248.031348]  driver_probe_device+0xdc/0x130

[  248.031358]  device_driver_attach+0x6c/0x78

[  248.031367]  __driver_attach+0x9c/0x168

[  248.031376]  bus_for_each_dev+0x6c/0xc0

[  248.031385]  driver_attach+0x20/0x28

[  248.031394]  bus_add_driver+0x138/0x218

[  248.031404]  driver_register+0x60/0x110

[  248.031414]  sdio_register_driver+0x24/0x30

[  248.031463]  xradio_sdio_register+0x14/0x20 [xradio_wlan]

[  248.031510]  xradio_core_entry+0xc/0x1000 [xradio_wlan]

[  248.031523]  do_one_initcall+0x50/0x1a8

[  248.031537]  do_init_module+0x50/0x1f0

[  248.031547]  load_module+0x1f68/0x2510

[  248.031558]  __do_sys_finit_module+0xac/0x110

[  248.031568]  __arm64_sys_finit_module+0x1c/0x28

[  248.031583]  el0_svc_common.constprop.0+0x68/0x160

[  248.031594]  el0_svc_handler+0x20/0x80

[  248.031603]  el0_svc+0x8/0x1fc

[  248.031610] ---[ end trace d07a211fb8606773 ]---

[  248.031628] sunxi-mmc 1c10000.mmc: dma_map_sg failed

[  248.031637] sunxi-mmc 1c10000.mmc: map DMA failed

[  248.031662] xradio WRN: FWIO: can't read config register, err=-12.

[  248.043881] xradio PM-DEV: xradio_pm_release

root@orangepizeroplus:/home/orangepi# rmmod xradio_wlan.ko

rmmod: ERROR: Module xradio_wlan is in use

root@orangepizeroplus:/home/orangepi#

 

can give me some hints of clues to solve the problem ? thx.

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines