如果不是中断引脚,LED等,都能正常操作
定位到操作GPIO_init()
如果没有黄色部分 是不会报错的,也就是只要有引脚配置成中断,初始化GPIO_init()。内核就会报错
root@am57xx-evm:~# [ 54.715231] ————[ cut here ]————
[ 54.719889] WARNING: CPU: 0 PID: 0 at /oe/bld/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work-shared/am57xx-evm/kernel-source/drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x254/0x370
[ 54.737436] 44000000.ocp:L3 Custom Error: MASTER MPU TARGET L4_PER1_P3 (Idle): Data Access in User mode during Functional access
[ 54.749049] Modules linked in: jailhouse(O) bc_example(O) xhci_plat_hcd xhci_hcd rpmsg_proto dwc3 udc_core ti_prueth pru_rproc pvrsrvkm(O) pruss pruss_intc ahci_platform libahci_platform libahci pruss_soc_bus libata omap_aes_driver omap_sham omap_wdt scsi_mod ti_vpe ti_sc rtc_palmas extcon_palmas ti_csc rtc_omap ti_vpdma dwc3_omap omap_des des_generic crypto_engine omap_crypto omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel uio_module_drv(O) uio usbserial usbcore usb_common gdbserverproxy(O) cryptodev(O) cmemk(O)
[ 54.798110] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 4.14.40-g4796173fc5 #1
[ 54.806409] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 54.812527] Backtrace:
[ 54.814994] [<c020b5bc>] (dump_backtrace) from [<c020b8a0>] (show_stack+0x18/0x1c)
[ 54.822599] r7:00000009 r6:60070193 r5:00000000 r4:c10539ac
[ 54.828289] [<c020b888>] (show_stack) from [<c0925dc8>] (dump_stack+0x90/0xa4)
[ 54.835549] [<c0925d38>] (dump_stack) from [<c022b720>] (__warn+0xec/0x104)
[ 54.842542] r7:00000009 r6:c0bce70c r5:00000000 r4:c1001cf0
[ 54.848229] [<c022b634>] (__warn) from [<c022b778>] (warn_slowpath_fmt+0x40/0x48)
[ 54.855745] r9:00000006 r8:d41e6c90 r7:c0bce578 r6:00000000 r5:c0bce638 r4:c0bce6dc
[ 54.863527] [<c022b73c>] (warn_slowpath_fmt) from [<c05199bc>] (l3_interrupt_handler+0x254/0x370)
[ 54.872437] r3:d41e6b00 r2:c0bce6dc
[ 54.876025] r4:80080003
[ 54.878574] [<c0519768>] (l3_interrupt_handler) from [<c027f040>] (__handle_irq_event_percpu+0x6c/0x134)
[ 54.888095] r10:c10553cd r9:d41e8500 r8:00000017 r7:c1001e14 r6:00000000 r5:d41e8500
[ 54.895958] r4:d41f6000
[ 54.898506] [<c027efd4>] (__handle_irq_event_percpu) from [<c027f12c>] (handle_irq_event_percpu+0x24/0x60)
[ 54.908202] r10:c1003ce4 r9:c1000000 r8:d4008000 r7:00000000 r6:c10093ec r5:d41e8500
[ 54.916063] r4:d41e8500
[ 54.918611] [<c027f108>] (handle_irq_event_percpu) from [<c027f1a8>] (handle_irq_event+0x40/0x64)
[ 54.927520] r5:d41e8564 r4:d41e8500
[ 54.931114] [<c027f168>] (handle_irq_event) from [<c0282a7c>] (handle_fasteoi_irq+0xac/0x160)
[ 54.939677] r7:00000000 r6:c10093ec r5:d41e8564 r4:d41e8500
[ 54.945363] [<c02829d0>] (handle_fasteoi_irq) from [<c027e290>] (generic_handle_irq+0x2c/0x3c)
[ 54.954012] r7:00000000 r6:00000000 r5:00000017 r4:c0e64afc
[ 54.959697] [<c027e264>] (generic_handle_irq) from [<c027e818>] (__handle_domain_irq+0x64/0xbc)
[ 54.968435] [<c027e7b4>] (__handle_domain_irq) from [<c0201474>] (gic_handle_irq+0x44/0x80)
[ 54.976823] r9:c1000000 r8:fa213000 r7:fa212000 r6:c1001ed0 r5:fa21200c r4:c1004000
[ 54.984601] [<c0201430>] (gic_handle_irq) from [<c020c478>] (__irq_svc+0x58/0x8c)
[ 54.992115] Exception stack(0xc1001ed0 to 0xc1001f18)
[ 54.997189] 1ec0: 00000001 00000000 fe600000 00000000
[ 55.005402] 1ee0: ffffe000 c1003cd8 c1003c78 00000000 00000000 c0e643b8 c1003ce4 c1001f2c
[ 55.013615] 1f00: c1001f0c c1001f20 c021fd6c c0208804 60070013 ffffffff
[ 55.020259] r9:c1000000 r8:00000000 r7:c1001f04 r6:ffffffff r5:60070013 r4:c0208804
[ 55.028044] [<c02087dc>] (arch_cpu_idle) from [<c093e5bc>] (default_idle_call+0x28/0x34)
[ 55.036172] [<c093e594>] (default_idle_call) from [<c026b0e8>] (do_idle+0x194/0x224)
[ 55.043950] [<c026af54>] (do_idle) from [<c026b43c>] (cpu_startup_entry+0x20/0x24)
[ 55.051553] r10:c0e4aa30 r9:c1058000 r8:ffffffff r7:c1058000 r6:00000000 r5:00000002
[ 55.059415] r4:000000be
[ 55.061962] [<c026b41c>] (cpu_startup_entry) from [<c0938e2c>] (rest_init+0xd8/0xdc)
[ 55.069742] [<c0938d54>] (rest_init) from [<c0e00d9c>] (start_kernel+0x3ec/0x3f8)
[ 55.077257] r5:00000000 r4:c105804c
[ 55.080849] [<c0e009b0>] (start_kernel) from [<80008090>] (0x80008090)
[ 55.087404] —[ end trace dc171b04a195cb4b ]—
[ 133.236923] NET: Registered protocol family 15
[ 133.339218] Initializing XFRM netlink socket
jinjinjin:
是不是与mmu的accPerm属性相关?
yongqing wang:
回复 jinjinjin:
在这里找找相关的资料:www.ti.com.cn/…/TIDEP-0095