Wind River Support Network

HomeDefectsLIN1022-1256
Fixed

LIN1022-1256 : xilinx-zynq: WARNING check_for_illegal_area at kernel/dma/debug.c

Created: Aug 5, 2022    Updated: Nov 1, 2022
Resolved Date: Nov 1, 2022
Found In Version: 10.22.33.1
Fix Version: 10.22.33.2
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: BSP

Description

[ 2680.826037] ------------[ cut here ]------------ [ 2680.839360] WARNING: CPU: 0 PID: 129 at kernel/dma/debug.c:1073 check_for_illegal_area+0xe4/0x11c [ 2680.861465] DMA-API: chipidea-usb2 e0002000.usb: device driver maps memory from kernel text or rodata [addr=800f9000] [len=28672] [ 2680.890482] Modules linked in: sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 [ 2680.921726] CPU: 1 PID: 129 Comm: usb-storage Not tainted 5.15.58-yocto-standard #1 [ 2680.929428] Hardware name: Xilinx Zynq Platform [ 2680.933892] [<80111acc>] (unwind_backtrace) from [<8010b25c>] (show_stack+0x18/0x1c) [ 2680.941693] [<8010b25c>] (show_stack) from [<80cea484>] (dump_stack_lvl+0x58/0x70) [ 2680.949297] [<80cea484>] (dump_stack_lvl) from [<8012468c>] (__warn+0xcc/0xf8) [ 2680.956561] [<8012468c>] (__warn) from [<80cdf5e4>] (warn_slowpath_fmt+0x84/0xb8) [ 2680.964088] [<80cdf5e4>] (warn_slowpath_fmt) from [<801a778c>] (check_for_illegal_area+0xe4/0x11c) [ 2680.973088] [<801a778c>] (check_for_illegal_area) from [<801a907c>] (debug_dma_map_sg+0x80/0x154) [ 2680.981995] [<801a907c>] (debug_dma_map_sg) from [<801a3f1c>] (__dma_map_sg_attrs+0x114/0x128) [ 2680.990639] [<801a3f1c>] (__dma_map_sg_attrs) from [<801a3f48>] (dma_map_sg_attrs+0x18/0x24) [ 2680.999100] [<801a3f48>] (dma_map_sg_attrs) from [<8094be04>] (usb_hcd_map_urb_for_dma+0x1f4/0x320) [ 2681.008191] [<8094be04>] (usb_hcd_map_urb_for_dma) from [<8094c0c8>] (usb_hcd_submit_urb+0x198/0x21c) [ 2681.017441] [<8094c0c8>] (usb_hcd_submit_urb) from [<8094dc28>] (usb_sg_wait+0xa4/0x118) [ 2681.025567] [<8094dc28>] (usb_sg_wait) from [<809690fc>] (usb_stor_bulk_transfer_sglist+0xa0/0xe8) [ 2681.034561] [<809690fc>] (usb_stor_bulk_transfer_sglist) from [<80969184>] (usb_stor_bulk_srb+0x40/0x6c) [ 2681.044073] [<80969184>] (usb_stor_bulk_srb) from [<80969754>] (usb_stor_Bulk_transport+0x14c/0x358) [ 2681.053238] [<80969754>] (usb_stor_Bulk_transport) from [<80969adc>] (usb_stor_invoke_transport+0x3c/0x448) [ 2681.063013] [<80969adc>] (usb_stor_invoke_transport) from [<8096a9a4>] (usb_stor_control_thread+0x1f4/0x254) [ 2681.072873] [<8096a9a4>] (usb_stor_control_thread) from [<80147ce4>] (kthread+0x138/0x144) [ 2681.081181] [<80147ce4>] (kthread) from [<801000fc>] (ret_from_fork+0x14/0x38) [ 2681.088434] Exception stack(0x87293fb0 to 0x87293ff8) [ 2681.093499] 3fa0: 00000000 00000000 00000000 00000000 [ 2681.101694] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2681.109888] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2681.160874] ---[ end trace eb1de72f40da8c7c ]---

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRL10_22/WRL10_22_GIT/wrlinux-10/setup.sh --machines xilinx-zynq --templates feature/kexec feature/kdump feature/xfce feature/docker --distro wrlinux --dl-layers --accept-eula=yes

source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build

cat << EOF >> customized_test_plan.ini
[Test_Case]
arm_coresight_fun
arm_exploring_test
bootcheck_backtrace
bootcheck_calltrace
bootcheck_error
bootcheck_exception
bootcheck_kerbug
bootcheck_kmemleak
bootcheck_nullpoint
bootcheck_pcimatch
bootcheck_segfault
bootcheck_warning
bootimg_check
checkproc_files
clock_switched
cpuarch_timer_check
cpuhotplug_offline
cpuhotplug_online
cpuidle_function
cpuidle_perf_event
cpuidle_sys_check
dma_kernel_test
docker_check_config
docker_compose_build
docker_compose_ps
docker_compose_scale_down
docker_compose_scale_up
docker_compose_up
docker_helloworld
eeprom_hexdump
ethernet_check_mac
ethernet_iperf_tcp
ethernet_iperf_udp
ethernet_netperf_tcprr
ethernet_netperf_tcpstream
ethernet_netperf_udprr
ethernet_netperf_udpstream
ethernet_ping
ethernet_vlan_ping
flash_dd_jffs2
flash_dd_ubifs
flash_erase
flash_fio_randread
flash_fio_randwrite
flash_mtd_copy
flash_mtd_debug
flash_mtdinfo_all
flash_mtd_writetest
flash_read_all
flash_readtest
flash_speedtest
flash_stresstest
flash_torturetest
flash_ubiformat
flash_ubinfo_all
fman_sys_check
gpio_sys_check
i2c_detect
i2c_dump
i2c_get
i2c_sys_check
kernwarning_buildcheck
kmod_test
lspci_test
malloc_loop
mdelay_test
perf_events_cpu
perf_events_l1_cache
perf_events_ll_cache
perf_events_mem
perf_events_sched
perf_events_syscall
perf_events_syscall_enter
perf_events_syscall_exit
perf_events_timer
perf_events_tlb
perf_events_with_load
poweroff
ramspeed
reboot
restart
rtc_alarm
rtc_hctosys
rtc_hwclock_selftest
rtc_sys_check
rtc_systohc
sem_test
shutdown_now
spi_sys_check
storage_aio_stress
storage_bonnie
storage_fio_flow
storage_fio_latency
storage_fio_randread
storage_fio_rand_rw
storage_fio_randwrite
storage_fio_read
storage_fio_rw
storage_fio_stonewalls
storage_fio_stress
storage_fio_write
storage_fio_zone
storage_hdparm
storage_ionice_bfq
storage_ionice_kyber
storage_ionice_mqdeadline
storage_ionice_none
storage_iozone
storage_nfs_mounts
storage_scheduler_bfq
storage_scheduler_kyber
storage_scheduler_mqdeadline
storage_scheduler_none
storage_tiobench
stress_cpu
stress_cpu_mem_io
stress_io
stress_memory
temp_sys_check
usb_show_device
watchdog_check_device
watchdog_check_node
watchdog_get_monitor
watchdog_get_status
watchdog_keep_alive
watchdog_set_timeout
watchdog_sys_check
[Test_HW]
EOF

bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_1022/testcases/wrlinux/wr-testing/bts-dev

echo '
require templates/feature/bts/template.conf
ACTIVE_PLAN = "customized_test_plan.ini"' >> conf/local.conf
echo 'IMAGE_FSTYPES:remove = " live hddimg iso"' >> conf/local.conf

bitbake wrlinux-image-std

Boot zc706/2 target, then run '/opt/wr-test/main_test.py -k storage_ionice_bfq:"USB2"'
Live chat
Online