Skip to contentSkip to conversation

BXT Pooled EU kernel support

PATCH Superseded Arun Siluvery 2 participants 8 messages May 12, 2016 – May 17, 2016

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover BXT Pooled EU kernel support

Pooled EU is a BXT only feature, prep patches are merged a while ago. Patch that enables the feature is also reviewed but not merged because of lack of opensource user.

https://lists.freedesktop.org/archives/intel-gfx/2015-July/072051.html

Kernel simply enables the support, userspace enquires certain parameters from kernel and dispatches threads to use this feature.

One of the patch is a WA related to this feature, this only affects 2x6 devices, please check the patch for more details.

Beignet recently expressed interest in using feature and asked to complete kernel support, they are currently adding userspace and libdrm support, meanwhile we can get some testing done on these patches.

Arun Siluvery (2):
drm/i915:bxt: Enable Pooled EU support
drm/i915/bxt: Add WaEnablePooledEuFor2x6

 drivers/gpu/drm/i915/i915_debugfs.c          |  5 ++++
 drivers/gpu/drm/i915/i915_dma.c              | 36 ++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_drv.c              |  1 +
 drivers/gpu/drm/i915/i915_drv.h              |  6 ++++-
 drivers/gpu/drm/i915/i915_gem_render_state.c | 24 +++++++++++++++++++
 drivers/gpu/drm/i915/i915_reg.h              |  2 ++
 include/uapi/drm/i915_drm.h                  |  2 ++
 7 files changed, 75 insertions(+), 1 deletion(-)
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 1/2 drm/i915:bxt: Enable Pooled EU support

This mode allows to assign EUs to pools which can process work collectively. The command to enable this mode should be issued as part of context initialization.

The pooled mode is global, once enabled it has to stay the same across all contexts until HW reset hence this is sent in auxiliary golden context batch. Thanks to Mika for the preliminary review and comments.

v2: explain why this is enabled in golden context, use feature flag while enabling the support (Chris)

v3: Pooled EU support announced in userspace before enabling in kernel, to simplify include all changes in the same patch.

User space clients need to know when the pooled EU feature is present and enabled on the hardware so that they can adapt work submissions. Create a new device info flag for this purpose, and create a new GETPARAM entry to allow user space to query its setting.

Set has_pooled_eu to true in the Broxton static device info - Broxton supports the feature in hardware and the driver will enable it by default.

Opensource users for this feature are mesa, libva and beignet.

Cc Winiarski, Michal <[email protected]>
Cc Zou, Nanhai <[email protected]>
Cc Yang, Rong R <[email protected]>
Cc Mika Kuoppala <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Armin Reese <[email protected]>
Cc Tim Gore <[email protected]>
---
 drivers/gpu/drm/i915/i915_dma.c              |  3 +++
 drivers/gpu/drm/i915/i915_drv.c              |  1 +
 drivers/gpu/drm/i915/i915_drv.h              |  5 ++++-
 drivers/gpu/drm/i915/i915_gem_render_state.c | 13 +++++++++++++
 drivers/gpu/drm/i915/i915_reg.h              |  2 ++
 include/uapi/drm/i915_drm.h                  |  1 +
 6 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +3 -0
index 0eadeb6..5cd2ad4 100644
@@ -222,6 +222,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
 		if (!value)
 			return -ENODEV;
 		break;
+	case I915_PARAM_HAS_POOLED_EU:
+		value = HAS_POOLED_EU(dev);
+		break;
 	case I915_PARAM_HAS_GPU_RESET:
 		value = i915.enable_hangcheck && intel_has_gpu_reset(dev_priv);
 		break;
drivers/gpu/drm/i915/i915_drv.c +1 -0
index 5ae7960..33e0fd0 100644
@@ -357,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = {
 	.has_ddi = 1,
 	.has_fpga_dbg = 1,
 	.has_fbc = 1,
+	.has_pooled_eu = 1,
 	GEN_DEFAULT_PIPEOFFSETS,
 	IVB_CURSOR_OFFSETS,
 	BDW_COLORS,
drivers/gpu/drm/i915/i915_drv.h +4 -1
index 7a0b513..5b2a7a3 100644
@@ -750,7 +750,8 @@ struct intel_csr {
 	func(has_llc) sep \
 	func(has_snoop) sep \
 	func(has_ddi) sep \
-	func(has_fpga_dbg)
+	func(has_fpga_dbg) sep \
+	func(has_pooled_eu)
 
 #define DEFINE_FLAG(name) u8 name:1
 #define SEP_SEMICOLON ;
@@ -2736,6 +2737,8 @@ struct drm_i915_cmd_table {
 				 !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \
 				 !IS_BROXTON(dev))
 
+#define HAS_POOLED_EU(dev)	(INTEL_INFO(dev)->has_pooled_eu)
+
 #define INTEL_PCH_DEVICE_ID_MASK		0xff00
 #define INTEL_PCH_IBX_DEVICE_ID_TYPE		0x3b00
 #define INTEL_PCH_CPT_DEVICE_ID_TYPE		0x1c00
drivers/gpu/drm/i915/i915_gem_render_state.c +13 -0
index 7c93327..1284f99 100644
@@ -94,6 +94,7 @@ free_gem:
 
 static int render_state_setup(struct render_state *so)
 {
+	struct drm_device *dev = so->obj->base.dev;
 	const struct intel_renderstate_rodata *rodata = so->rodata;
 	unsigned int i = 0, reloc_index = 0;
 	struct page *page;
@@ -135,6 +136,18 @@ static int render_state_setup(struct render_state *so)
 
 	so->aux_batch_offset = i * sizeof(u32);
 
+	if (HAS_POOLED_EU(dev)) {
+		u32 pool_config = (INTEL_INFO(dev)->subslice_total == 3 ?
+				   0x00777000 : 0);
+
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
+		OUT_BATCH(d, i, pool_config);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+	}
+
 	OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
 	so->aux_batch_size = (i * sizeof(u32)) - so->aux_batch_offset;
 
drivers/gpu/drm/i915/i915_reg.h +2 -0
index 54ce0b1..dc67e0e 100644
@@ -442,6 +442,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
  */
 #define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
 
+#define GEN9_MEDIA_POOL_STATE     ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4)
+#define   GEN9_MEDIA_POOL_ENABLE  (1 << 31)
 #define GFX_OP_RASTER_RULES    ((0x3<<29)|(0x7<<24))
 #define GFX_OP_SCISSOR         ((0x3<<29)|(0x1c<<24)|(0x10<<19))
 #define   SC_UPDATE_SCISSOR       (0x1<<1)
include/uapi/drm/i915_drm.h +1 -0
index a5524cc..0b0acad 100644
@@ -357,6 +357,7 @@ typedef struct drm_i915_irq_wait {
 #define I915_PARAM_HAS_GPU_RESET	 35
 #define I915_PARAM_HAS_RESOURCE_STREAMER 36
 #define I915_PARAM_HAS_EXEC_SOFTPIN	 37
+#define I915_PARAM_HAS_POOLED_EU	 38
 
 typedef struct drm_i915_getparam {
 	__s32 param;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

Re: [PATCH 1/2] drm/i915:bxt: Enable Pooled EU support

Quoted 18 lines · Arun Siluvery

This mode allows to assign EUs to pools which can process work collectively. The command to enable this mode should be issued as part of context initialization.

The pooled mode is global, once enabled it has to stay the same across all contexts until HW reset hence this is sent in auxiliary golden context batch. Thanks to Mika for the preliminary review and comments.

v2: explain why this is enabled in golden context, use feature flag while enabling the support (Chris)

v3: Pooled EU support announced in userspace before enabling in kernel, to simplify include all changes in the same patch.

User space clients need to know when the pooled EU feature is present and enabled on the hardware so that they can adapt work submissions. Create a new device info flag for this purpose, and create a new GETPARAM entry to allow user space to query its setting.

Quoted 5 lines

Set has_pooled_eu to true in the Broxton static device info - Broxton supports the feature in hardware and the driver will enable it by default.

Opensource users for this feature are mesa, libva and beignet.

Link to those patches would be great. At least I haven't seen anything fly by for mesa or libva, might have missed it though. Note that the patches must be fully reviewed an ready for merging by respective userspace upstream, before we can land the kernel side.
-Daniel

Quoted 132 lines
Cc Winiarski, Michal <[email protected]>
Cc Zou, Nanhai <[email protected]>
Cc Yang, Rong R <[email protected]>
Cc Mika Kuoppala <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Armin Reese <[email protected]>
Cc Tim Gore <[email protected]>
---
 drivers/gpu/drm/i915/i915_dma.c              |  3 +++
 drivers/gpu/drm/i915/i915_drv.c              |  1 +
 drivers/gpu/drm/i915/i915_drv.h              |  5 ++++-
 drivers/gpu/drm/i915/i915_gem_render_state.c | 13 +++++++++++++
 drivers/gpu/drm/i915/i915_reg.h              |  2 ++
 include/uapi/drm/i915_drm.h                  |  1 +
 6 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +3 -0
index 0eadeb6..5cd2ad4 100644
@@ -222,6 +222,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
 		if (!value)
 			return -ENODEV;
 		break;
+	case I915_PARAM_HAS_POOLED_EU:
+		value = HAS_POOLED_EU(dev);
+		break;
 	case I915_PARAM_HAS_GPU_RESET:
 		value = i915.enable_hangcheck && intel_has_gpu_reset(dev_priv);
 		break;
drivers/gpu/drm/i915/i915_drv.c +1 -0
index 5ae7960..33e0fd0 100644
@@ -357,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = {
 	.has_ddi = 1,
 	.has_fpga_dbg = 1,
 	.has_fbc = 1,
+	.has_pooled_eu = 1,
 	GEN_DEFAULT_PIPEOFFSETS,
 	IVB_CURSOR_OFFSETS,
 	BDW_COLORS,
drivers/gpu/drm/i915/i915_drv.h +4 -1
index 7a0b513..5b2a7a3 100644
@@ -750,7 +750,8 @@ struct intel_csr {
 	func(has_llc) sep \
 	func(has_snoop) sep \
 	func(has_ddi) sep \
-	func(has_fpga_dbg)
+	func(has_fpga_dbg) sep \
+	func(has_pooled_eu)
 
 #define DEFINE_FLAG(name) u8 name:1
 #define SEP_SEMICOLON ;
@@ -2736,6 +2737,8 @@ struct drm_i915_cmd_table {
 				 !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \
 				 !IS_BROXTON(dev))
 
+#define HAS_POOLED_EU(dev)	(INTEL_INFO(dev)->has_pooled_eu)
+
 #define INTEL_PCH_DEVICE_ID_MASK		0xff00
 #define INTEL_PCH_IBX_DEVICE_ID_TYPE		0x3b00
 #define INTEL_PCH_CPT_DEVICE_ID_TYPE		0x1c00
drivers/gpu/drm/i915/i915_gem_render_state.c +13 -0
index 7c93327..1284f99 100644
@@ -94,6 +94,7 @@ free_gem:
 
 static int render_state_setup(struct render_state *so)
 {
+	struct drm_device *dev = so->obj->base.dev;
 	const struct intel_renderstate_rodata *rodata = so->rodata;
 	unsigned int i = 0, reloc_index = 0;
 	struct page *page;
@@ -135,6 +136,18 @@ static int render_state_setup(struct render_state *so)
 
 	so->aux_batch_offset = i * sizeof(u32);
 
+	if (HAS_POOLED_EU(dev)) {
+		u32 pool_config = (INTEL_INFO(dev)->subslice_total == 3 ?
+				   0x00777000 : 0);
+
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
+		OUT_BATCH(d, i, pool_config);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+	}
+
 	OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
 	so->aux_batch_size = (i * sizeof(u32)) - so->aux_batch_offset;
 
drivers/gpu/drm/i915/i915_reg.h +2 -0
index 54ce0b1..dc67e0e 100644
@@ -442,6 +442,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
  */
 #define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
 
+#define GEN9_MEDIA_POOL_STATE     ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4)
+#define   GEN9_MEDIA_POOL_ENABLE  (1 << 31)
 #define GFX_OP_RASTER_RULES    ((0x3<<29)|(0x7<<24))
 #define GFX_OP_SCISSOR         ((0x3<<29)|(0x1c<<24)|(0x10<<19))
 #define   SC_UPDATE_SCISSOR       (0x1<<1)
include/uapi/drm/i915_drm.h +1 -0
index a5524cc..0b0acad 100644
@@ -357,6 +357,7 @@ typedef struct drm_i915_irq_wait {
 #define I915_PARAM_HAS_GPU_RESET	 35
 #define I915_PARAM_HAS_RESOURCE_STREAMER 36
 #define I915_PARAM_HAS_EXEC_SOFTPIN	 37
+#define I915_PARAM_HAS_POOLED_EU	 38
 
 typedef struct drm_i915_getparam {
 	__s32 param;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw

Re: [PATCH 1/2] drm/i915:bxt: Enable Pooled EU support

Quoted 23 lines · Daniel Vetter
Quoted 22 lines · Arun Siluvery

This mode allows to assign EUs to pools which can process work collectively. The command to enable this mode should be issued as part of context initialization.

The pooled mode is global, once enabled it has to stay the same across all contexts until HW reset hence this is sent in auxiliary golden context batch. Thanks to Mika for the preliminary review and comments.

v2: explain why this is enabled in golden context, use feature flag while enabling the support (Chris)

v3: Pooled EU support announced in userspace before enabling in kernel, to simplify include all changes in the same patch.

User space clients need to know when the pooled EU feature is present and enabled on the hardware so that they can adapt work submissions. Create a new device info flag for this purpose, and create a new GETPARAM entry to allow user space to query its setting.

Set has_pooled_eu to true in the Broxton static device info - Broxton supports the feature in hardware and the driver will enable it by default.

Quoted 6 lines
Quoted 1 line

Opensource users for this feature are mesa, libva and beignet.

Link to those patches would be great. At least I haven't seen anything fly by for mesa or libva, might have missed it though. Note that the patches must be fully reviewed an ready for merging by respective userspace upstream, before we can land the kernel side.

Initially beignet is trying to use it and they are adding support to it. I will share links once they send them to the list, reviewed and ready to be merged.

regards
Arun

Quoted 130 lines

-Daniel

Quoted 128 lines
Cc Winiarski, Michal <[email protected]>
Cc Zou, Nanhai <[email protected]>
Cc Yang, Rong R <[email protected]>
Cc Mika Kuoppala <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Armin Reese <[email protected]>
Cc Tim Gore <[email protected]>
---
  drivers/gpu/drm/i915/i915_dma.c              |  3 +++
  drivers/gpu/drm/i915/i915_drv.c              |  1 +
  drivers/gpu/drm/i915/i915_drv.h              |  5 ++++-
  drivers/gpu/drm/i915/i915_gem_render_state.c | 13 +++++++++++++
  drivers/gpu/drm/i915/i915_reg.h              |  2 ++
  include/uapi/drm/i915_drm.h                  |  1 +
  6 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +3 -0
index 0eadeb6..5cd2ad4 100644
@@ -222,6 +222,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
  		if (!value)
  			return -ENODEV;
  		break;
+	case I915_PARAM_HAS_POOLED_EU:
+		value = HAS_POOLED_EU(dev);
+		break;
  	case I915_PARAM_HAS_GPU_RESET:
  		value = i915.enable_hangcheck && intel_has_gpu_reset(dev_priv);
  		break;
drivers/gpu/drm/i915/i915_drv.c +1 -0
index 5ae7960..33e0fd0 100644
@@ -357,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = {
  	.has_ddi = 1,
  	.has_fpga_dbg = 1,
  	.has_fbc = 1,
+	.has_pooled_eu = 1,
  	GEN_DEFAULT_PIPEOFFSETS,
  	IVB_CURSOR_OFFSETS,
  	BDW_COLORS,
drivers/gpu/drm/i915/i915_drv.h +4 -1
index 7a0b513..5b2a7a3 100644
@@ -750,7 +750,8 @@ struct intel_csr {
  	func(has_llc) sep \
  	func(has_snoop) sep \
  	func(has_ddi) sep \
-	func(has_fpga_dbg)
+	func(has_fpga_dbg) sep \
+	func(has_pooled_eu)
 
  #define DEFINE_FLAG(name) u8 name:1
  #define SEP_SEMICOLON ;
@@ -2736,6 +2737,8 @@ struct drm_i915_cmd_table {
  				 !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \
  				 !IS_BROXTON(dev))
 
+#define HAS_POOLED_EU(dev)	(INTEL_INFO(dev)->has_pooled_eu)
+
  #define INTEL_PCH_DEVICE_ID_MASK		0xff00
  #define INTEL_PCH_IBX_DEVICE_ID_TYPE		0x3b00
  #define INTEL_PCH_CPT_DEVICE_ID_TYPE		0x1c00
drivers/gpu/drm/i915/i915_gem_render_state.c +13 -0
index 7c93327..1284f99 100644
@@ -94,6 +94,7 @@ free_gem:
 
  static int render_state_setup(struct render_state *so)
  {
+	struct drm_device *dev = so->obj->base.dev;
  	const struct intel_renderstate_rodata *rodata = so->rodata;
  	unsigned int i = 0, reloc_index = 0;
  	struct page *page;
@@ -135,6 +136,18 @@ static int render_state_setup(struct render_state *so)
 
  	so->aux_batch_offset = i * sizeof(u32);
 
+	if (HAS_POOLED_EU(dev)) {
+		u32 pool_config = (INTEL_INFO(dev)->subslice_total == 3 ?
+				   0x00777000 : 0);
+
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
+		OUT_BATCH(d, i, pool_config);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+	}
+
  	OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
  	so->aux_batch_size = (i * sizeof(u32)) - so->aux_batch_offset;
 
drivers/gpu/drm/i915/i915_reg.h +2 -0
index 54ce0b1..dc67e0e 100644
@@ -442,6 +442,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
   */
  #define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
 
+#define GEN9_MEDIA_POOL_STATE     ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4)
+#define   GEN9_MEDIA_POOL_ENABLE  (1 << 31)
  #define GFX_OP_RASTER_RULES    ((0x3<<29)|(0x7<<24))
  #define GFX_OP_SCISSOR         ((0x3<<29)|(0x1c<<24)|(0x10<<19))
  #define   SC_UPDATE_SCISSOR       (0x1<<1)
include/uapi/drm/i915_drm.h +1 -1
index a5524cc..0b0acad 100644
@@ -357,6 +357,7 @@ typedef struct drm_i915_irq_wait {
  #define I915_PARAM_HAS_GPU_RESET	 35
  #define I915_PARAM_HAS_RESOURCE_STREAMER 36
  #define I915_PARAM_HAS_EXEC_SOFTPIN	 37
+#define I915_PARAM_HAS_POOLED_EU	 38
 
  typedef struct drm_i915_getparam {
  	__s32 param;
--

1.9.1

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

Re: [PATCH 1/2] drm/i915:bxt: Enable Pooled EU support

Quoted 26 lines · Arun Siluvery
Quoted 25 lines · Daniel Vetter
Quoted 23 lines · Arun Siluvery

This mode allows to assign EUs to pools which can process work collectively. The command to enable this mode should be issued as part of context initialization.

The pooled mode is global, once enabled it has to stay the same across all contexts until HW reset hence this is sent in auxiliary golden context batch. Thanks to Mika for the preliminary review and comments.

v2: explain why this is enabled in golden context, use feature flag while enabling the support (Chris)

v3: Pooled EU support announced in userspace before enabling in kernel, to simplify include all changes in the same patch.

User space clients need to know when the pooled EU feature is present and enabled on the hardware so that they can adapt work submissions. Create a new device info flag for this purpose, and create a new GETPARAM entry to allow user space to query its setting.

Set has_pooled_eu to true in the Broxton static device info - Broxton supports the feature in hardware and the driver will enable it by default.

Opensource users for this feature are mesa, libva and beignet.

Quoted 8 lines
Quoted 4 lines

Link to those patches would be great. At least I haven't seen anything fly by for mesa or libva, might have missed it though. Note that the patches must be fully reviewed an ready for merging by respective userspace upstream, before we can land the kernel side.

Initially beignet is trying to use it and they are adding support to it. I will share links once they send them to the list, reviewed and ready to be merged.

Then please don't say you have the userspace when it doesn't exist yet.

The other question: Will existing userspace fall over if we enable this in the kernel, or is it purely opt-in? Would be good to clarify in the commit message.
-Daniel

Quoted 140 lines

regards
Arun

Quoted 135 lines

-Daniel

Quoted 132 lines
Cc Winiarski, Michal <[email protected]>
Cc Zou, Nanhai <[email protected]>
Cc Yang, Rong R <[email protected]>
Cc Mika Kuoppala <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Armin Reese <[email protected]>
Cc Tim Gore <[email protected]>
---
 drivers/gpu/drm/i915/i915_dma.c              |  3 +++
 drivers/gpu/drm/i915/i915_drv.c              |  1 +
 drivers/gpu/drm/i915/i915_drv.h              |  5 ++++-
 drivers/gpu/drm/i915/i915_gem_render_state.c | 13 +++++++++++++
 drivers/gpu/drm/i915/i915_reg.h              |  2 ++
 include/uapi/drm/i915_drm.h                  |  1 +
 6 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +3 -0
index 0eadeb6..5cd2ad4 100644
@@ -222,6 +222,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
 		if (!value)
 			return -ENODEV;
 		break;
+	case I915_PARAM_HAS_POOLED_EU:
+		value = HAS_POOLED_EU(dev);
+		break;
 	case I915_PARAM_HAS_GPU_RESET:
 		value = i915.enable_hangcheck && intel_has_gpu_reset(dev_priv);
 		break;
drivers/gpu/drm/i915/i915_drv.c +1 -0
index 5ae7960..33e0fd0 100644
@@ -357,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = {
 	.has_ddi = 1,
 	.has_fpga_dbg = 1,
 	.has_fbc = 1,
+	.has_pooled_eu = 1,
 	GEN_DEFAULT_PIPEOFFSETS,
 	IVB_CURSOR_OFFSETS,
 	BDW_COLORS,
drivers/gpu/drm/i915/i915_drv.h +4 -1
index 7a0b513..5b2a7a3 100644
@@ -750,7 +750,8 @@ struct intel_csr {
 	func(has_llc) sep \
 	func(has_snoop) sep \
 	func(has_ddi) sep \
-	func(has_fpga_dbg)
+	func(has_fpga_dbg) sep \
+	func(has_pooled_eu)
 
 #define DEFINE_FLAG(name) u8 name:1
 #define SEP_SEMICOLON ;
@@ -2736,6 +2737,8 @@ struct drm_i915_cmd_table {
 				 !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \
 				 !IS_BROXTON(dev))
 
+#define HAS_POOLED_EU(dev)	(INTEL_INFO(dev)->has_pooled_eu)
+
 #define INTEL_PCH_DEVICE_ID_MASK		0xff00
 #define INTEL_PCH_IBX_DEVICE_ID_TYPE		0x3b00
 #define INTEL_PCH_CPT_DEVICE_ID_TYPE		0x1c00
drivers/gpu/drm/i915/i915_gem_render_state.c +13 -0
index 7c93327..1284f99 100644
@@ -94,6 +94,7 @@ free_gem:
 
 static int render_state_setup(struct render_state *so)
 {
+	struct drm_device *dev = so->obj->base.dev;
 	const struct intel_renderstate_rodata *rodata = so->rodata;
 	unsigned int i = 0, reloc_index = 0;
 	struct page *page;
@@ -135,6 +136,18 @@ static int render_state_setup(struct render_state *so)
 
 	so->aux_batch_offset = i * sizeof(u32);
 
+	if (HAS_POOLED_EU(dev)) {
+		u32 pool_config = (INTEL_INFO(dev)->subslice_total == 3 ?
+				   0x00777000 : 0);
+
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
+		OUT_BATCH(d, i, pool_config);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+	}
+
 	OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
 	so->aux_batch_size = (i * sizeof(u32)) - so->aux_batch_offset;
 
drivers/gpu/drm/i915/i915_reg.h +2 -0
index 54ce0b1..dc67e0e 100644
@@ -442,6 +442,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
  */
 #define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
 
+#define GEN9_MEDIA_POOL_STATE     ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4)
+#define   GEN9_MEDIA_POOL_ENABLE  (1 << 31)
 #define GFX_OP_RASTER_RULES    ((0x3<<29)|(0x7<<24))
 #define GFX_OP_SCISSOR         ((0x3<<29)|(0x1c<<24)|(0x10<<19))
 #define   SC_UPDATE_SCISSOR       (0x1<<1)
include/uapi/drm/i915_drm.h +1 -1
index a5524cc..0b0acad 100644
@@ -357,6 +357,7 @@ typedef struct drm_i915_irq_wait {
 #define I915_PARAM_HAS_GPU_RESET	 35
 #define I915_PARAM_HAS_RESOURCE_STREAMER 36
 #define I915_PARAM_HAS_EXEC_SOFTPIN	 37
+#define I915_PARAM_HAS_POOLED_EU	 38
 
 typedef struct drm_i915_getparam {
 	__s32 param;
--

1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

Re: [PATCH 1/2] drm/i915:bxt: Enable Pooled EU support

Quoted 32 lines · Daniel Vetter
Quoted 31 lines · Arun Siluvery
Quoted 29 lines · Daniel Vetter
Quoted 18 lines · Arun Siluvery

This mode allows to assign EUs to pools which can process work collectively. The command to enable this mode should be issued as part of context initialization.

The pooled mode is global, once enabled it has to stay the same across all contexts until HW reset hence this is sent in auxiliary golden context batch. Thanks to Mika for the preliminary review and comments.

v2: explain why this is enabled in golden context, use feature flag while enabling the support (Chris)

v3: Pooled EU support announced in userspace before enabling in kernel, to simplify include all changes in the same patch.

User space clients need to know when the pooled EU feature is present and enabled on the hardware so that they can adapt work submissions. Create a new device info flag for this purpose, and create a new GETPARAM entry to allow user space to query its setting.

Quoted 5 lines

Set has_pooled_eu to true in the Broxton static device info - Broxton supports the feature in hardware and the driver will enable it by default.

Opensource users for this feature are mesa, libva and beignet.

Link to those patches would be great. At least I haven't seen anything fly by for mesa or libva, might have missed it though. Note that the patches must be fully reviewed an ready for merging by respective userspace upstream, before we can land the kernel side.

Quoted 5 lines
Quoted 3 lines

Initially beignet is trying to use it and they are adding support to it. I will share links once they send them to the list, reviewed and ready to be merged.

Then please don't say you have the userspace when it doesn't exist yet.

Hi Daniel,

I never claimed userspace exists for this feature, only mentioned who are the users and clearly stated in cover letter that Beignet team is currently adding userspace and libdrm support, sorry if I gave that impression.

Quoted 4 lines

The other question: Will existing userspace fall over if we enable this in the kernel, or is it purely opt-in? Would be good to clarify in the commit message.

Yes it is an opt-in, userspace queries its availability and configures itself. We do have one WA affecting few revisions where it needs to be enabled (explained in cover letter). I will add a note to the commit msg as well.

regards
Arun

Quoted 142 lines

-Daniel

Quoted 140 lines

regards
Arun

Quoted 135 lines

-Daniel

Quoted 132 lines
Cc Winiarski, Michal <[email protected]>
Cc Zou, Nanhai <[email protected]>
Cc Yang, Rong R <[email protected]>
Cc Mika Kuoppala <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Armin Reese <[email protected]>
Cc Tim Gore <[email protected]>
---
  drivers/gpu/drm/i915/i915_dma.c              |  3 +++
  drivers/gpu/drm/i915/i915_drv.c              |  1 +
  drivers/gpu/drm/i915/i915_drv.h              |  5 ++++-
  drivers/gpu/drm/i915/i915_gem_render_state.c | 13 +++++++++++++
  drivers/gpu/drm/i915/i915_reg.h              |  2 ++
  include/uapi/drm/i915_drm.h                  |  1 +
  6 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +3 -0
index 0eadeb6..5cd2ad4 100644
@@ -222,6 +222,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
  		if (!value)
  			return -ENODEV;
  		break;
+	case I915_PARAM_HAS_POOLED_EU:
+		value = HAS_POOLED_EU(dev);
+		break;
  	case I915_PARAM_HAS_GPU_RESET:
  		value = i915.enable_hangcheck && intel_has_gpu_reset(dev_priv);
  		break;
drivers/gpu/drm/i915/i915_drv.c +1 -0
index 5ae7960..33e0fd0 100644
@@ -357,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = {
  	.has_ddi = 1,
  	.has_fpga_dbg = 1,
  	.has_fbc = 1,
+	.has_pooled_eu = 1,
  	GEN_DEFAULT_PIPEOFFSETS,
  	IVB_CURSOR_OFFSETS,
  	BDW_COLORS,
drivers/gpu/drm/i915/i915_drv.h +4 -1
index 7a0b513..5b2a7a3 100644
@@ -750,7 +750,8 @@ struct intel_csr {
  	func(has_llc) sep \
  	func(has_snoop) sep \
  	func(has_ddi) sep \
-	func(has_fpga_dbg)
+	func(has_fpga_dbg) sep \
+	func(has_pooled_eu)
 
  #define DEFINE_FLAG(name) u8 name:1
  #define SEP_SEMICOLON ;
@@ -2736,6 +2737,8 @@ struct drm_i915_cmd_table {
  				 !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \
  				 !IS_BROXTON(dev))
 
+#define HAS_POOLED_EU(dev)	(INTEL_INFO(dev)->has_pooled_eu)
+
  #define INTEL_PCH_DEVICE_ID_MASK		0xff00
  #define INTEL_PCH_IBX_DEVICE_ID_TYPE		0x3b00
  #define INTEL_PCH_CPT_DEVICE_ID_TYPE		0x1c00
drivers/gpu/drm/i915/i915_gem_render_state.c +13 -0
index 7c93327..1284f99 100644
@@ -94,6 +94,7 @@ free_gem:
 
  static int render_state_setup(struct render_state *so)
  {
+	struct drm_device *dev = so->obj->base.dev;
  	const struct intel_renderstate_rodata *rodata = so->rodata;
  	unsigned int i = 0, reloc_index = 0;
  	struct page *page;
@@ -135,6 +136,18 @@ static int render_state_setup(struct render_state *so)
 
  	so->aux_batch_offset = i * sizeof(u32);
 
+	if (HAS_POOLED_EU(dev)) {
+		u32 pool_config = (INTEL_INFO(dev)->subslice_total == 3 ?
+				   0x00777000 : 0);
+
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
+		OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
+		OUT_BATCH(d, i, pool_config);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+		OUT_BATCH(d, i, 0);
+	}
+
  	OUT_BATCH(d, i, MI_BATCH_BUFFER_END);
  	so->aux_batch_size = (i * sizeof(u32)) - so->aux_batch_offset;
 
drivers/gpu/drm/i915/i915_reg.h +2 -0
index 54ce0b1..dc67e0e 100644
@@ -442,6 +442,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
   */
  #define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
 
+#define GEN9_MEDIA_POOL_STATE     ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4)
+#define   GEN9_MEDIA_POOL_ENABLE  (1 << 31)
  #define GFX_OP_RASTER_RULES    ((0x3<<29)|(0x7<<24))
  #define GFX_OP_SCISSOR         ((0x3<<29)|(0x1c<<24)|(0x10<<19))
  #define   SC_UPDATE_SCISSOR       (0x1<<1)
include/uapi/drm/i915_drm.h +1 -1
index a5524cc..0b0acad 100644
@@ -357,6 +357,7 @@ typedef struct drm_i915_irq_wait {
  #define I915_PARAM_HAS_GPU_RESET	 35
  #define I915_PARAM_HAS_RESOURCE_STREAMER 36
  #define I915_PARAM_HAS_EXEC_SOFTPIN	 37
+#define I915_PARAM_HAS_POOLED_EU	 38
 
  typedef struct drm_i915_getparam {
  	__s32 param;
--

1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#6 lore raw

Re: [PATCH 1/2] drm/i915:bxt: Enable Pooled EU support

Quoted 37 lines · Arun Siluvery
Quoted 36 lines · Daniel Vetter
Quoted 34 lines · Arun Siluvery
Quoted 23 lines · Daniel Vetter
Quoted 22 lines · Arun Siluvery

This mode allows to assign EUs to pools which can process work collectively. The command to enable this mode should be issued as part of context initialization.

The pooled mode is global, once enabled it has to stay the same across all contexts until HW reset hence this is sent in auxiliary golden context batch. Thanks to Mika for the preliminary review and comments.

v2: explain why this is enabled in golden context, use feature flag while enabling the support (Chris)

v3: Pooled EU support announced in userspace before enabling in kernel, to simplify include all changes in the same patch.

User space clients need to know when the pooled EU feature is present and enabled on the hardware so that they can adapt work submissions. Create a new device info flag for this purpose, and create a new GETPARAM entry to allow user space to query its setting.

Set has_pooled_eu to true in the Broxton static device info - Broxton supports the feature in hardware and the driver will enable it by default.

Quoted 6 lines
Quoted 1 line

Opensource users for this feature are mesa, libva and beignet.

Link to those patches would be great. At least I haven't seen anything fly by for mesa or libva, might have missed it though. Note that the patches must be fully reviewed an ready for merging by respective userspace upstream, before we can land the kernel side.

Initially beignet is trying to use it and they are adding support to it. I will share links once they send them to the list, reviewed and ready to be merged.

Quoted 7 lines
Quoted 1 line

Then please don't say you have the userspace when it doesn't exist yet.

Hi Daniel,

I never claimed userspace exists for this feature, only mentioned who are the users and clearly stated in cover letter that Beignet team is currently adding userspace and libdrm support, sorry if I gave that impression.

Sorry for missing that, I just spotted the one line in the patch here and assumed it's all there already.

Quoted 7 lines
Quoted 3 lines

The other question: Will existing userspace fall over if we enable this in the kernel, or is it purely opt-in? Would be good to clarify in the commit message.

Yes it is an opt-in, userspace queries its availability and configures itself. We do have one WA affecting few revisions where it needs to be enabled (explained in cover letter). I will add a note to the commit msg as well.

For the places where we must enable it, might be good to just merge that without the userspace flag. That way we don't block the wa on the userspace/ABI question. Then just add the patch with the getparam later on when we have the userspace reviewed.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw

PATCH 2/2 drm/i915/bxt: Add WaEnablePooledEuFor2x6

In reply to Arun Siluvery

Pooled EU is enabled by default for BXT but 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. This doesn't affect if the device has all 3 subslices enabled.

Userspace need to know min no. of eus in a pool as it varies based on which subslice is disabled, this is exported using a new private getparam ioctl as there is no opensource user available for this feature yet.

Cc Winiarski, Michal <[email protected]>
Cc Zou, Nanhai <[email protected]>
Cc Yang, Rong R <[email protected]>
Cc Tim Gore <[email protected]>
---
 drivers/gpu/drm/i915/i915_debugfs.c          |  5 +++++
 drivers/gpu/drm/i915/i915_dma.c              | 33 ++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_drv.c              |  2 +-
 drivers/gpu/drm/i915/i915_drv.h              |  1 +
 drivers/gpu/drm/i915/i915_gem_render_state.c | 17 +++++++++++---
 include/uapi/drm/i915_drm.h                  |  1 +
 6 files changed, 55 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +5 -0
index 5e5b5cc..a61a4f9 100644
@@ -5274,6 +5274,11 @@ static int i915_sseu_status(struct seq_file *m, void *unused)
 		   INTEL_INFO(dev)->eu_total);
 	seq_printf(m, "  Available EU Per Subslice: %u\n",
 		   INTEL_INFO(dev)->eu_per_subslice);
+	seq_printf(m, "  Has Pooled EU: %s\n",
+		   yesno(HAS_POOLED_EU(dev)));
+	if (HAS_POOLED_EU(dev))
+		seq_printf(m, "  Min EU in pool: %u\n",
+			   INTEL_INFO(dev)->min_eu_in_pool);
 	seq_printf(m, "  Has Slice Power Gating: %s\n",
 		   yesno(INTEL_INFO(dev)->has_slice_pg));
 	seq_printf(m, "  Has Subslice Power Gating: %s\n",
drivers/gpu/drm/i915/i915_dma.c +33 -0
index 5cd2ad4..eab53fd 100644
@@ -225,6 +225,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
 	case I915_PARAM_HAS_POOLED_EU:
 		value = HAS_POOLED_EU(dev);
 		break;
+	case I915_PARAM_MIN_EU_IN_POOL:
+		value = INTEL_INFO(dev)->min_eu_in_pool;
+		break;
 	case I915_PARAM_HAS_GPU_RESET:
 		value = i915.enable_hangcheck && intel_has_gpu_reset(dev_priv);
 		break;
@@ -770,6 +773,32 @@ static void gen9_sseu_info_init(struct drm_device *dev)
 			       (info->slice_total > 1));
 	info->has_subslice_pg = (IS_BROXTON(dev) && (info->subslice_total > 1));
 	info->has_eu_pg = (info->eu_per_subslice > 2);
+
+	if (IS_BROXTON(dev)) {
+#define IS_SS_DISABLED(_ss_disable, ss)    (_ss_disable & (0x1 << ss))
+		/*
+		 * There is a HW issue in 2x6 fused down parts that requires
+		 * Pooled EU to be enabled as a WA. The pool configuration
+		 * changes depending upon which subslice is fused down. This
+		 * doesn't affect if the device has all 3 subslices enabled.
+		 */
+		/* WaEnablePooledEuFor2x6:bxt */
+		info->has_pooled_eu = ((info->subslice_total == 3) ||
+				       (info->subslice_total == 2 &&
+					INTEL_REVID(dev) < BXT_REVID_C0));
+
+		info->min_eu_in_pool = 0;
+		if (info->has_pooled_eu) {
+			if (IS_SS_DISABLED(ss_disable, 0) ||
+			    IS_SS_DISABLED(ss_disable, 2))
+				info->min_eu_in_pool = 3;
+			else if (IS_SS_DISABLED(ss_disable, 1))
+				info->min_eu_in_pool = 6;
+			else
+				info->min_eu_in_pool = 9;
+		}
+#undef IS_SS_DISABLED
+	}
 }
 
 static void broadwell_sseu_info_init(struct drm_device *dev)
@@ -966,6 +995,10 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
 	DRM_DEBUG_DRIVER("subslice per slice: %u\n", info->subslice_per_slice);
 	DRM_DEBUG_DRIVER("EU total: %u\n", info->eu_total);
 	DRM_DEBUG_DRIVER("EU per subslice: %u\n", info->eu_per_subslice);
+	DRM_DEBUG_DRIVER("Has Pooled EU: %s\n",
+			 HAS_POOLED_EU(dev) ? "y" : "n");
+	if (HAS_POOLED_EU(dev))
+		DRM_DEBUG_DRIVER("Min EU in pool: %u\n", info->min_eu_in_pool);
 	DRM_DEBUG_DRIVER("has slice power gating: %s\n",
 			 info->has_slice_pg ? "y" : "n");
 	DRM_DEBUG_DRIVER("has subslice power gating: %s\n",
drivers/gpu/drm/i915/i915_drv.c +1 -1
index 33e0fd0..4d6052d 100644
@@ -357,7 +357,7 @@ static const struct intel_device_info intel_broxton_info = {
 	.has_ddi = 1,
 	.has_fpga_dbg = 1,
 	.has_fbc = 1,
-	.has_pooled_eu = 1,
+	.has_pooled_eu = 0,
 	GEN_DEFAULT_PIPEOFFSETS,
 	IVB_CURSOR_OFFSETS,
 	BDW_COLORS,
drivers/gpu/drm/i915/i915_drv.h +1 -0
index 5b2a7a3..d87f43c 100644
@@ -777,6 +777,7 @@ struct intel_device_info {
 	u8 subslice_per_slice;
 	u8 eu_total;
 	u8 eu_per_subslice;
+	u8 min_eu_in_pool;
 	/* For each slice, which subslice(s) has(have) 7 EUs (bitfield)? */
 	u8 subslice_7eu[3];
 	u8 has_slice_pg:1;
drivers/gpu/drm/i915/i915_gem_render_state.c +14 -3
index 1284f99..33bd8ce 100644
@@ -137,12 +137,23 @@ static int render_state_setup(struct render_state *so)
 	so->aux_batch_offset = i * sizeof(u32);
 
 	if (HAS_POOLED_EU(dev)) {
-		u32 pool_config = (INTEL_INFO(dev)->subslice_total == 3 ?
-				   0x00777000 : 0);
+		/*
+		 * We always program 3x6 pool config but depending upon which
+		 * subslice is disabled HW drops down to appropriate config
+		 * shown below.
+		 *
+		 * SNo  subslices config                eu pool configuration
+		 * -----------------------------------------------------------
+		 * 1    3 subslices enabled (3x6)  -    0x00777000  (9+9)
+		 * 2    ss0 disabled (2x6)         -    0x00777000  (3+9)
+		 * 3    ss1 disabled (2x6)         -    0x00770000  (6+6)
+		 * 4    ss2 disabled (2x6)         -    0x00007000  (9+3)
+		 */
+		u32 eu_pool_config = 0x00777000;
 
 		OUT_BATCH(d, i, GEN9_MEDIA_POOL_STATE);
 		OUT_BATCH(d, i, GEN9_MEDIA_POOL_ENABLE);
-		OUT_BATCH(d, i, pool_config);
+		OUT_BATCH(d, i, eu_pool_config);
 		OUT_BATCH(d, i, 0);
 		OUT_BATCH(d, i, 0);
 		OUT_BATCH(d, i, 0);
include/uapi/drm/i915_drm.h +1 -0
index 0b0acad..7efba36 100644
@@ -358,6 +358,7 @@ typedef struct drm_i915_irq_wait {
 #define I915_PARAM_HAS_RESOURCE_STREAMER 36
 #define I915_PARAM_HAS_EXEC_SOFTPIN	 37
 #define I915_PARAM_HAS_POOLED_EU	 38
+#define I915_PARAM_MIN_EU_IN_POOL	 39
 
 typedef struct drm_i915_getparam {
 	__s32 param;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx