diff options
| author | Ville Syrjälä <[email protected]> | 2018-10-16 18:04:13 +0300 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2018-10-18 19:35:47 +0300 |
| commit | 73f522bad1794f7144caff1f46f1ffb31966a386 (patch) | |
| tree | 15e1b9e5487d9c94bfcffe831546bb438e22c50b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 198a2a2f1aea3eb6ea033cfec26da9a637405289 (diff) | |
drm/i915: Use i915_gem_object_get_dma_address() to populate rotated vmas
Replace the kvmalloc_array() with i915_gem_object_get_dma_address() when
populating rotated vmas. One random access mechanism ought to be enough
for everyone?
To calculate the size of the radix tree I think we can do
something like this (assuming 64bit pointers):
num_pages = obj_size / 4096
tree_height = ceil(log64(num_pages))
num_nodes = sum(64^n, n, 0, tree_height-1)
tree_size = num_nodes * 576
If we compare that with the object size we should get a relative
overhead of around .2% to 1% for reasonable sized objects,
which framebuffers tend to be.
Cc: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Suggested-by: Chris Wilson <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Tvrtko Ursulin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions