aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2020-09-23 12:41:56 +0100
committerChris Wilson <[email protected]>2021-01-05 13:06:02 +0000
commit8d03344b9df3dca108f8849c71a4eb5e65cebcf4 (patch)
tree674e5277ff2528714167ba4e59f9c221fcddfe07 /tools/perf/scripts/python/stat-cpi.py
parent0e58de9fc939e7552808f267bffde0b31feaf08a (diff)
drm/i915/selftests: Switch 4k kmalloc to use get_free_page for alignment
In generating the reference LRC, we want a page-aligned address for simplicity in computing the offsets within. This then shares the computation for the HW LRC which is mapped and so page aligned, making the comparison straightforward. It seems that kmalloc(4k) is not always returning from a 4k-aligned slab cache (which would give us a page aligned address) so force alignment by explicitly allocating a page. Reported-by: "Gote, Nitin R" <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Cc: "Gote, Nitin R" <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions