Wind River Support Network

HomeDefectsLIN5-18805
Fixed

LIN5-18805 : [wrLinux501 Async BSP altera-socfpga] There is call trace when inserting USB Gadget kernel module on preempt-rt kernel

Created: May 26, 2014    Updated: Dec 19, 2017
Resolved Date: Jun 3, 2014
Found In Version: 5.0.1
Fix Version: 5.0.1.16
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

On wrLinux501 Async BSP altera-socfpga, there is call trace when inserting USB Gadget kernel module as follow:

root@localhost:~# modprobe g_mass_storage file=/dev/mmcblk0p2                                                                                                     
 gadget: controller 'ffb40000.usb' not recognized
 gadget: Mass Storage Function, version: 2009/09/11
 gadget: Number of LUNs=1
 lun0: LUN: file: /dev/mmcblk0p2
 gadget: Mass Storage Gadget, version: 2009/09/11
 gadget: userspace failed to provide iSerialNumber
 gadget: g_mass_storage ready
dwc2 ffb40000.usb: bound driver g_mass_storage
root@localhost:~# dwc2 ffb40000.usb: new device is high-speed
dwc2 ffb40000.usb: new device is high-speed
dwc2 ffb40000.usb: new address 18
...

 gadget: high-speed config #1: Linux File-Backed Storage
------------[ cut here ]------------
WARNING: at /altera-socfpga-rt/bitbake_build/tmp/work/altera_socfpga-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/drivers/usb/gadget/composite.c:1)
usb_composite_setup_continue: Unexpected call
Modules linked in: fat vfat minix nls_cp437 nls_iso8859_1 g_mass_storage
[<800179cc>] (unwind_backtrace+0x0/0x104) from [<80619608>] (dump_stack+0x20/0x24)
[<80619608>] (dump_stack+0x20/0x24) from [<80025100>] (warn_slowpath_common+0x64/0x74)
[<80025100>] (warn_slowpath_common+0x64/0x74) from [<800251cc>] (warn_slowpath_fmt+0x40/0x48)
[<800251cc>] (warn_slowpath_fmt+0x40/0x48) from [<7f047774>] (usb_composite_setup_continue+0xb4/0xbc [g_mass_storage])
[<7f047774>] (usb_composite_setup_continue+0xb4/0xbc [g_mass_storage]) from [<7f047ad4>] (handle_exception+0x358/0x3e4 [g_mass_storage])
[<7f047ad4>] (handle_exception+0x358/0x3e4 [g_mass_storage]) from [<7f048080>] (fsg_main_thread+0x520/0x157c [g_mass_storage])
[<7f048080>] (fsg_main_thread+0x520/0x157c [g_mass_storage]) from [<8004bc90>] (kthread+0x98/0x9c)
[<8004bc90>] (kthread+0x98/0x9c) from [<8000faec>] (kernel_thread_exit+0x0/0x8)
---[ end trace 0000000000000002 ]---
...

root@localhost:~# uname -a
Linux localhost 3.4.43-rt56-WR5.0.1.15_preempt-rt #1 SMP PREEMPT RT Thu May 22 02:37:10 CST 2014 armv7l GNU/Linux
root@localhost:~# 

Steps to Reproduce

1. configure and build project

--enable-board=altera-socfpga --enable-kernel=preempt-rt --enable-rootfs=glibc-std --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-test --with-layer=wr-testing/kts,wr-testing/bts,wr-testing/ltp

2. boot the target altera-socfpga-arriaV and insert the kernel module g_mass_storage.ko

root@localhost:~# modprobe g_mass_storage file=/dev

Other Downloads


Live chat
Online