intel: Export pooled EU and min no. of eus in a pool

Graphics / Mesa 3D Graphics Library / libdrm - Yang Rong [intel.com] - 7 September 2016 07:50 UTC

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.

9888714 intel: Export pooled EU and min no. of eus in a pool.
include/drm/i915_drm.h | 2 ++
intel/intel_bufmgr.h | 3 +++
intel/intel_bufmgr_gem.c | 30 ++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+)

Upstream: cgit.freedesktop.org


  • Share