diff options
author | Chris Wilson <[email protected]> | 2018-12-04 14:15:16 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2018-12-04 15:57:08 +0000 |
commit | 5179749925933575a67f9d8f16d0cc204f98a29f (patch) | |
tree | 878d729abd18c05dc8f0266b4920bc378acdcaf8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4d8d9fc7050106cbac8141bd5ed5db3e4abbd5fa (diff) |
drm/i915: Allocate a common scratch page
Currently we allocate a scratch page for each engine, but since we only
ever write into it for post-sync operations, it is not exposed to
userspace nor do we care for coherency. As we then do not care about its
contents, we can use one page for all, reducing our allocations and
avoid complications by not assuming per-engine isolation.
For later use, it simplifies engine initialisation (by removing the
allocation that required struct_mutex!) and means that we can always rely
on there being a scratch page.
v2: Check that we allocated a large enough scratch for I830 w/a
Fixes: 06e562e7f515 ("drm/i915/ringbuffer: Delay after EMIT_INVALIDATE for gen4/gen5") # v4.18.20
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108850
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Cc: Joonas Lahtinen <[email protected]>
Cc: <[email protected]> # v4.18.20+
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions