Quantcast
Channel: 数字信号处理器 (DSP) & ARM® 微处理器
Viewing all articles
Browse latest Browse all 21822

帖子: am5728下mcasp驱动

$
0
0

大家好,我将mcasp3在am57xx-beagle-x15.dts和dra7.dtsi文件中的mcasp3换成了mcasp7

结果内核启动

    3.658493] davinci-mcasp 48478000.mcasp: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info [    3.667759] Unhandled fault: asynchronous external abort (0x1211) at 0x00000000 [    3.667766] ------------[ cut here ]------------ [    3.667779] WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x248/0x34c() [    3.667784] 44000000.ocp:L3 Custom Error: MASTER MPU TARGET L4_PER2_P3 (Read): Data Access in User mode during Functional access [    3.667789] Modules linked in: [    3.667797] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.1.13-g8dc6617 #4 [    3.667800] Hardware name: Generic DRA74X (Flattened Device Tree) [    3.667804] Backtrace:  [    3.667819] [<c0013bd0>] (dump_backtrace) from [<c0013df4>] (show_stack+0x18/0x1c) [    3.667831]  r7:c031ccf4 r6:00000093 r5:c092bc0c r4:00000000 [    3.667842] [<c0013ddc>] (show_stack) from [<c0655600>] (dump_stack+0x9c/0xdc) [    3.667850] [<c0655564>] (dump_stack) from [<c003c320>] (warn_slowpath_common+0x88/0xb8) [    3.667856]  r5:00000009 r4:c090dd48 [    3.667864] [<c003c298>] (warn_slowpath_common) from [<c003c388>] (warn_slowpath_fmt+0x38/0x40) [    3.667875]  r8:c081e620 r7:00000002 r6:ee1b4090 r5:c081e6e0 r4:c081e784 [    3.667883] [<c003c354>] (warn_slowpath_fmt) from [<c031ccf4>] (l3_interrupt_handler+0x248/0x34c) [    3.667889]  r3:ee1afec0 r2:c081e784 [    3.667892]  r4:80080003 [    3.667903] [<c031caac>] (l3_interrupt_handler) from [<c007cad8>] (handle_irq_event_percpu+0x80/0x13c) [    3.667915]  r10:c09560f5 r9:ee1ad600 r8:00000017 r7:00000000 r6:00000000 r5:ee1ad660 [    3.667918]  r4:ee1b4400 [    3.667927] [<c007ca58>] (handle_irq_event_percpu) from [<c007cbd8>] (handle_irq_event+0x44/0x64) [    3.667938]  r10:c09560f3 r9:c0662b18 r8:ee008000 r7:00000000 r6:ee1b4400 r5:ee1ad660 [    3.667941]  r4:ee1ad600 [    3.667949] [<c007cb94>] (handle_irq_event) from [<c007f964>] (handle_fasteoi_irq+0xb8/0x17c) [    3.667957]  r7:00000000 r6:c0913a3c r5:ee1ad660 r4:ee1ad600 [    3.667965] [<c007f8ac>] (handle_fasteoi_irq) from [<c007c13c>] (generic_handle_irq+0x34/0x44) [    3.667973]  r7:00000000 r6:00000000 r5:00000017 r4:00000017 [    3.667982] [<c007c108>] (generic_handle_irq) from [<c007c414>] (__handle_domain_irq+0x64/0xbc) [    3.667987]  r5:00000017 r4:c0908d2c [    3.667995] [<c007c3b0>] (__handle_domain_irq) from [<c00094f8>] (gic_handle_irq+0x2c/0x64) [    3.668006]  r9:c0662b18 r8:00000000 r7:fa212000 r6:c090def8 r5:c090e948 r4:fa21200c [    3.668014] [<c00094cc>] (gic_handle_irq) from [<c065b340>] (__irq_svc+0x40/0x74) [    3.668018] Exception stack(0xc090def8 to 0xc090df40) [    3.668021] dee0:                                                       00000001 00000000 [    3.668027] df00: 00000000 c0021b80 c090c000 c090e5b4 c090e568 00000000 00000000 c0662b18 [    3.668032] df20: c09560f3 c090df4c c090df50 c090df40 c001112c c0011130 60000013 ffffffff [    3.668041]  r7:c090df2c r6:ffffffff r5:60000013 r4:c0011130 [    3.668050] [<c00110f0>] (arch_cpu_idle) from [<c00730fc>] (cpu_startup_entry+0x2a0/0x31c) [    3.668056] [<c0072e5c>] (cpu_startup_entry) from [<c0651c68>] (rest_init+0x90/0x94) [    3.668061]  r7:00000000 [    3.668069] [<c0651bd8>] (rest_init) from [<c08b6d64>] (start_kernel+0x404/0x410) [    3.668075]  r5:00000000 r4:c0966050 [    3.668081] [<c08b6960>] (start_kernel) from [<80008090>] (0x80008090) [    3.668092]  r10:00000000 r9:412fc0f2 r8:80007000 r7:c0912498 r6:c08f944c r5:c090e544 [    3.668096]  r4:c0966214 [    3.668099] ---[ end trace 8b1ac13b628b622b ]--- [    3.973062] pgd = c0003000 [    3.975779] [00000000] *pgd=80000080004003, *pmd=00000000 [    3.981221] Internal error: : 1211 [#1] PREEMPT SMP ARM [    3.986469] Modules linked in: [    3.989546] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G        W       4.1.13-g8dc6617 #4 [    3.997497] Hardware name: Generic DRA74X (Flattened Device Tree) [    4.003618] task: ee088000 ti: ee08c000 task.ti: ee08c000 [    4.009046] PC is at __pm_runtime_idle+0x24/0x84 [    4.013688] LR is at davinci_mcasp_probe+0x9e4/0xb84 [    4.018673] pc : [<c041cc80>]    lr : [<c0567a80>]    psr: 20000013 [    4.018673] sp : ee08dd10  ip : ee08dd30  fp : ee08dd2c [    4.030198] r10: ee2023c0  r9 : 00000000  r8 : 00000000 [    4.035450] r7 : 00000000  r6 : 00000000  r5 : 00000005  r4 : ee20f810 [    4.042001] r3 : ee20f8d8  r2 : 00000000  r1 : 00000005  r0 : ee20f810 [    4.048557] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel [    4.055897] Control: 30c5387d  Table: 80003000  DAC: 55555555 [    4.061670] Process swapper/0 (pid: 1, stack limit = 0xee08c218) [    4.067701] Stack: (0xee08dd10 to 0xee08e000) [    4.072077] dd00:                                     ed8f7a10 ee20f810 00000000 00000000 [    4.080290] dd20: ee08ddc4 ee08dd30 c0567a80 c041cc68 00002000 ed93c090 ed8f7a10 c018a410 [    4.088506] dd40: c094e250 ee20f800 ee08dd6c 00000008 ee578768 00000001 0000008c ee2075f0 [    4.096719] dd60: ee08dd8c ed93aa50 00000000 ee2075f0 c0832710 ed93aaf0 00000001 00000000 [    4.104932] dd80: ee08ddb4 ee08dd90 c018cb18 c0189518 ee20f810 00000000 ee20f818 c099b304 [    4.113146] dda0: ee20f810 c094e0fc fffffdfb c094e0fc 00000000 00000000 ee08dde4 ee08ddc8 [    4.121360] ddc0: c04158fc c05670a8 c099b304 ee20f810 c095dda8 00000000 ee08de14 ee08dde8 [    4.129574] dde0: c0413d3c c04158bc ee08de14 ee08ddf8 ee20f810 c094e0fc ee20f844 00000000 [    4.137787] de00: c090628c c08b6604 ee08de34 ee08de18 c0414050 c0413b3c 00000000 c094e0fc [    4.145999] de20: c0413fbc 00000000 ee08de5c ee08de38 c0411dbc c0413fc8 ee047a5c ee2080b4 [    4.154211] de40: ee047a70 c094e0fc ed93b100 c0939de0 ee08de6c ee08de60 c0413650 c0411d58 [    4.162424] de60: ee08de94 ee08de70 c041327c c0413638 c086d46c ee08de80 c094e0fc c08eae78 [    4.170636] de80: c0911120 ed939dc0 ee08deac ee08de98 c04146e0 c0413124 c0911120 c08eae78 [    4.178850] dea0: ee08debc ee08deb0 c0415840 c041466c ee08decc ee08dec0 c08eae94 c04157f0 [    4.187060] dec0: ee08df4c ee08ded0 c0009814 c08eae84 ee08defc ee08dee0 ee08defc ee08dee8 [    4.195273] dee0: c08b3f00 ef7ff6c4 c0683a1c c08b3618 ee08df4c ee08df00 c005586c c08b6610 [    4.203486] df00: c0072670 c065a9bc 00000006 00000006 ef7ff6cc c0957be0 c0850ac4 00000000 [    4.211699] df20: 00000000 00000006 c08f9254 c0966000 c0966000 c090628c c08b6604 c08f925c [    4.219910] df40: ee08df94 ee08df50 c08b6f40 c0009760 00000006 00000006 c08b6604 ee08df68 [    4.228123] df60: c0134358 00000097 ee08df94 c0966000 c0651c6c 00000000 00000000 00000000 [    4.236337] df80: 00000000 00000000 ee08dfac ee08df98 c0651c84 c08b6d7c 00000000 c0651c6c [    4.244550] dfa0: 00000000 ee08dfb0 c0010648 c0651c78 00000000 00000000 00000000 00000000 [    4.252760] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [    4.260973] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 fdffffff 00442016 [    4.269182] Backtrace:  [    4.271651] [<c041cc5c>] (__pm_runtime_idle) from [<c0567a80>] (davinci_mcasp_probe+0x9e4/0xb84) [    4.280471]  r7:00000000 r6:00000000 r5:ee20f810 r4:ed8f7a10 [    4.286194] [<c056709c>] (davinci_mcasp_probe) from [<c04158fc>] (platform_drv_probe+0x4c/0xac) [    4.294926]  r10:00000000 r9:00000000 r8:c094e0fc r7:fffffdfb r6:c094e0fc r5:ee20f810 [    4.302834]  r4:c099b304 [    4.305388] [<c04158b0>] (platform_drv_probe) from [<c0413d3c>] (driver_probe_device+0x20c/0x440) [    4.314297]  r7:00000000 r6:c095dda8 r5:ee20f810 r4:c099b304 [    4.320020] [<c0413b30>] (driver_probe_device) from [<c0414050>] (__driver_attach+0x94/0x98) [    4.328490]  r9:c08b6604 r8:c090628c r7:00000000 r6:ee20f844 r5:c094e0fc r4:ee20f810 [    4.336315] [<c0413fbc>] (__driver_attach) from [<c0411dbc>] (bus_for_each_dev+0x70/0xa4) [    4.344524]  r7:00000000 r6:c0413fbc r5:c094e0fc r4:00000000 [    4.350242] [<c0411d4c>] (bus_for_each_dev) from [<c0413650>] (driver_attach+0x24/0x28) [    4.358276]  r6:c0939de0 r5:ed93b100 r4:c094e0fc [    4.362940] [<c041362c>] (driver_attach) from [<c041327c>] (bus_add_driver+0x164/0x220) [    4.370981] [<c0413118>] (bus_add_driver) from [<c04146e0>] (driver_register+0x80/0x100) [    4.379105]  r7:ed939dc0 r6:c0911120 r5:c08eae78 r4:c094e0fc [    4.384822] [<c0414660>] (driver_register) from [<c0415840>] (__platform_driver_register+0x5c/0x64) [    4.393902]  r5:c08eae78 r4:c0911120 [    4.397515] [<c04157e4>] (__platform_driver_register) from [<c08eae94>] (davinci_mcasp_driver_init+0x1c/0x20) [    4.407476] [<c08eae78>] (davinci_mcasp_driver_init) from [<c0009814>] (do_one_initcall+0xc0/0x1fc) [    4.416562] [<c0009754>] (do_one_initcall) from [<c08b6f40>] (kernel_init_freeable+0x1d0/0x274) [    4.425293]  r10:c08f925c r9:c08b6604 r8:c090628c r7:c0966000 r6:c0966000 r5:c08f9254 [    4.433197]  r4:00000006 [    4.435751] [<c08b6d70>] (kernel_init_freeable) from [<c0651c84>] (kernel_init+0x18/0xf0) [    4.443962]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0651c6c [    4.451861]  r4:c0966000 [    4.454416] [<c0651c6c>] (kernel_init) from [<c0010648>] (ret_from_fork+0x14/0x2c) [    4.462014]  r5:c0651c6c r4:00000000 [    4.465621] Code: e1a04000 0a00000a e28030c8 f57ff05b (f593f000)  [    4.471745] ---[ end trace 8b1ac13b628b622c ]--- [    4.477050] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [    4.477050]  [    4.486230] CPU0: stopping [    4.488954] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D W       4.1.13-g8dc6617 #4 [    4.496906] Hardware name: Generic DRA74X (Flattened Device Tree) [    4.503020] Backtrace:  [    4.505493] [<c0013bd0>] (dump_backtrace) from [<c0013df4>] (show_stack+0x18/0x1c) [    4.513092]  r7:fa212000 r6:00000000 r5:c092bc0c r4:00000000 [    4.518812] [<c0013ddc>] (show_stack) from [<c0655600>] (dump_stack+0x9c/0xdc) [    4.526068] [<c0655564>] (dump_stack) from [<c0016750>] (handle_IPI+0x14c/0x160) [    4.533492]  r5:00000000 r4:c0908d2c [    4.537098] [<c0016604>] (handle_IPI) from [<c000952c>] (gic_handle_irq+0x60/0x64) [    4.544697]  r7:fa212000 r6:c090def8 r5:c090e948 r4:fa21200c [    4.550413] [<c00094cc>] (gic_handle_irq) from [<c065b340>] (__irq_svc+0x40/0x74) [    4.557928] Exception stack(0xc090def8 to 0xc090df40) [    4.563001] dee0:                                                       00000001 00000000 [    4.571212] df00: 00000000 c0021b80 c090c000 c090e5b4 c090e568 00000000 00000000 c0662b18 [    4.579426] df20: c09560f3 c090df4c c090df50 c090df40 c001112c c0011130 60000013 ffffffff [    4.587634]  r7:c090df2c r6:ffffffff r5:60000013 r4:c0011130 [    4.593355] [<c00110f0>] (arch_cpu_idle) from [<c00730fc>] (cpu_startup_entry+0x2a0/0x31c) [    4.601656] [<c0072e5c>] (cpu_startup_entry) from [<c0651c68>] (rest_init+0x90/0x94) [    4.609427]  r7:00000000 [    4.611980] [<c0651bd8>] (rest_init) from [<c08b6d64>] (start_kernel+0x404/0x410) [    4.619491]  r5:00000000 r4:c0966050 [    4.623097] [<c08b6960>] (start_kernel) from [<80008090>] (0x80008090) [    4.629648]  r10:00000000 r9:412fc0f2 r8:80007000 r7:c0912498 r6:c08f944c r5:c090e544 [    4.637547]  r4:c0966214 [    4.640101] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b 
我看到mcasp3和mcasp7区别

但发现mcasp8也在其中
  mcasp7: mcasp@48478000 { 1692             compatible = "ti,dra7-mcasp-audio"; 1693             ti,hwmods = "mcasp7"; 1694             reg = <0x48478000 0x2000>, 1695                   <0x48450000 0x1000>; 1696             reg-names = "mpu","dat"; 1697             interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>, 1698                      <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; 1699             interrupt-names = "tx", "rx"; 1700             dmas = <&edma_xbar 141>, <&edma_xbar 140>; 1701             dma-names = "tx", "rx"; 1702             clocks = <&mcasp3_ahclkx_mux>; 1703             clock-names = "fck"; 1704             status = "enabled"; 1705         }; 1706  1707  1708  1709         mcasp8: mcasp@4847c000 { 1710             compatible = "ti,dra7-mcasp-audio"; 1711             ti,hwmods = "mcasp8"; 1712             reg = <0x4847c000 0x2000>, 1713                   <0x48454000 0x1000>; 1714             reg-names = "mpu","dat"; 1715             interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, 1716                      <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>; 1717             interrupt-names = "tx", "rx"; 1718             dmas = <&sdma_xbar 143>, <&sdma_xbar 142>; 1719             dma-names = "tx", "rx"; 1720             clocks = <&mcasp8_ahclkx_mux>; 1721             clock-names = "fck"; 1722             status = "disabled"; 1723         }; 

请大家帮我看看,谢谢了


Viewing all articles
Browse latest Browse all 21822

Trending Articles