From: Rodrigo Vivi Date: Wed, 28 Aug 2013 19:45:46 +0000 (-0300) Subject: drm/i915: Report enabled slices on Haswell GT3 X-Git-Tag: v3.13-rc1~76^2~114^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9435373ef8870e0a84b6fec0ad89b952bf3097fa;p=pandora-kernel.git drm/i915: Report enabled slices on Haswell GT3 Batchbuffers constructed by userspace can conditionalise their URB allocations through the use of the MI_SET_PREDICATE command. This command can read the MI_PREDICATE_RESULT_2 register to see how many slices are enabled on GT3, and by virtue of the result, scale their memory allocations to fit enabled memory. Of course, this only works if the kernel sets the appropriate bit in the register first. v2: Better commit subject and message by Chris Wilson. Cc: Chris Wilson Credits-to: Yejun Guo Signed-off-by: Rodrigo Vivi Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed