Wind River Support Network

HomeDefectsLIN5-18439
Fixed

LIN5-18439 : WRL5: Armada XP BSP: request_irq(4) fails when CONFIG_ERROR_HANDLING is enabled

Created: Mar 31, 2014    Updated: Dec 19, 2017
Resolved Date: May 18, 2014
Found In Version: 5.0.1
Fix Version: 5.0.1.15
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

Below error can be seen at boot on Armada XP board when CONFIG_ERROR_HANDLING is enabled 
in kernel configuration.

[  155.495791] ------------[ cut here ]------------
[  155.495812] WARNING: at /make_20140328/fw5630/KERNEL/build/mv_armada_xp/bitbake_build/tmp/work/mv_armada_xp-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/kernel/irq/manage.c:1367 request_threaded_irq+0x144/0x154()
[  155.495829] Modules linked in:
[  155.495855] [<c0017b70>] (unwind_backtrace+0x0/0x104) from [<c062723c>] (dump_stack+0x20/0x24)
[  155.495875] [<c062723c>] (dump_stack+0x20/0x24) from [<c00647fc>] (warn_slowpath_common+0x64/0x74)
[  155.495892] [<c00647fc>] (warn_slowpath_common+0x64/0x74) from [<c0064838>] (warn_slowpath_null+0x2c/0x34)
[  155.495908] [<c0064838>] (warn_slowpath_null+0x2c/0x34) from [<c00dceb8>] (request_threaded_irq+0x144/0x154)
[  155.495928] [<c00dceb8>] (request_threaded_irq+0x144/0x154) from [<c08690d0>] (errorhandling_notification_setup+0x110/0x1c8)
[  155.495946] [<c08690d0>] (errorhandling_notification_setup+0x110/0x1c8) from [<c00084e0>] (do_one_initcall+0x44/0x180)
[  155.495965] [<c00084e0>] (do_one_initcall+0x44/0x180) from [<c085fa6c>] (kernel_init+0x18c/0x258)
[  155.495984] [<c085fa6c>] (kernel_init+0x18c/0x258) from [<c000f9fc>] (kernel_thread_exit+0x0/0x8)
[  155.496014] ---[ end trace 1b75b31a2719ed1c ]---
[  155.496025] opps: request_irq failed to requestin IRQ# 4, returning now !

After the boot, according to /proc/interrupts, IRQ4(IRQ_AURORA_SOC_ERROR) is not enabled, 
which is one of IRQ errorhandling_notification_setup() intends to register an ISR. 

root@localhost:~# cat /proc/interrupts
           CPU0       CPU1
  3:          0          0   axp_irq  Armada Error Handler
  5:       6633       4291   axp_irq  axp_local_clockevent
  8:        176          0   axp_irq  mv_eth
 31:         44          0   axp_irq  mv64xxx_i2c
 32:         94          0   axp_irq  mv64xxx_i2c
 41:       2555          0   axp_irq  serial
 50:          0          0   axp_irq  rtc-mv
 51:          2          0   axp_irq  mv_xor.0
 52:          2          0   axp_irq  mv_xor.1
 54:       1122          0   axp_irq  mvsdio
 55:          0          0   axp_irq  sata_mv
 89:          0          0   axp_irq  fpga, lcn_phy, inband_sw, npu_1, npu_2, tcam_gio, tcam_peo
 90:          0          0   axp_irq  tcam_phseo, temp_sensor, fpga_pll, reset_sw, wdt_err
 94:          1          0   axp_irq  mv_xor.2
 95:          1          0   axp_irq  mv_xor.3
IPI0:          0          0  Timer broadcast interrupts
IPI1:       1157       1577  Rescheduling interrupts
IPI2:          0          0  Function call interrupts
IPI3:         12         19  Single function call interrupts
IPI4:          0          0  CPU stop interrupts
PMU:          0          0
Err:          0

.config and boot log are attached.

Steps to Reproduce

Create a linux platform project with armada_xp BSP and standard kernel. Enable CONFIG_ERROR_HANDLING.
Build and boot the kernel.

Other Downloads


Live chat
Online