Files
linux/drivers/gpu/drm/i915
Chris Wilson 4c9613ce55 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: 0a97015d45 ("drm/i915: Compress GPU objects in error state")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: <[email protected]> # v4.10+
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 83bc0f5b43)
Signed-off-by: Rodrigo Vivi <[email protected]>
2018-10-03 08:02:42 -07:00
..
…
2018-08-06 11:18:01 -07:00
2018-08-06 11:18:01 -07:00
2017-10-07 10:11:41 +01:00
…
2018-03-08 10:07:18 +00:00
2018-06-12 16:19:22 -07:00
2018-07-12 17:31:28 +02:00
2018-08-06 11:18:01 -07:00