Skip to content

Commit

Permalink
adsp: lagoon: enarlge adsp cma size to 16M
Browse files Browse the repository at this point in the history
there are lots of DMA alloc fail from adsprpc, and enlarge the memory according Qcom FAE
suggestion:
   0-15 08:16:28.815     0     0 E msm_dwc3_perf_vote_work: in_perf_mode:1, interrupts in last sample:2846
   0-15 08:16:29.835     0     0 I pm7250b_charger: Defenderault_irq_handler: IRQ: aicl-done
   0-15 08:16:30.346     0     0 W fastrpc soc: qcom,msm-adsprpc-mem: swiotlb: coherent allocation failed, size=3145728
   0-15 08:16:30.346     0     0 W         : CPU: 5 PID: 1594 Comm: adsprpcd Tainted: G S      W  O      4.19.81-perf+ #1
   0-15 08:16:30.346     0     0 W Hardware name: Kiev (DT)
   0-15 08:16:30.346     0     0 W Call trace:--
   0-15 08:16:30.346     0     0 W         : dump_backtrace+0x0/0x210
   0-15 08:16:30.346     0     0 W         : show_stack+0x14/0x20
   0-15 08:16:30.346     0     0 W         : dump_stack+0xc4/0xfc
   0-15 08:16:30.346     0     0 W         : swiotlb_alloc+0x150/0x158
   0-15 08:16:30.346     0     0 W         : __dma_alloc+0x128/0x3d8
   0-15 08:16:30.346     0     0 W         : fastrpc_mmap_create+0x33c/0xa10
   0-15 08:16:30.346     0     0 W         : fastrpc_internal_mmap+0xe8/0x218
   0-15 08:16:30.346     0     0 W         : fastrpc_device_ioctl+0x208/0x18f0
   0-15 08:16:30.346     0     0 W         : do_vfs_ioctl+0x62c/0x9c0
   0-15 08:16:30.346     0     0 E adsprpc : adsprpcd: dma_alloc_memory: dma_alloc_attrs failed for size 0x300000, returned 0000000000000000

   Qcom case SR: 04880794

Change-Id: I22466958911a9867b51ed07a455b8fc67d7059a2
Reviewed-on: https://gerrit.mot.com/1780625
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <[email protected]>
Submit-Approved: Jira Key
(cherry picked from commit ebc0c76593d02dfbbf08721efbc540df9d971170)
Reviewed-on: https://gerrit.mot.com/1781724
Reviewed-by: Xu Zhang <[email protected]>
SLTApproved: Xu Zhang <[email protected]>
Submit-Approved: Xu Zhang <[email protected]>
Tested-by: Xu Zhang <[email protected]>
Reviewed-by: Lianlu Chen <[email protected]>
  • Loading branch information
xizx authored and zhangxu21 committed Oct 22, 2020
1 parent e689154 commit 17eb4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcom/lagoon.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
alloc-ranges = <0 0x00000000 0 0xffffffff>;
reusable;
alignment = <0 0x400000>;
size = <0 0x800000>;
size = <0 0x1000000>;
};

/* global autoconfigured region for contiguous allocations */
Expand Down

0 comments on commit 17eb4a9

Please sign in to comment.