OSDN Git Service

intel: Export pooled EU and min no. of eus in a pool.
authorYang Rong <rong.r.yang@intel.com>
Tue, 2 Aug 2016 07:50:34 +0000 (15:50 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Sep 2016 12:50:23 +0000 (13:50 +0100)
commit98887140e343493f01be7a1dec721c024bcf72c7
tree1527e4ad88154c9225ddcd848736dd57ec0fba67
parenta625ba8d2d4da33bd6d7bb057d2bdf7cb484fd6c
intel: Export pooled EU and min no. of eus in a pool.

Update kernel interface with new I915_GETPARAM ioctl entries for
pooled EU and min no. of eus in a pool. Add a wrapping function
for each parameter. Userspace drivers need these values when decide
the thread count. This kernel enabled pooled eu by default for BXT
and for fused down 2x6 parts it is advised to turn it off.

But there is another HW issue in these parts (fused
down 2x6 parts) before C0 that requires Pooled EU to be enabled as a
workaround. In this case the pool configuration changes depending upon
which subslice is disabled and the no. of eus in a pool is different,
So userspace need to know min no. of eus in a pool.

V2: use return value as the query results.
    ret < 0 when error, ret = 0 when not support, and ret > 0 indicate
    query results.(Chris)
V3: Correct V2 errors.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
include/drm/i915_drm.h
intel/intel_bufmgr.h
intel/intel_bufmgr_gem.c