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.

Access PRU in AM437X

Hi,

I am trying to get PRU revision id in AM437X. When i am reading following register 0x54420000(REV ID REG of PRU_ICSS1), i am getting following crash message from kernel

   27.669446] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6b21000
[   27.677639] ------------[ cut here ]------------
[   27.682583] WARNING: CPU: 0 PID: 2513 at drivers/bus/omap_l3_noc.c:121 l3_interrupt_handler+0x104/0x28c()
[   27.692774] L3 standard error: TARGET:ICSS at address 0x20000
[   27.698800] Modules linked in: omaplfb(O) pvrsrvkm(O)
[   27.704205] CPU: 0 PID: 2513 Comm: blinker Tainted: G           O 3.12.20-ga021885-dirty #11
[   27.713192] Backtrace:
[   27.715812] [<c00186e4>] (dump_backtrace+0x0/0x10c) from [<c0018880>] (show_stack+0x18/0x1c)
[   27.724799]  r6:00000000 r5:ffffffff r4:00000000 r3:00000000
[   27.730866] [<c0018868>] (show_stack+0x0/0x1c) from [<c06a00a8>] (dump_stack+0x7c/0xbc)
[   27.739412] [<c06a002c>] (dump_stack+0x0/0xbc) from [<c004af00>] (warn_slowpath_common+0x6c/0x90)
[   27.748862]  r6:00000079 r5:00000009 r4:e19ede18 r3:00000001
[   27.754918] [<c004ae94>] (warn_slowpath_common+0x0/0x90) from [<c004afc8>] (warn_slowpath_fmt+0x38/0x40)
[   27.765015]  r8:00000000 r7:00080001 r6:f0800100 r5:0000000e r4:c0986388
[   27.772188] [<c004af90>] (warn_slowpath_fmt+0x0/0x40) from [<c02ca560>] (l3_interrupt_handler+0x104/0x28c)
[   27.782471]  r3:c082f510 r2:c082f448
[   27.786299] [<c02ca45c>] (l3_interrupt_handler+0x0/0x28c) from [<c0083f94>] (handle_irq_event_percpu+0x54/0x19c)
[   27.797143] [<c0083f40>] (handle_irq_event_percpu+0x0/0x19c) from [<c0084120>] (handle_irq_event+0x44/0x64)
[   27.807528] [<c00840dc>] (handle_irq_event+0x0/0x64) from [<c00871dc>] (handle_fasteoi_irq+0xa0/0x160)
[   27.817440]  r6:c0923f98 r5:ed006254 r4:ed006200 r3:00000000
[   27.823494] [<c008713c>] (handle_fasteoi_irq+0x0/0x160) from [<c0083904>] (generic_handle_irq+0x28/0x38)

Note:pruss_ocp_gclk clock is enabled.  For power domain, we have enable "Peripheral Domain". How do check whether "Peripheral Domain" enabled or not?

Regards,

Yuvaraj