This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Backtrace when setting GPIO via sys-fs

Hi!


Im using precompiled Linux from TI SDK on a 'AM335x Industrial Communication Engine EVM Rev2 1' board:

Arago Project http://arago-project.org am335x-evm ttyS3
Arago 2016.05 am335x-evm ttyS3

No I try to switch on the red LED D1:

root@am335x-evm:~# cat D1-led-red-on
#!/bin/bash

echo gpio > /sys/class/leds/status1\:red\:mmc0/trigger
echo 1 > /sys/class/leds/status1\:red\:mmc0/gpio

The red LED lights up but blinks erratically. After 0 to 2 seconds somthing crashes:

root@am335x-evm:~# [  150.347447] irq 28: nobody cared (try booting with the "irqpoll" option)
[  150.347463] CPU: 0 PID: 17 Comm: irq/26-44e07000 Tainted: G           O    4.4.12-rt17-g86c9060003 #1
[  150.347467] Hardware name: Generic AM33XX (Flattened Device Tree)
[  150.347475] Backtrace:
[  150.347515] [<c0013458>] (dump_backtrace) from [<c0013654>] (show_stack+0x18/0x1c)
[  150.347525]  r7:0000001c r6:00000002 r5:00000000 r4:cf0cfb40
[  150.347544] [<c001363c>] (show_stack) from [<c0287a30>] (dump_stack+0x24/0x28)
[  150.347562] [<c0287a0c>] (dump_stack) from [<c0066e84>] (__report_bad_irq+0x30/0x120)
[  150.347572] [<c0066e54>] (__report_bad_irq) from [<c0067278>] (note_interrupt+0x294/0x2e4)
[  150.347584]  r9:c09b664c r8:cf0cfb40 r7:0000001c r6:00000002 r5:00000000 r4:cf0cfb40
[  150.347595] [<c0066fe4>] (note_interrupt) from [<c0064a70>] (handle_irq_event_percpu+0x100/0x184)
[  150.347607]  r10:00000000 r9:c09b664c r8:cf0cfb40 r7:0000001c r6:00000002 r5:00000002
[  150.347612]  r4:00000000 r3:00000000
[  150.347621] [<c0064970>] (handle_irq_event_percpu) from [<c0064b58>] (handle_irq_event+0x64/0xa4)
[  150.347633]  r10:00000000 r9:60010013 r8:00000000 r7:f9e0702c r6:cf0f1010 r5:cf0cfb50
[  150.347636]  r4:cf0cfb40
[  150.347646] [<c0064af4>] (handle_irq_event) from [<c0067e08>] (handle_edge_irq+0x110/0x1e8)
[  150.347652]  r5:cf0cfb50 r4:cf0cfb40
[  150.347661] [<c0067cf8>] (handle_edge_irq) from [<c00640dc>] (generic_handle_irq+0x2c/0x3c)
[  150.347666]  r5:00000001 r4:cf102000
[  150.347678] [<c00640b0>] (generic_handle_irq) from [<c02c5bb8>] (omap_gpio_irq_handler+0x198/0x1fc)
[  150.347688] [<c02c5a20>] (omap_gpio_irq_handler) from [<c0065a68>] (irq_forced_thread_fn+0x28/0x7c)
[  150.347700]  r9:c09b664d r8:c0065a40 r7:cf0cf840 r6:00000001 r5:cf0cf840 r4:cf0e6d40
[  150.347709] [<c0065a40>] (irq_forced_thread_fn) from [<c0065d3c>] (irq_thread+0x100/0x1d8)
[  150.347718]  r7:cf0cf840 r6:00000001 r5:cf102000 r4:cf0e6d40
[  150.347735] [<c0065c3c>] (irq_thread) from [<c004ccd8>] (kthread+0xdc/0xf4)
[  150.347747]  r9:00000000 r8:00000000 r7:c0065c3c r6:cf0e6d40 r5:cf0e6d80 r4:00000000
[  150.347758] [<c004cbfc>] (kthread) from [<c000fa40>] (ret_from_fork+0x14/0x34)
[  150.347767]  r7:00000000 r6:00000000 r5:c004cbfc r4:cf0e6d80
[  150.347769] handlers:
[  150.347784] [<c0064b98>] irq_default_primary_handler threaded [<c052f3ac>] gpio_trig_irq
[  150.347787] Disabling IRQ #28

Broadcast message from systemd-journald@am335x-evm (Wed 2016-11-09 08:51:16 UTC):

kernel[498]: [  150.347787] Disabling IRQ #28

Restarting the script yield the same result. (Though IRQ #28 was said to be disabled.)

Any Idea how to fix this?

Joachim