aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2017-12-15 19:59:47 -0800
committerGreg Kroah-Hartman <[email protected]>2017-12-19 15:53:39 +0100
commitf292b9b28097d8fe870336108e91bd95a14294bf (patch)
tree0fc82c6ecd5b90f011c8a2e6aeceb10613ffc8e7 /tools/perf/scripts/python/export-to-postgresql.py
parenta93639090a2743c8e205c1ac25439702702b4ce4 (diff)
staging: ion: Fix ion_cma_heap allocations
In trying to add support for drm_hwcomposer to HiKey, I've needed to utilize the ION CMA heap, and I've noticed problems with allocations on newer kernels failing. It seems back with 204f672255c2 ("ion: Use CMA APIs directly"), the ion_cma_heap code was modified to use the CMA API, but kept the arguments as buffer lengths rather then number of pages. This results in errors as we don't have enough pages in CMA to satisfy the exaggerated requests. This patch converts the ion_cma_heap CMA API usage to properly request pages. It also fixes a minor issue in the allocation where in the error path, the cma_release is called with the buffer->size value which hasn't yet been set. Cc: Laura Abbott <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Benjamin Gaignard <[email protected]> Cc: Archit Taneja <[email protected]> Cc: Greg KH <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Dmitry Shmidt <[email protected]> Cc: Todd Kjos <[email protected]> Cc: Amit Pundir <[email protected]> Fixes: 204f672255c2 ("staging: android: ion: Use CMA APIs directly") Acked-by: Laura Abbott <[email protected]> Signed-off-by: John Stultz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions