aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2016-08-29 10:30:51 -0700
committerVinod Koul <[email protected]>2016-08-31 10:09:32 +0530
commit36387a2b1f62b5c087c5fe6f0f7b23b94f722ad7 (patch)
tree44e1b2bb543d2b4f9c80aef802dfd6cd17c36399 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentb77f262ae351d467c22b056f6d13afeeab7ea69a (diff)
k3dma: Fix memory handling in preparation for cyclic mode
With cyclic mode, the shared virt-dma logic doesn't actually manage the descriptor state, nor the calling of the descriptor free callback. This results in leaking a desc structure every time we start an audio transfer. Thus we must manage it ourselves. The k3dma driver already keeps track of the active and finished descriptors via ds_run and ds_done pointers, so cleanup how we handle those two values, so when we tear down everything in terminate_all, call free_desc on the ds_run and ds_done pointers if they are not null. NOTE: HiKey doesn't use the non-cyclic dma modes, so I'm not been able to test those modes. But with this patch we no longer leak the desc structures. Cc: Zhangfei Gao <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Vinod Koul <[email protected]> Cc: Dan Williams <[email protected]> Cc: Mark Brown <[email protected]> Cc: Andy Green <[email protected]> Acked-by: Zhangfei Gao <[email protected]> Signed-off-by: John Stultz <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions