diff options
| author | Michał Winiarski <[email protected]> | 2015-09-03 19:22:18 +0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2015-09-04 10:09:56 +0200 |
| commit | 3a41a05d70b4fb455256fd3a8348e186f156c310 (patch) | |
| tree | 1d16b71de586bc9a7e52661f40ae62391f1dd114 /tools/perf/scripts/python | |
| parent | ea916ea057299f66e774c9131e269df070a84779 (diff) | |
drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps
On each call to gen8_alloc_va_range_3lvl we're allocating temporary
bitmaps needed for error handling. Unfortunately, when we increase
address space size (48b ppgtt) we do additional (512 - 4) calls to
kcalloc, increasing latency between exec and actual start of execution
on the GPU. Let's just do a single kcalloc, we can also drop the size
from free_gen8_temp_bitmaps since it's no longer used.
v2: Use GFP_TEMPORARY to make the allocations reclaimable.
v3: Drop the 2D array, just allocate a single block.
v4: Rebase to handle gen8_preallocate_top_level_pdps.
v5: Align misaligned bracket.
Cc: Chris Wilson <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Michel Thierry <[email protected]>
Signed-off-by: Michał Winiarski <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
[danvet: Correct kcalloc arguments as suggested by Chris.]
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions