[PATCH] intel: Export GT config attributes

2014-12-18 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Update kernel interface with new I915_GETPARAM ioctl entries for slice total, subslice total, EU total, and threads per EU. Add a wrapping function for each parameter. The motivation for this change is that fusing can be used to create multiple

[PATCH] intel: Export GT config attributes

2014-12-18 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> The motivation for this change is that fusing can be used to create multiple slice, subslice, and EU configuration within the same PCI ID. CHV is the first such device to do this and thus make an ID-based lookup table approach unreliable. The best so

[PATCH] drm/i915: Export total subslice and EU counts

2015-03-02 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Setup new I915_GETPARAM ioctl entries for subslice total and EU total. Userspace drivers need these values when constructing GPGPU commands. This kernel query method is intended to replace the PCI ID-based tables that userspace drivers currently ma

[PATCH] intel: Export total subslice and EU counts

2015-03-02 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Update kernel interface with new I915_GETPARAM ioctl entries for subslice total and EU total. Add a wrapping function for each parameter. Userspace drivers need these values when constructing GPGPU commands. This kernel query method is intended to r

[PATCH] tests/core_getparams: Create new test core_getparams

2015-03-02 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> New test core_getparams consists of 2 subtests, each one testing the ability of userspace to query the correct value of a GT config attribute: subslice total or EU total. drm/i915 implementation of these queries is required for Cherryview and Gen9+ d

[PATCH 1/2] Add driver callback for updating device info

2015-03-02 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> We need to update some fields of the device's cl_device_id struct at runtime using driver-specific methods. It is best to group all such updates into a single driver callback to avoid opening/initing and deiniting/closing the device multiple times.

[PATCH 2/2] Query the driver directly for compute units and subslice

2015-03-02 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Values of device max compute units and max subslice obtained directly from the driver should be more accurate than our own ID-based lookup values. This is particularly important when a single device ID may encompass more than one configu

[PATCH v2] drm/i915: Export total subslice and EU counts

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Setup new I915_GETPARAM ioctl entries for subslice total and EU total. Userspace drivers need these values when constructing GPGPU commands. This kernel query method is intended to replace the PCI ID-based tables that userspace drivers currently ma

[PATCH 1/2 v2] intel: Export total subslice and EU counts

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Update kernel interface with new I915_GETPARAM ioctl entries for subslice total and EU total. Add a wrapping function for each parameter. Userspace drivers need these values when constructing GPGPU commands. This kernel query method is intended to r

[PATCH 2/2] configure.ac: bump version to 2.4.60 for release

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Signed-off-by: Jeff McGee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8afee83..278f29b 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_PREREQ([2.63]) A

[PATCH i-g-t 1/2] tests/core_getparams: Create new test core_getparams

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> New test core_getparams consists of 2 subtests, each one testing the ability of userspace to query the correct value of a GT config attribute: subslice total or EU total. drm/i915 implementation of these queries is required for Cherryview and Gen9+ d

[PATCH i-g-t 2/2] configure: Bump required libdrm version to 2.4.60

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> tests/core_getparams needs the new libdrm interfaces for querying subslice and EU counts. For: VIZ-4636 Signed-off-by: Jeff McGee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac

[PATCH i-g-t 2/2] configure: Bump required libdrm version to 2.4.60

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> tests/core_getparams needs the new libdrm interfaces for querying subslice and EU counts. For: VIZ-4636 Signed-off-by: Jeff McGee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac

[PATCH 2/2 v2] Query the driver directly for compute units and subslice

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> Values of device max compute units and max subslice obtained directly from the driver should be more accurate than our own ID-based lookup values. This is particularly important when a single device ID may encompass more than one configu

[PATCH i-g-t 2/2] configure: Bump required libdrm version to 2.4.60

2015-03-09 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> tests/core_getparams needs the new libdrm interfaces for querying subslice and EU counts. For: VIZ-4636 Signed-off-by: Jeff McGee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac

[PATCH i-g-t v2] tests/core_getparams: Create new test core_getparams

2015-03-12 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> New test core_getparams consists of 2 subtests, each one testing the ability of userspace to query the correct value of a GT config attribute: subslice total or EU total. drm/i915 implementation of these queries is required for Cherryview and Gen9+ d

[PATCH i-g-t v3] tests/core_getparams: Create new test core_getparams

2015-03-12 Thread jeff.mc...@intel.com
From: Jeff McGee <jeff.mc...@intel.com> New test core_getparams consists of 2 subtests, each one testing the ability of userspace to query the correct value of a GT config attribute: subslice total or EU total. drm/i915 implementation of these queries is required for Cherryview and Gen9+ d