diff options
author | Chris Wilson <[email protected]> | 2020-09-15 10:14:15 +0100 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2020-09-30 14:24:17 -0400 |
commit | 4caf017ee93703ba1c4504f3d73b50e6bbd4249e (patch) | |
tree | a3c0c210a9a59217ea3bc0cce5f5e83d1763a8b6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ef80c1a1d21b2845e3a60dcb936264b123ebf41c (diff) |
drm/i915/gem: Avoid implicit vmap for highmem on x86-32
On 32b, highmem using a finite set of indirect PTE (i.e. vmap) to provide
virtual mappings of the high pages. As these are finite, map_new_virtual()
must wait for some other kmap() to finish when it runs out. If we map a
large number of objects, there is no method for it to tell us to release
the mappings, and we deadlock.
However, if we make an explicit vmap of the page, that uses a larger
vmalloc arena, and also has the ability to tell us to release unwanted
mappings. Most importantly, it will fail and propagate an error instead
of waiting forever.
Fixes: fb8621d3bee8 ("drm/i915: Avoid allocating a vmap arena for a single page") #x86-32
References: e87666b52f00 ("drm/i915/shrinker: Hook up vmap allocation failure notifier")
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Cc: <[email protected]> # v4.7+
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 060bb115c2d664f04db9c7613a104dfaef3fdd98)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions