Wind River Support Network

HomeDefectsLIN5-5427
Fixed

LIN5-5427 : BUG():s triggered in ARM for perf on preempt-rt

Created: Apr 16, 2013    Updated: Dec 19, 2017
Resolved Date: May 13, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.4
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

Perf on preempt-rt on wrl501.1, it seems broken !

With lock debugging enabled it triggers lots of BUG():s like the one below.

"Looks like some missing raw locks. I'd agree that this is a bug,
and should have a defect opened. Bruce"

    BUG: sleeping function called from invalid context at
    /proj/wrl-rcs/tests/kernel/kernel/rtmutex.c:658
    in_atomic(): 1, irqs_disabled(): 128, pid: 3, name: ksoftirqd/0
    2 locks held by ksoftirqd/0/3:
      #0:  (&per_cpu(local_softirq_lock, __cpu).lock){......}, at:
    [<80029a28>] __thread_do_softirq+0x98/0x1c4
      #1:  (rcu_read_lock){......}, at: [<800acc58>] perf_event_wakeup+0x0/0xc8
    [<800163e8>] (unwind_backtrace+0x0/0x138) from [<803d8140>]
    (rt_spin_lock+0x24/0x5c)
    [<803d8140>] (rt_spin_lock+0x24/0x5c) from [<8005322c>]
    (__wake_up+0x28/0x54)
    [<8005322c>] (__wake_up+0x28/0x54) from [<800accc0>]
    (perf_event_wakeup+0x68/0xc8)
    [<800accc0>] (perf_event_wakeup+0x68/0xc8) from [<800a7b00>]
    (irq_work_run+0x6c/0x9c)
    [<800a7b00>] (irq_work_run+0x6c/0x9c) from [<80019138>]
    (armv7pmu_handle_irq+0x118/0x188)
    [<80019138>] (armv7pmu_handle_irq+0x118/0x188) from [<800834f8>]
    (handle_irq_event_percpu+0xc8/0x404)
    [<800834f8>] (handle_irq_event_percpu+0xc8/0x404) from [<80083870>]
    (handle_irq_event+0x3c/0x5c)
    [<80083870>] (handle_irq_event+0x3c/0x5c) from [<800864d8>]
    (handle_fasteoi_irq+0xc4/0x154)
    [<800864d8>] (handle_fasteoi_irq+0xc4/0x154) from [<80082cc4>]
    (generic_handle_irq+0x2c/0x3c)
    [<80082cc4>] (generic_handle_irq+0x2c/0x3c) from [<8000f92c>]
    (handle_IRQ+0x58/0xac)
    [<8000f92c>] (handle_IRQ+0x58/0xac) from [<80008534>]
    (gic_handle_irq+0x28/0x58)
    [<80008534>] (gic_handle_irq+0x28/0x58) from [<803d8d00>]
    (__irq_svc+0x40/0x70)

Steps to Reproduce

WRLinux 5.0.1.1
preempt-rt
ARM architecture
Lock debugging enabled.

Other Downloads


Live chat
Online