diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-03-30 14:37:10 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-03-30 20:08:13 +0100 |
| commit | 0f1dd02295f35dcdcbaafcbcbbec0753884ab974 (patch) | |
| tree | 96213812c940c0a0141ad6052eddb7b7490571d1 /tools/perf/scripts/python | |
| parent | drm/i915/perf: Schedule oa_config after modifying the contexts (diff) | |
| download | linux-0f1dd02295f35dcdcbaafcbcbbec0753884ab974.tar.gz linux-0f1dd02295f35dcdcbaafcbcbbec0753884ab974.zip | |
drm/i915/gem: Split eb_vma into its own allocation
Use a separate array allocation for the execbuf vma, so that we can
track their lifetime independently from the copy of the user arguments.
With luck, this has a secondary benefit of splitting the malloc size to
within reason and avoid vmalloc. The downside is that we might require
two separate vmallocs -- but much less likely.
In the process, this prevents a memory leak on the ww_mutex error
unwind.
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1390
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200330133710.14385-1-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
