diff options
author | Daniele Ceraolo Spurio <[email protected]> | 2016-01-27 15:43:49 +0000 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2016-02-11 06:57:32 +0100 |
commit | ff3dc0875cfa37851b9902c014b9eaa2f697400c (patch) | |
tree | 3958470b10b4581d411c320ec344d8cd1f5830c4 /tools/perf/scripts/python/stackcollapse.py | |
parent | 2417c8c03f508841b85bf61acc91836b7b0e2560 (diff) |
drm/i915: check that rpm ref is held when accessing ringbuf in stolen mem
While running some tests on the scheduler patches with rpm enabled I
came across a corruption in the ringbuffer, which was root-caused to
the GPU being suspended while commands were being emitted to the
ringbuffer. The access to memory was failing because the GPU needs to
be awake when accessing stolen memory (where my ringbuffer was located).
Since we have this constraint it looks like a sensible idea to check
that we hold a refcount when we access the rungbuffer.
v2: move the check from ring_begin to ringbuffer iomap time (Chris)
v3: update comment (Chris)
Cc: John Harrison <[email protected]>
Cc: Chris Wilson <[email protected]>
Signed-off-by: Daniele Ceraolo Spurio <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/1453909429-11024-1-git-send-email-daniele.ceraolospurio@intel.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions