OSDN Git Service

drm/i915: Compress GPU objects in error state
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Oct 2016 09:05:22 +0000 (10:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Oct 2016 11:00:33 +0000 (12:00 +0100)
commit0a97015d45ee4d5b1d0b93596e8319c9c2ecdb5b
tree6f1a4c726087f3eb4d69421354af539ca1c8034b
parentfc4c79c37e822719cab447a448af0b48f4a52418
drm/i915: Compress GPU objects in error state

Our error states are quickly growing, pinning kernel memory with them.
The majority of the space is taken up by the error objects. These
compress well using zlib and without decode are mostly meaningless, so
encoding them does not hinder quickly parsing the error state for
familiarity.

v2: Make the zlib dependency optional

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161012090522.367-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c