diff options
author | 2018-10-03 09:24:22 +0100 | |
---|---|---|
committer | 2018-10-03 08:02:42 -0700 | |
commit | 4c9613ce556fdeb671e779668b627ea3a2b61728 (patch) | |
tree | 0b79560066e47e1b1b08f00164883824d77a0dc5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | drm/i915: Avoid compiler warning for maybe unused gu_misc_iir (diff) | |
download | linux-dev-4c9613ce556fdeb671e779668b627ea3a2b61728.tar.xz linux-dev-4c9613ce556fdeb671e779668b627ea3a2b61728.zip |
drm/i915: Handle incomplete Z_FINISH for compressed error states
The final call to zlib_deflate(Z_FINISH) may require more output
space to be allocated and so needs to re-invoked. Failure to do so in
the current code leads to incomplete zlib streams (albeit intact due to
the use of Z_SYNC_FLUSH) resulting in the occasional short object
capture.
v2: Check against overrunning our pre-allocated page array
v3: Drop Z_SYNC_FLUSH entirely
Testcase: igt/i915-error-capture.js
Fixes: 0a97015d45ee ("drm/i915: Compress GPU objects in error state")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: <stable@vger.kernel.org> # v4.10+
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181003082422.23214-1-chris@chris-wilson.co.uk
(cherry picked from commit 83bc0f5b432f60394466deef16fc753e27371d0b)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions