Other Parts Discussed in Thread: BQ40Z60, DRA752, ASH
Tool/software: Linux
With Processor SDK 3.x kernels the following DSP CMA pool allocations worked fine but are no longer working with Processor SDK 4.x kernels:
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
/* 0xe000 0000 - 0xe7ff ffff */
dsp1_cma_pool: dsp1_cma@e0000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xe0000000 0x0 0x8000000>;
reusable;
status = "okay";
};
/* 0xe800 0000 - 0xefff ffff */
dsp2_cma_pool: dsp2_cma@e8000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xe8000000 0x0 0x8000000>;
reusable;
status = "okay";
};
ipu1_cma_pool: ipu1_cma@df000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xdf000000 0x0 0x800000>;
reusable;
status = "okay";
};
ipu2_cma_pool: ipu2_cma@df800000 {
compatible = "shared-dma-pool";
reg = <0x0 0xdf800000 0x0 0x800000>;
reusable;
status = "okay";
};
};
The DSPs seem to load fine but when I go to disable them (via /sys/bus/platform/drivers/omap-rproc/unbind) I get the following:
-bash-4.3# echo 40800000.dsp > /sys/bus/platform/drivers/omap-rproc/unbind
[ 537.629639] Unable to handle kernel paging request at virtual address e9a6307c
[ 537.636925] pgd = dcccd200
[ 537.639643] [e9a6307c] *pgd=80000080007003, *pmd=9cc08003, *pte=00000000
[ 537.646528] Internal error: Oops: a07 [#1] PREEMPT SMP ARM
[ 537.652038] Modules linked in: virtio_rpmsg_bus rpmsg_core omap_remoteproc remoteproc virtio virtio_ring usb_f_ecm g_ether usb_f_rndis u_ether libcomposite extcon_palmas gcm ccm arc4 dwc3 udc_core usb_common uio_pdrv_genirq uio phy_omap_usb2 dwc3_omap bridge stp llc xt_tcpudp ipv6 iptable_filter ip_tables x_tables hw_info bq40z60_battery mpu9250(C) extcon_usb_gpio extcon_core rtc_isl1208 omap_wdt
[ 537.690367] CPU: 0 PID: 459 Comm: bash Tainted: G WC 4.9.69 #3
[ 537.697273] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 537.703392] task: dccd5280 task.stack: dd5dc000
[ 537.707969] PC is at rproc_free_vring+0x10c/0x15c [remoteproc]
[ 537.713828] LR is at 0x0
[ 537.716373] pc : [<bf195424>] lr : [<00000000>] psr: 60020013
[ 537.716373] sp : dd5ddce0 ip : dd59f240 fp : dd5ddd1c
[ 537.727902] r10: c0214e44 r9 : e0000000 r8 : dd4d9800
[ 537.733146] r7 : de2b4c10 r6 : dd6d71f0 r5 : e9a63064 r4 : 00003000
[ 537.739704] r3 : e9a63064 r2 : ffffffff r1 : 00000000 r0 : 00000064
[ 537.746261] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 537.753424] Control: 30c5387d Table: 9cccd200 DAC: fffffffd
[ 537.759193] Process bash (pid: 459, stack limit = 0xdd5dc218)
[ 537.764963] Stack: (0xdd5ddce0 to 0xdd5de000)
[ 537.769338] dce0: 00000000 dd5dc000 de001e40 e0000000 00014ad2 dd6d7000 dd4d9a04 de2b4c10
[ 537.777550] dd00: e1410000 00100000 c0214e44 dd4d9800 dd5ddd34 dd5ddd20 bf195770 bf195324
[ 537.785764] dd20: dd4d99ec dd4d9a04 dd5ddd94 dd5ddd38 bf195c68 bf195758 00000000 c065bb8c
[ 537.793978] dd40: de2b4ce8 bf198494 bf1980fc c1207bd4 dd4d99f0 dd4d9800 dd4d9820 00000000
[ 537.802191] dd60: dd5ddd94 dd5ddd70 bf1a3b8c dd4d9a0c dd4d9800 dd4d9a0c dd4d99b4 dd4d99bc
[ 537.810405] dd80: dd4d9820 00000000 dd5dddbc dd5ddd98 bf1963d4 bf1957d0 de2b4c00 dd4d9800
[ 537.818619] dda0: 00000000 bf1a5878 00000034 00000000 dd5ddddc dd5dddc0 bf196560 bf196344
[ 537.826833] ddc0: de2b4c00 dd4d9800 00000000 bf1a5878 dd5dddf4 dd5ddde0 bf1a39bc bf196498
[ 537.835048] dde0: de2b4c10 de2b4c10 dd5dde0c dd5dddf8 c06533f0 bf1a39ac de2b4c10 de2b4c44
[ 537.843260] de00: dd5dde34 dd5dde10 c0651afc c06533d0 c12336c8 de2b4c10 0000000d bf1a5878
[ 537.851476] de20: 00000000 00000000 dd5dde44 dd5dde38 c0651ba8 c06519b4 dd5dde64 dd5dde48
[ 537.859689] de40: c064fda0 c0651b9c c064fd20 0000000d dd5ddf78 dd563340 dd5dde7c dd5dde68
[ 537.867902] de60: c064f18c c064fd2c c064f164 0000000d dd5dde94 dd5dde80 c03b141c c064f170
[ 537.876117] de80: dcccb380 0000000d dd5dded4 dd5dde98 c03b0bc8 c03b13e0 00000000 00000000
[ 537.884329] dea0: c034d6b0 dcccb38c dda66410 dcce9480 c03b0aec dd5ddf78 0000000d 00000000
[ 537.892545] dec0: 0000000d 00000000 dd5ddf44 dd5dded8 c033c4d4 c03b0af8 00000000 0000000a
[ 537.900760] dee0: dcdf0200 dd490dc0 00000000 dccc9300 0000000d 00000000 dcce9480 00000001
[ 537.908971] df00: dd5ddf44 dd5ddf10 c033d0d0 c04d155c 00000001 dcdf0200 dccc9300 00000001
[ 537.917185] df20: 0000000d dcce9480 00115408 dd5ddf78 00000000 0000000d dd5ddf74 dd5ddf48
[ 537.925399] df40: c033d33c c033c4ac dd5ddf74 dd5ddf58 dcce9480 dcce9480 00000000 00000000
[ 537.933613] df60: 00115408 0000000d dd5ddfa4 dd5ddf78 c033e13c c033d29c 00000000 00000000
[ 537.941829] df80: 0000000d 00115408 b6f1ed58 00000004 c02084e4 dd5dc000 00000000 dd5ddfa8
[ 537.950044] dfa0: c0208320 c033e104 0000000d 00115408 00000001 00115408 0000000d 00000000
[ 537.958258] dfc0: 0000000d 00115408 b6f1ed58 00000004 00000000 00000000 b6f8b000 00000000
[ 537.966471] dfe0: 00000000 bea4eaa4 b6e826c9 b6ebe006 00020030 00000001 6d760044 6174735f
[ 537.974681] Backtrace:
[ 537.977179] [<bf195318>] (rproc_free_vring [remoteproc]) from [<bf195770>] (rproc_vdev_release+0x24/0x78 [remoteproc])
[ 537.987924] r10:dd4d9800 r9:c0214e44 r8:00100000 r7:e1410000 r6:de2b4c10 r5:dd4d9a04
[ 537.995786] r4:dd6d7000
[ 537.998359] [<bf19574c>] (rproc_vdev_release [remoteproc]) from [<bf195c68>] (rproc_resource_cleanup+0x4a4/0x554 [remoteproc])
[ 538.009796] r5:dd4d9a04 r4:dd4d99ec
[ 538.013416] [<bf1957c4>] (rproc_resource_cleanup [remoteproc]) from [<bf1963d4>] (rproc_shutdown+0x9c/0x154 [remoteproc])
[ 538.024423] r10:00000000 r9:dd4d9820 r8:dd4d99bc r7:dd4d99b4 r6:dd4d9a0c r5:dd4d9800
[ 538.032285] r4:dd4d9a0c
[ 538.034859] [<bf196338>] (rproc_shutdown [remoteproc]) from [<bf196560>] (rproc_del+0xd4/0xe0 [remoteproc])
[ 538.044644] r9:00000000 r8:00000034 r7:bf1a5878 r6:00000000 r5:dd4d9800 r4:de2b4c00
[ 538.052446] [<bf19648c>] (rproc_del [remoteproc]) from [<bf1a39bc>] (omap_rproc_remove+0x1c/0x34 [omap_remoteproc])
[ 538.062925] r7:bf1a5878 r6:00000000 r5:dd4d9800 r4:de2b4c00
[ 538.068621] [<bf1a39a0>] (omap_rproc_remove [omap_remoteproc]) from [<c06533f0>] (platform_drv_remove+0x2c/0x44)
[ 538.078840] r5:de2b4c10 r4:de2b4c10
[ 538.082436] [<c06533c4>] (platform_drv_remove) from [<c0651afc>] (device_release_driver_internal+0x154/0x1e8)
[ 538.092391] r5:de2b4c44 r4:de2b4c10
[ 538.095986] [<c06519a8>] (device_release_driver_internal) from [<c0651ba8>] (device_release_driver+0x18/0x1c)
[ 538.105944] r9:00000000 r8:00000000 r7:bf1a5878 r6:0000000d r5:de2b4c10 r4:c12336c8
[ 538.113725] [<c0651b90>] (device_release_driver) from [<c064fda0>] (unbind_store+0x80/0x100)
[ 538.122205] [<c064fd20>] (unbind_store) from [<c064f18c>] (drv_attr_store+0x28/0x34)
[ 538.129983] r7:dd563340 r6:dd5ddf78 r5:0000000d r4:c064fd20
[ 538.135675] [<c064f164>] (drv_attr_store) from [<c03b141c>] (sysfs_kf_write+0x48/0x4c)
[ 538.143624] r5:0000000d r4:c064f164
[ 538.147219] [<c03b13d4>] (sysfs_kf_write) from [<c03b0bc8>] (kernfs_fop_write+0xdc/0x1dc)
[ 538.155431] r5:0000000d r4:dcccb380
[ 538.159026] [<c03b0aec>] (kernfs_fop_write) from [<c033c4d4>] (__vfs_write+0x34/0x120)
[ 538.166977] r10:00000000 r9:0000000d r8:00000000 r7:0000000d r6:dd5ddf78 r5:c03b0aec
[ 538.174836] r4:dcce9480
[ 538.177381] [<c033c4a0>] (__vfs_write) from [<c033d33c>] (vfs_write+0xac/0x170)
[ 538.184724] r9:0000000d r8:00000000 r7:dd5ddf78 r6:00115408 r5:dcce9480 r4:0000000d
[ 538.192504] [<c033d290>] (vfs_write) from [<c033e13c>] (SyS_write+0x44/0x98)
[ 538.199585] r9:0000000d r8:00115408 r7:00000000 r6:00000000 r5:dcce9480 r4:dcce9480
[ 538.207368] [<c033e0f8>] (SyS_write) from [<c0208320>] (ret_fast_syscall+0x0/0x40)
[ 538.214973] r9:dd5dc000 r8:c02084e4 r7:00000004 r6:b6f1ed58 r5:00115408 r4:0000000d
[ 538.222752] Code: e3e02000 e5900230 e0833000 e0835105 (e5c51018)
[ 538.229805] ---[ end trace 6ee89626842b6058 ]---
Any help as to what changed with the newer kernel and this memory address range would be appreciated.