summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc_m2m.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-03-23 17:26:58 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-03-23 17:44:00 +0800
commit091d9d8e655d60533f87480ac2f73a5a6b06267a (patch)
treee89a96f77f825f161109ba10288b7ceb1036d402 /sound/soc/fsl/fsl_asrc_m2m.c
parent614ecd7e6c6ddf3c3beb0f1434e9d6f5c9ee2e97 (diff)
MLK-23650-1: ASoC: fsl_easrc_m2m: Fix oops error
swiotlb don't allow the buffer length is zero. So we should not add one more buffer, if the buffer size is same as max_buf_size. [ 1853.382383] ------------[ cut here ]------------ [ 1853.387011] kernel BUG at kernel/dma/swiotlb.c:497! [ 1853.391889] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [ 1853.397372] Modules linked in: crct10dif_ce flexcan can_dev [ 1853.402950] CPU: 2 PID: 17298 Comm: easrc_testapp Not tainted 5.4.3-2.0.0+gfd263a3edd95 #1 [ 1853.411210] Hardware name: FSL i.MX8MP EVK (DT) [ 1853.415739] pstate: 80000005 (Nzcv daif -PAN -UAO) [ 1853.420535] pc : swiotlb_tbl_map_single+0x1fc/0x310 [ 1853.425413] lr : swiotlb_map+0x60/0x148 [ 1853.429245] sp : ffff800025fdba80 [ 1853.432557] x29: ffff800025fdba80 x28: 0000000000000000 [ 1853.437867] x27: ffff000177818638 x26: ffff800011b14000 [ 1853.443176] x25: ffff800011b149f8 x24: 0000000000000000 [ 1853.448485] x23: 00000001b1e0c000 x22: 0000000000000000 [ 1853.453793] x21: ffff0001763ef410 x20: 0000000000180000 [ 1853.459102] x19: ffff0001763ef410 x18: 0000000000000000 [ 1853.464411] x17: 0000000000000000 x16: 0000000000000000 [ 1853.469720] x15: 0000000000000000 x14: 001df82f001df82f [ 1853.475029] x13: ffff00017f34e000 x12: 0000000000000018 [ 1853.480338] x11: 00000000001fffff x10: 0001000000000000 [ 1853.485646] x9 : 0000000000000000 x8 : 0000000000000000 All test[s 1p8a5s3s.e4d90 w95i5] x7 : 0000000000000000 x6 : 0000000000000000 h success [ 1853.497911] x5 : 0000000000200000 x4 : 0000000000000000 [ 1853.504171] x3 : 0000000000000001 x2 : 00000001b1e0c000 [ 1853.509480] x1 : 00000000c0000000 x0 : 0000000000000000 [ 1853.514789] Call trace: [ 1853.517237] swiotlb_tbl_map_single+0x1fc/0x310 [ 1853.521766] swiotlb_map+0x60/0x148 [ 1853.525253] dma_direct_map_page+0xf0/0x130 [ 1853.529434] dma_direct_map_sg+0x78/0xe0 [ 1853.533356] fsl_easrc_dmaconfig+0x10c/0x398 [ 1853.537624] fsl_easrc_ioctl+0xcf4/0x1490 [ 1853.541633] do_vfs_ioctl+0x964/0xb48 [ 1853.545293] ksys_ioctl+0x78/0xa8 [ 1853.548607] __arm64_sys_ioctl+0x1c/0x28 [ 1853.552530] el0_svc_common.constprop.0+0x68/0x160 [ 1853.557320] el0_svc_handler+0x20/0x80 [ 1853.561067] el0_svc+0x8/0xc [ 1853.563949] Code: 912e4021 9417b69a a94363f7 17ffffd5 (d4210000) [ 1853.570042] ---[ end trace 5e9c94fcfabda124 ]--- Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_asrc_m2m.c')
0 files changed, 0 insertions, 0 deletions