Wind River Support Network

HomeDefectsLIN5-19009
Fixed

LIN5-19009 : [wrLinux501 Async BSP altera-socfpga] There are call trace when config PCIe FPGA ethernet for the first time

Created: Jun 30, 2014    Updated: Dec 19, 2017
Resolved Date: Jul 1, 2014
Found In Version: 5.0
Fix Version: 5.0.1.17
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

On wrLinux501 Async BSP altera-socfpga, there are call trace when config PCIe FPGA ethernet for the first time

root@localhost:~# lspci -v
00:00.0 PCI bridge: Altera Corporation Device e000 (rev 01) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00000000-00000fff
        Memory behind bridge: c0000000-c02fffff
        Prefetchable memory behind bridge: 00000000-000fffff
        Capabilities: [50] MSI: Enable+ Count=1/4 Maskable- 64bit+
        Capabilities: [78] Power Management version 3
        Capabilities: [80] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [200] Vendor Specific Information: ID=1172 Rev=0 Len=044 <?>
        Kernel driver in use: pcieport

01:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
        Subsystem: Intel Corporation Ethernet Server Adapter I210-T1
        Flags: bus master, fast devsel, latency 0, IRQ 258
        Memory at c0000000 (32-bit, non-prefetchable) [size=1M]
        Memory at c0200000 (32-bit, non-prefetchable) [size=16K]
        [virtual] Expansion ROM at c0100000 [disabled] [size=1M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable+ 64bit+
        Capabilities: [70] MSI-X: Enable- Count=5 Masked-
        Capabilities: [a0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number a0-36-9f-ff-ff-1d-d0-4a
        Capabilities: [1a0] Transaction Processing Hints
        Kernel driver in use: igb

root@localhost:~# ifconfig eth1 10.1.1.1/24
BUG: sleeping function called from invalid context at /altera-socfpga-rt-lx02-pcie/bitbake_build/tmp/work/altera_socfpga-wrs-linux-gnueabi/linux-win8
in_atomic(): 1, irqs_disabled(): 128, pid: 864, name: lspci
3 locks held by lspci/864:
 #0:  (&bb->mutex){......}, at: [<801a13a4>] read+0x80/0x1e8
 #1:  (s_active#41){......}, at: [<801a13cc>] read+0xa8/0x1e8
 #2:  (pci_lock){......}, at: [<8039cb5c>] pci_user_read_config_dword+0x44/0xb4
[<8001830c>] (unwind_backtrace+0x0/0x104) from [<8068d234>] (dump_stack+0x20/0x24)
[<8068d234>] (dump_stack+0x20/0x24) from [<8005b578>] (__might_sleep+0x12c/0x130)
[<8005b578>] (__might_sleep+0x12c/0x130) from [<80697a64>] (rt_spin_lock+0x34/0x6c)
[<80697a64>] (rt_spin_lock+0x34/0x6c) from [<8012ba64>] (kmem_cache_alloc_trace+0x9c/0x304)
[<8012ba64>] (kmem_cache_alloc_trace+0x9c/0x304) from [<803b2cdc>] (tlp_cfg_dword_read+0x68/0x148)
[<803b2cdc>] (tlp_cfg_dword_read+0x68/0x148) from [<803b301c>] (altera_pcie_cfg_read+0x74/0xa0)
[<803b301c>] (altera_pcie_cfg_read+0x74/0xa0) from [<8039cb94>] (pci_user_read_config_dword+0x7c/0xb4)
[<8039cb94>] (pci_user_read_config_dword+0x7c/0xb4) from [<803a6dcc>] (pci_read_config+0x108/0x3ec)
[<803a6dcc>] (pci_read_config+0x108/0x3ec) from [<801a1400>] (read+0xdc/0x1e8)
[<801a1400>] (read+0xdc/0x1e8) from [<80138a14>] (vfs_read+0xb4/0x144)
[<80138a14>] (vfs_read+0xb4/0x144) from [<80138d70>] (sys_pread64+0x84/0x14c)
[<80138d70>] (sys_pread64+0x84/0x14c) from [<8000e7e0>] (ret_fast_syscall+0x0/0x48)
BUG: sleeping function called from invalid context at /altera-socfpga-rt-lx02-pcie/bitbake_build/tmp/work/altera_socfpga-wrs-linux-gnueabi/linux-win8
in_atomic(): 1, irqs_disabled(): 128, pid: 865, name: lspci
3 locks held by lspci/865:
 #0:  (&bb->mutex){......}, at: [<801a13a4>] read+0x80/0x1e8
 #1:  (s_active#41){......}, at: [<801a13cc>] read+0xa8/0x1e8
 #2:  (pci_lock){......}, at: [<8039cb5c>] pci_user_read_config_dword+0x44/0xb4
[<8001830c>] (unwind_backtrace+0x0/0x104) from [<8068d234>] (dump_stack+0x20/0x24)
[<8068d234>] (dump_stack+0x20/0x24) from [<8005b578>] (__might_sleep+0x12c/0x130)
[<8005b578>] (__might_sleep+0x12c/0x130) from [<80697a64>] (rt_spin_lock+0x34/0x6c)
[<80697a64>] (rt_spin_lock+0x34/0x6c) from [<8012ba64>] (kmem_cache_alloc_trace+0x9c/0x304)
[<8012ba64>] (kmem_cache_alloc_trace+0x9c/0x304) from [<803b2cdc>] (tlp_cfg_dword_read+0x68/0x148)
[<803b2cdc>] (tlp_cfg_dword_read+0x68/0x148) from [<803b301c>] (altera_pcie_cfg_read+0x74/0xa0)
[<803b301c>] (altera_pcie_cfg_read+0x74/0xa0) from [<8039cb94>] (pci_user_read_config_dword+0x7c/0xb4)
[<8039cb94>] (pci_user_read_config_dword+0x7c/0xb4) from [<803a6dcc>] (pci_read_config+0x108/0x3ec)
[<803a6dcc>] (pci_read_config+0x108/0x3ec) from [<801a1400>] (read+0xdc/0x1e8)
[<801a1400>] (read+0xdc/0x1e8) from [<80138a14>] (vfs_read+0xb4/0x144)
[<80138a14>] (vfs_read+0xb4/0x144) from [<80138d70>] (sys_pread64+0x84/0x14c)
[<80138d70>] (sys_pread64+0x84/0x14c) from [<8000e7e0>] (ret_fast_syscall+0x0/0x48)
eth1: device MAC address 00:26:b9:5a:e3:89
ADDRCONF(NETDEV_UP): eth1: link is not ready
root@localhost:~# 
root@localhost:~# 
root@localhost:~# ifconfig eth1 10.1.1.1/24
root@localhost:~# PHY: stmmac-1:04 - Link is Up - 100/Full
ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

Steps to Reproduce

1. configure and build project

--enable-board=altera-socfpga --enable-kernel=preempt-rt+altera-socfpga-pcie.scc --enable-rootfs=glibc-std --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-test

2. boot the target with the following uboot command

SOCFPGA_CYCLONE5 # tftp $fpgadata soc_system.rbf (or pcie_rp_ed_5csxfc6.rbf)
SOCFPGA_CYCLONE5 # fpga load 0 $fpgadata $filesize;run bridge_enable_handoff
SOCFPGA_CYCLONE5 # tftp $loadaddr zImage
SOCFPGA_CYCLONE5 # tftp $fdtaddr socfpga_cyclone5.dtb
SOCFPGA_CYCLONE5 # setenv bootargs 'xxx'
SOCFPGA_CYCLONE5 # bootz $loadaddr - $fdtaddr 

Other Downloads


Live chat
Online