Skip to content

Commit

Permalink
adsp: lagoon: change adsp memory to dedicated use
Browse files Browse the repository at this point in the history
Since we have already enlarger adsp memory, still have dma_alloc_attrs failed,
change adsp memory dedicated and revert size to 8M as qualcomm suggest.

       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

Change-Id: I7055a238af4c2a404fc4e1c15b81914c7243f830
Reviewed-on: https://gerrit.mot.com/1803192
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <[email protected]>
Submit-Approved: Jira Key
  • Loading branch information
dudd1 authored and hudsoncm committed Nov 24, 2020
1 parent 17eb4a9 commit 1072e18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qcom/lagoon.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,8 @@
adsp_mem: adsp_region {
compatible = "shared-dma-pool";
alloc-ranges = <0 0x00000000 0 0xffffffff>;
reusable;
alignment = <0 0x400000>;
size = <0 0x1000000>;
size = <0 0x800000>;
};

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

0 comments on commit 1072e18

Please sign in to comment.