From: Mika Kuoppala Date: Thu, 23 May 2013 10:55:35 +0000 (+0300) Subject: drm/i915: avoid big kmallocs on reading error state X-Git-Tag: v3.11-rc1~65^2~105^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edc3d8848dc9fe2a470316363dab8ef211d77e01;p=pandora-kernel.git drm/i915: avoid big kmallocs on reading error state Sometimes when user is trying to get error state out from debugfs after gpu hang, the memory is low and/or fragmented enough that kmalloc in seq_file will fail. Prevent big kmalloc by avoiding seq_file and instead convert error state to string in smaller chunks. v2: better alloc flags, better truncate, correct locking, and error handling improvements (Chris Wilson) v3: printf annotations (Daniel Vetter) Signed-off-by: Mika Kuoppala Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed