aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2016-01-22 18:32:31 +0000
committerRodrigo Vivi <[email protected]>2016-02-03 10:21:24 -0800
commitde4726649b6b1d7f3f02b2031ee99e067cb71e2d (patch)
tree1edb28e1ca191d3d8053cde723008b2179fad3d3 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parentb2435692dbb709d4c8ff3b2f2815c9b8423b72bb (diff)
drm/i915: Allow i915_gem_object_get_page() on userptr as well
commit 033908aed5a596f6202c848c6bbc8a40fb1a8490 Author: Dave Gordon <[email protected]> Date: Thu Dec 10 18:51:23 2015 +0000 drm/i915: mark GEM object pages dirty when mapped & written by the CPU introduced a check into i915_gem_object_get_dirty_pages() that returned a NULL pointer when called with a bad object, one that was not backed by shmemfs. This WARN was too strict as we can work on all struct page backed objects, and resulted in a WARN + GPF for existing userspace. In order to differentiate the various types of objects, add a new flags field to the i915_gem_object_ops struct to describe their capabilities, with the first flag being whether the object has struct pages. v2: Drop silly const before an integer in the structure declaration. Testcase: igt/gem_userptr_blits/relocations Reported-and-tested-by: Kristian Høgsberg Kristensen <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Cc: Dave Gordon <[email protected]> Cc: Kristian Høgsberg Kristensen <[email protected]> Cc: Daniel Vetter <[email protected]> Reviewed-by: Dave Gordon <[email protected]> Reviewed-by: Kristian Høgsberg Kristensen <[email protected]> Tested-by: Michal Winiarski <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions