drm/i915: expose RCS topology to userspace
Subsystems (3)
v11 cover drm/i915: expose RCS topology to userspace
Hi all,
Just another update with only one change to the last patch (fixing a comment).
Cheers,
Lionel Landwerlin (6):
drm/i915: store all subslice masks
drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry
drm/i915: add rcs topology to error state
drm/i915: add query uAPI
drm/i915: expose rcs topology through query uAPI
drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_debugfs.c | 63 +++++---- drivers/gpu/drm/i915/i915_drv.c | 3 +- drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/i915_gpu_error.c | 1 + drivers/gpu/drm/i915/i915_query.c | 177 ++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_device_info.c | 226 ++++++++++++++++++++++++------- drivers/gpu/drm/i915/intel_device_info.h | 49 ++++++- drivers/gpu/drm/i915/intel_lrc.c | 2 +- drivers/gpu/drm/i915/intel_ringbuffer.h | 2 +- include/uapi/drm/i915_drm.h | 112 +++++++++++++++ 11 files changed, 560 insertions(+), 79 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915_query.c
--
2.15.1
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v11 1/6 drm/i915: store all subslice masks
Up to now, subslice mask was assumed to be uniform across slices. But starting with Cannonlake, slices can be asymmetric (for example slice0 has different number of subslices as slice1+). This change stores all subslices masks for all slices rather than having a single mask that applies to all slices.
v2: Rework how we store total numbers in sseu_dev_info (Tvrtko)
Fix CHV eu masks, was reading disabled as enabled (Tvrtko) Readability changes (Tvrtko)
Add EU index helper (Tvrtko)
v3: Turn ALIGN(v, 8) / 8 into DIV_ROUND_UP(v, BITS_PER_BYTE) (Tvrtko)
Reuse sseu_eu_idx() for setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko)
v4: Change eu_mask helper into sseu_set_eus() (Tvrtko)
--- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 201 +++++++++++++++++++++++-------- drivers/gpu/drm/i915/intel_device_info.h | 47 +++++++- drivers/gpu/drm/i915/intel_lrc.c | 2 +- drivers/gpu/drm/i915/intel_ringbuffer.h | 2 +- 6 files changed, 216 insertions(+), 63 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +15 -10
@@ -4289,7 +4289,7 @@ static void cherryview_sseu_device_status(struct drm_i915_private *dev_priv,continue ; sseu->slice_mask =BIT (0 ); - sseu->subslice_mask |=BIT (ss); + sseu->subslice_mask[0 ] |=BIT (ss); eu_cnt = ((sig1[ss] &CHV_EU08_PG_ENABLE ) ?0 :2 ) + ((sig1[ss] &CHV_EU19_PG_ENABLE ) ?0 :2 ) + ((sig1[ss] & CHV_EU210_PG_ENABLE) ? 0 : 2) +
@@ -4336,7 +4336,7 @@ static void gen10_sseu_device_status(struct drm_i915_private *dev_priv,continue ; sseu->slice_mask |=BIT (s); - sseu->subslice_mask = info->sseu.subslice_mask; + sseu->subslice_mask[s] = info->sseu.subslice_mask[s];for (ss =0 ; ss < ss_max; ss++) {unsigned int eu_cnt;
@@ -4391,8 +4391,8 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv, sseu->slice_mask |=BIT (s);if (IS_GEN9_BC (dev_priv)) - sseu->subslice_mask = -INTEL_INFO (dev_priv)->sseu.subslice_mask; + sseu->subslice_mask[s] = +INTEL_INFO (dev_priv)->sseu.subslice_mask[s];for (ss =0 ; ss < ss_max; ss++) {unsigned int eu_cnt;
@@ -4402,7 +4402,7 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv,/* skip disabled subslice */ continue ; - sseu->subslice_mask |=BIT (ss); + sseu->subslice_mask[s] |=BIT (ss); } eu_cnt = 2 * hweight32(eu_reg[2*s + ss/2] &
@@ -4424,9 +4424,12 @@ static void broadwell_sseu_device_status(struct drm_i915_private *dev_priv, sseu->slice_mask = slice_info &GEN8_LSLICESTAT_MASK ;if (sseu->slice_mask) { - sseu->subslice_mask =INTEL_INFO (dev_priv)->sseu.subslice_mask; sseu->eu_per_subslice =INTEL_INFO (dev_priv)->sseu.eu_per_subslice; +for (s =0 ; s <fls (sseu->slice_mask); s++) { + sseu->subslice_mask[s] = +INTEL_INFO (dev_priv)->sseu.subslice_mask[s]; + } sseu->eu_total = sseu->eu_per_subslice *sseu_subslice_total (sseu);
@@ -4445,6 +4448,7 @@ static void i915_print_sseu_info(struct seq_file *m, bool is_available_info, {struct drm_i915_private *dev_priv =node_to_i915 (m->private);const char *type = is_available_info ?"Available" :"Enabled" ; +int s;seq_printf (m," %s Slice Mask: %04x\n" , type, sseu->slice_mask);
@@ -4452,10 +4456,11 @@ static void i915_print_sseu_info(struct seq_file *m, bool is_available_info, hweight8(sseu->slice_mask));seq_printf (m," %s Subslice Total: %u\n" , type,sseu_subslice_total (sseu)); -seq_printf (m," %s Subslice Mask: %04x\n" , type, - sseu->subslice_mask); -seq_printf (m," %s Subslice Per Slice: %u\n" , type, -hweight8 (sseu->subslice_mask)); +for (s =0 ; s <fls (sseu->slice_mask); s++) { +seq_printf (m," %s Slice%i %u subslices, mask=%04x\n" , type, + s,hweight8 (sseu->subslice_mask[s]), + sseu->subslice_mask[s]); + }seq_printf (m," %s EU Total: %u\n" , type, sseu->eu_total); seq_printf(m, " %s EU Per Subslice: %u\n", type,
drivers/gpu/drm/i915/i915_drv.c +1 -1
@@ -418,7 +418,7 @@ static int i915_getparam(struct drm_device *dev, void *data,return -ENODEV ;break ;case I915_PARAM_SUBSLICE_MASK : - value =INTEL_INFO (dev_priv)->sseu.subslice_mask; + value =INTEL_INFO (dev_priv)->sseu.subslice_mask[0 ];if (!value)return -ENODEV ;break ;
drivers/gpu/drm/i915/intel_device_info.c +154 -47
323 lines not on this page · raw message
drivers/gpu/drm/i915/intel_device_info.h +44 -3
67 lines not on this page · raw message
drivers/gpu/drm/i915/intel_lrc.c +1 -1
@@ -2098,7 +2098,7 @@ make_rpcs(struct drm_i915_private *dev_priv)if (INTEL_INFO (dev_priv)->sseu.has_subslice_pg) { rpcs |=GEN8_RPCS_SS_CNT_ENABLE ; - rpcs |=hweight8 (INTEL_INFO (dev_priv)->sseu.subslice_mask) << + rpcs |=hweight8 (INTEL_INFO (dev_priv)->sseu.subslice_mask[0 ]) <<GEN8_RPCS_SS_CNT_SHIFT ; rpcs |=GEN8_RPCS_ENABLE ; }
drivers/gpu/drm/i915/intel_ringbuffer.h +1 -1
@@ -90,7 +90,7 @@ hangcheck_action_to_str(const enum intel_engine_hangcheck_action a)#define instdone_subslice_mask (dev_priv__) \ (INTEL_GEN(dev_priv__) == 7 ? \ - 1 : INTEL_INFO(dev_priv__)->sseu.subslice_mask) + 1 : INTEL_INFO(dev_priv__)->sseu.subslice_mask[0])#define for_each_instdone_slice_subslice (dev_priv__, slice__, subslice__) \ for ((slice__) = 0, (subslice__) = 0; \
Signature · 6 lines
2.15.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v11 2/6 drm/i915/debugfs: reuse max slice/subslices already stored in sseu
In reply to Lionel LandwerlinNow that we have that information in topology fields, let's just reused it.
v2: Style tweaks (Tvrtko)
--- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +11 -16
@@ -4304,11 +4304,11 @@ static void gen10_sseu_device_status(struct drm_i915_private *dev_priv, struct sseu_dev_info *sseu) {const struct intel_device_info *info =INTEL_INFO (dev_priv); -int s_max =6 , ss_max =4 ;int s, ss; -u32 s_reg[s_max], eu_reg[2 * s_max], eu_mask[2 ]; +u32 s_reg[info->sseu.max_slices]; +u32 eu_reg[2 * info->sseu.max_subslices], eu_mask[2 ]; -for (s =0 ; s < s_max; s++) { +for (s =0 ; s < info->sseu.max_slices; s++) {/* * FIXME: Valid SS Mask respects the spec and read * only valid bits for those registers, excluding reserverd
@@ -4330,7 +4330,7 @@ static void gen10_sseu_device_status(struct drm_i915_private *dev_priv,GEN9_PGCTL_SSB_EU210_ACK |GEN9_PGCTL_SSB_EU311_ACK ; -for (s =0 ; s < s_max; s++) { +for (s =0 ; s < info->sseu.max_slices; s++) {if ((s_reg[s] &GEN9_PGCTL_SLICE_ACK ) ==0 )/* skip disabled slice */ continue ;
@@ -4338,7 +4338,7 @@ static void gen10_sseu_device_status(struct drm_i915_private *dev_priv, sseu->slice_mask |=BIT (s); sseu->subslice_mask[s] = info->sseu.subslice_mask[s]; -for (ss =0 ; ss < ss_max; ss++) { +for (ss =0 ; ss < info->sseu.max_subslices; ss++) {unsigned int eu_cnt;if (!(s_reg[s] & (GEN9_PGCTL_SS_ACK (ss))))
@@ -4358,17 +4358,12 @@ static void gen10_sseu_device_status(struct drm_i915_private *dev_priv,static void gen9_sseu_device_status (struct drm_i915_private *dev_priv,struct sseu_dev_info *sseu) { -int s_max =3 , ss_max =4 ; +const struct intel_device_info *info =INTEL_INFO (dev_priv);int s, ss; -u32 s_reg[s_max], eu_reg[2 *s_max], eu_mask[2 ]; - -/* BXT has a single slice and at most 3 subslices. */ -if (IS_GEN9_LP (dev_priv)) { - s_max =1 ; - ss_max =3 ; - } +u32 s_reg[info->sseu.max_slices]; +u32 eu_reg[2 * info->sseu.max_subslices], eu_mask[2 ]; -for (s =0 ; s < s_max; s++) { +for (s =0 ; s < info->sseu.max_slices; s++) { s_reg[s] =I915_READ (GEN9_SLICE_PGCTL_ACK (s)); eu_reg[2 *s] =I915_READ (GEN9_SS01_EU_PGCTL_ACK (s)); eu_reg[2 *s +1 ] =I915_READ (GEN9_SS23_EU_PGCTL_ACK (s));
@@ -4383,7 +4378,7 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv,GEN9_PGCTL_SSB_EU210_ACK |GEN9_PGCTL_SSB_EU311_ACK ; -for (s =0 ; s < s_max; s++) { +for (s =0 ; s < info->sseu.max_slices; s++) {if ((s_reg[s] &GEN9_PGCTL_SLICE_ACK ) ==0 )/* skip disabled slice */ continue ;
@@ -4394,7 +4389,7 @@ static void gen9_sseu_device_status(struct drm_i915_private *dev_priv, sseu->subslice_mask[s] =INTEL_INFO (dev_priv)->sseu.subslice_mask[s]; -for (ss =0 ; ss < ss_max; ss++) { +for (ss =0 ; ss < info->sseu.max_subslices; ss++) {unsigned int eu_cnt;if (IS_GEN9_LP (dev_priv)) {
Signature · 6 lines
2.15.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v11 3/6 drm/i915/debugfs: add rcs topology entry
In reply to Lionel LandwerlinWhile the end goal is to make this information available to userspace through a new ioctl, there is no reason we can't display it in a human readable fashion through debugfs.
slice0: 3 subslice(s) (0x7):
subslice0: 8 EUs (0xff) subslice1: 8 EUs (0xff) subslice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) slice1: 3 subslice(s) (0x7): subslice0: 8 EUs (0xff) subslice1: 8 EUs (0xff) subslice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) slice2: 3 subslice(s) (0x7): subslice0: 8 EUs (0xff) subslice1: 8 EUs (0xff) subslice2: 8 EUs (0xff) subslice3: 0 EUs (0x0)
v2: Reformat debugfs printing (Tvrtko)
Use the new EU mask helper (Tvrtko)
v3: Move printing code to intel_device_info.c to be shared with error
state (Michal)
--- drivers/gpu/drm/i915/i915_debugfs.c | 11 +++++++++++ drivers/gpu/drm/i915/intel_device_info.c | 25 +++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_device_info.h | 2 ++ 3 files changed, 38 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +11 -0
@@ -3166,6 +3166,16 @@ static int i915_engine_info(struct seq_file *m, void *unused)return 0 ; } +static int i915_rcs_topology (struct seq_file *m,void *unused) +{ +struct drm_i915_private *dev_priv =node_to_i915 (m->private); +struct drm_printer p =drm_seq_file_printer (m); + +intel_device_info_dump_topology (&INTEL_INFO (dev_priv)->sseu, &p); + +return 0 ; +} +static int i915_shrinker_info (struct seq_file *m,void *unused) {struct drm_i915_private *i915 =node_to_i915 (m->private);
@@ -4696,6 +4706,7 @@ static const struct drm_info_list i915_debugfs_list[] = { {"i915_dmc_info", i915_dmc_info, 0}, {"i915_display_info", i915_display_info, 0}, {"i915_engine_info", i915_engine_info, 0}, + {"i915_rcs_topology", i915_rcs_topology, 0}, {"i915_shrinker_info", i915_shrinker_info, 0}, {"i915_shared_dplls_info", i915_shared_dplls_info, 0}, {"i915_dp_mst_info", i915_dp_mst_info, 0},
drivers/gpu/drm/i915/intel_device_info.c +25 -0
@@ -124,6 +124,31 @@ void intel_device_info_dump(const struct intel_device_info *info,intel_device_info_dump_flags (info, p); } +void intel_device_info_dump_topology (const struct sseu_dev_info *sseu, +struct drm_printer *p) +{ +int s, ss; + +if (sseu->max_slices ==0 ) { +drm_printf (p,"Unavailable\n" ); +return ; + } + +for (s =0 ; s < sseu->max_slices; s++) { +drm_printf (p,"slice%d: %u subslice(s) (0x%hhx):\n" , + s,hweight8 (sseu->subslice_mask[s]), + sseu->subslice_mask[s]); + +for (ss =0 ; ss < sseu->max_subslices; ss++) { +u8 enabled_eus =sseu_get_eus (sseu, s, ss); + +drm_printf (p,"\tsubslice%d: %u EUs (0x%hhx)\n" , + ss,hweight8 (enabled_eus), enabled_eus); + } + } +} + +static u16 compute_eu_total (const struct sseu_dev_info *sseu) {u16 i, total =0 ;
drivers/gpu/drm/i915/intel_device_info.h +2 -0
@@ -222,5 +222,7 @@ void intel_device_info_dump_flags(const struct intel_device_info *info, struct drm_printer *p);void intel_device_info_dump_runtime (const struct intel_device_info *info,struct drm_printer *p); +void intel_device_info_dump_topology (const struct sseu_dev_info *sseu, +struct drm_printer *p);#endif
Signature · 6 lines
2.15.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v11 4/6 drm/i915: add rcs topology to error state
In reply to Lionel LandwerlinThis might be useful information for developers looking at an error state.
v2: Place topology towards the end of the error state (Chris)
v3: Reuse common printing code (Michal)
v4: Make this a one-liner (Chris)
--- drivers/gpu/drm/i915/i915_gpu_error.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_gpu_error.c +1 -0
@@ -578,6 +578,7 @@ static void err_print_capabilities(struct drm_i915_error_state_buf *m,struct drm_printer p =i915_error_printer (m);intel_device_info_dump_flags (info, &p); +intel_device_info_dump_topology (&info->sseu, &p); } static void err_print_params(struct drm_i915_error_state_buf *m,
Signature · 6 lines
2.15.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v11 5/6 drm/i915: add query uAPI
In reply to Lionel LandwerlinThere are a number of information that are readable from hardware registers and that we would like to make accessible to userspace. One particular example is the topology of the execution units (how are execution units grouped in subslices and slices and also which ones have been fused off for die recovery).
At the moment the GET_PARAM ioctl covers some basic needs, but generally is only able to return a single value for each defined parameter. This is a bit problematic with topology descriptions which are array/maps of available units.
This change introduces a new ioctl that can deal with requests to fill structures of potentially variable lengths. The user is expected fill a query with length fields set at 0 on the first call, the kernel then sets the length fields to the their expected values. A second call to the kernel with length fields at their expected values will trigger a copy of the data to the pointed memory locations.
The scope of this uAPI is only to provide information to userspace, not to allow configuration of the device.
v2: Simplify dispatcher code iteration (Tvrtko)
Tweak uapi drm_i915_query_item structure (Tvrtko)
v3: Rename pad fields into flags (Chris)
Return error on flags field != 0 (Chris)
Only copy length back to userspace in drm_i915_query_item (Chris)
v4: Use array of functions instead of switch (Chris)
v5: More comments in uapi (Tvrtko)
Return query item errors in length field (All)
v6: Tweak uapi comments style to match the coding style (Lionel)
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 3 ++ drivers/gpu/drm/i915/i915_query.c | 67 +++++++++++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h | 41 ++++++++++++++++++++++++ 5 files changed, 113 insertions(+) create mode 100644 drivers/gpu/drm/i915/i915_query.c
drivers/gpu/drm/i915/Makefile +1 -0
@@ -69,6 +69,7 @@ i915-y += i915_cmd_parser.o \ i915_gem_timeline.o \ i915_gem_userptr.o \ i915_gemfs.o \ + i915_query.o \ i915_trace_points.o \ i915_vma.o \ intel_breadcrumbs.o \
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -2830,6 +2830,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_PERF_OPEN , i915_perf_open_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_PERF_ADD_CONFIG , i915_perf_add_config_ioctl,DRM_UNLOCKED |DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_PERF_REMOVE_CONFIG , i915_perf_remove_config_ioctl,DRM_UNLOCKED |DRM_RENDER_ALLOW ), + DRM_IOCTL_DEF_DRV(I915_QUERY, i915_query_ioctl, DRM_UNLOCKED|DRM_RENDER_ALLOW), }; static struct drm_driver driver = {
drivers/gpu/drm/i915/i915_drv.h +3 -0
@@ -3627,6 +3627,9 @@ extern void i915_perf_fini(struct drm_i915_private *dev_priv);extern void i915_perf_register (struct drm_i915_private *dev_priv);extern void i915_perf_unregister (struct drm_i915_private *dev_priv); +/* i915_query.c */ +int i915_query_ioctl (struct drm_device *dev,void *data,struct drm_file *file); +/* i915_suspend.c */ extern int i915_save_state (struct drm_i915_private *dev_priv);extern int i915_restore_state (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/i915_query.c new file +67 -0
67 lines not on this page · raw message
include/uapi/drm/i915_drm.h +41 -0
59 lines not on this page · raw message
Signature · 6 lines
2.15.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 5/6] drm/i915: add query uAPI
Hi all,
I've been trying to expose some information to userspace about the fused parts of the GPU. This is the 4th attempt at getting this upstream, here are the previous ones :
https://patchwork.freedesktop.org/patch/185959/
https://patchwork.freedesktop.org/series/33436/
https://patchwork.freedesktop.org/series/33950/
This last iteration was based upon some direction by Daniel : https://lists.freedesktop.org/archives/dri-devel/2017-December/160162.html
There was, I think, a fair point about having this working in environments where sysfs (mechanism used in the 3rd iteration) is not available (containers).
Following some discussion on IRC, it seems Joonas would like this rewritten in a such way that we essentially drop the generic mechanism introduced in this patch, and instead go for an additional ioctl() on the drm fd just for querying the state of a fused part of slice/subslice/eus. The proposal is to have a single struct like :
struct drm_i915_topology {
/* All field are in/out */
int slice;
int subslice;
int eu;
int enabled;
};
You would let the slice field to -1 and then the kernel would fill it with the max slice value. Same for subslice (with a valid slice value) and eu.
When querying with slice = 0, and all other fields to -1, the kernel would fill the enabled value with 0 or 1.
Essentially that would mean that an application wanting to query the state of all of the EUs would have to go through them one by one (which would be about ~100 ioctl() on SKL GT4 for example).
Apart from the fact that we'll probably end up adding another ioctl() for engine discovery, I don't have any problem with what Joonas is proposing. It's just a bit annoying this comes up on the 4th rewrite.
I really wouldn't like to rewrite this one more time and get turned down because this isn't to the taste of one of the reviewer. So my question is : Is everybody happy with what Joonas is proposing?
Anybody in favor of having a generic mechanism?
Thanks a lot,
-
Lionel
Quoted 213 lines · Lionel Landwerlin
There are a number of information that are readable from hardware registers and that we would like to make accessible to userspace. One particular example is the topology of the execution units (how are execution units grouped in subslices and slices and also which ones have been fused off for die recovery).
At the moment the
GET_PARAMioctl covers some basic needs, but generally is only able to return a single value for each defined parameter. This is a bit problematic with topology descriptions which are array/maps of available units.This change introduces a new ioctl that can deal with requests to fill structures of potentially variable lengths. The user is expected fill a query with length fields set at 0 on the first call, the kernel then sets the length fields to the their expected values. A second call to the kernel with length fields at their expected values will trigger a copy of the data to the pointed memory locations.
The scope of this uAPI is only to provide information to userspace, not to allow configuration of the device.
v2: Simplify dispatcher code iteration (Tvrtko)
Tweak uapidrm_i915_query_itemstructure (Tvrtko)v3: Rename pad fields into flags (Chris)
Return error on flags field != 0 (Chris)
Only copy length back to userspace indrm_i915_query_item(Chris)v4: Use array of functions instead of switch (Chris)
v5: More comments in uapi (Tvrtko)
Return query item errors in length field (All)v6: Tweak uapi comments style to match the coding style (Lionel)
Signed-off-by Lionel Landwerlin <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 3 ++ drivers/gpu/drm/i915/i915_query.c | 67 +++++++++++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h | 41 ++++++++++++++++++++++++ 5 files changed, 113 insertions(+)create mode 100644
drivers/gpu/drm/i915/i915_query.cdrivers/gpu/drm/i915/Makefile +1
-0@@ -69,6 +69,7 @@ i915-y += i915_cmd_parser.o \ i915_gem_timeline.o \ i915_gem_userptr.o \ i915_gemfs.o \ + i915_query.o \ i915_trace_points.o \ i915_vma.o \ intel_breadcrumbs.o \drivers/gpu/drm/i915/i915_drv.c +1
-0@@ -2830,6 +2830,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_PERF_OPEN , i915_perf_open_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_PERF_ADD_CONFIG , i915_perf_add_config_ioctl,DRM_UNLOCKED |DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_PERF_REMOVE_CONFIG , i915_perf_remove_config_ioctl,DRM_UNLOCKED |DRM_RENDER_ALLOW ), + DRM_IOCTL_DEF_DRV(I915_QUERY, i915_query_ioctl, DRM_UNLOCKED|DRM_RENDER_ALLOW), }; static struct drm_driver driver = {drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -3627,6 +3627,9 @@ extern void i915_perf_fini(struct drm_i915_private *dev_priv);extern void i915_perf_register (struct drm_i915_private *dev_priv);extern void i915_perf_unregister (struct drm_i915_private *dev_priv); +/* i915_query.c */ +int i915_query_ioctl (struct drm_device *dev,void *data,struct drm_file *file); +/* i915_suspend.c */ extern int i915_save_state (struct drm_i915_private *dev_priv);extern int i915_restore_state (struct drm_i915_private *dev_priv);drivers/gpu/drm/i915/i915_query.c new file +67
-0@@ -0,0 +1,67 @@ +/* +* Copyright © 2017 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +* IN THE SOFTWARE. +* +*/ + +#include "i915_drv.h" +#include <uapi/drm/i915_drm.h> + +static int (*const i915_query_funcs[])(struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) = { +}; + +int i915_query_ioctl (struct drm_device *dev,void *data,struct drm_file *file) +{ +struct drm_i915_private *dev_priv =to_i915 (dev); +struct drm_i915_query *args = data; +struct drm_i915_query_item __user *user_item_ptr = +u64_to_user_ptr (args->items_ptr); +u32 i; + +if (args->flags !=0 ) +return -EINVAL ; + +for (i =0 ; i < args->num_items; i++, user_item_ptr++) { +struct drm_i915_query_item item; +u64 func_idx; +int ret; + +if (copy_from_user (&item, user_item_ptr,sizeof (item))) +return -EFAULT ; + +if (item.query_id ==0 ) +return -EINVAL ; + + func_idx = item.query_id -1 ; + +if (func_idx >=ARRAY_SIZE (i915_query_funcs)) +return -EINVAL ; + + ret = i915_query_funcs[func_idx](dev_priv, &item); + +/* Only write the length back to userspace if they differ. */ +if (ret != item.length &&put_user (ret, &user_item_ptr->length)) +return -EFAULT ; + } + +return 0 ; +}include/uapi/drm/i915_drm.h +34
-0@@ -318,6 +318,7 @@ typedef struct _drm_i915_sarea {#define DRM_I915_PERF_OPEN 0x36#define DRM_I915_PERF_ADD_CONFIG 0x37#define DRM_I915_PERF_REMOVE_CONFIG 0x38 +#define DRM_I915_QUERY 0x39#define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t)#define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH)@@ -375,6 +376,7 @@ typedef struct _drm_i915_sarea {#define DRM_IOCTL_I915_PERF_OPEN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_OPEN, struct drm_i915_perf_open_param)#define DRM_IOCTL_I915_PERF_ADD_CONFIG DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_ADD_CONFIG, struct drm_i915_perf_oa_config)#define DRM_IOCTL_I915_PERF_REMOVE_CONFIG DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_REMOVE_CONFIG, __u64) +#define DRM_IOCTL_I915_QUERY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_QUERY, struct drm_i915_query)/* Allow drivers to submit batchbuffers directly to hardware, relying * on the security mechanisms provided by hardware. @@ -1613,6 +1615,45 @@ struct drm_i915_perf_oa_config {__u64 flex_regs_ptr; }; + +struct drm_i915_query_item { +__u64 query_id; + +/* +* When set to zero by userspace, this is filled with the size of the +* data to be written at the data_ptr pointer. The kernel set this +* value to a negative value to signal an error on a particular query +* item. +*/ +__s32 length; + +/* +* Unused for now. +*/ +__u32 flags; + +/* +* Data will be written at the location pointed by data_ptr when the +* value of length matches the length of the data to be written by the +* kernel. +*/ +__u64 data_ptr; +}; + +struct drm_i915_query { +__u32 num_items; + +/* +* Unused for now. +*/ +__u32 flags;
include/uapi/drm/i915_drm.h struct drm_i915_perf_oa_config { · line 1659
Quoted 10 lines
include/uapi/drm/i915_drm.h +7
-0+ +/* +* This point to an array of num_items drm_i915_query_item structures. +*/ +__u64 items_ptr; +}; +#if defined(__cplusplus) }#endif
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 5/6] drm/i915: add query uAPI
Quoted 27 lines · Lionel Landwerlin
Hi all,
I've been trying to expose some information to userspace about the fused parts of the GPU. This is the 4th attempt at getting this upstream, here are the previous ones :
https://patchwork.freedesktop.org/patch/185959/
https://patchwork.freedesktop.org/series/33436/
https://patchwork.freedesktop.org/series/33950/This last iteration was based upon some direction by Daniel : https://lists.freedesktop.org/archives/dri-devel/2017-December/160162.html
There was, I think, a fair point about having this working in environments where sysfs (mechanism used in the 3rd iteration) is not available (containers).Following some discussion on IRC, it seems Joonas would like this rewritten in a such way that we essentially drop the generic mechanism introduced in this patch, and instead go for an additional
ioctl()on the drm fd just for querying the state of a fused part of slice/subslice/eus. The proposal is to have a single struct like :struct
drm_i915_topology{
/* All field are in/out */
int slice;
int subslice;
int eu;int enabled;
};You would let the slice field to -1 and then the kernel would fill it with the max slice value. Same for subslice (with a valid slice value) and eu.
When querying with slice = 0, and all other fields to -1, the kernel would fill the enabled value with 0 or 1.
Essentially that would mean that an application wanting to query the state of all of the EUs would have to go through them one by one (which would be about ~100ioctl()on SKL GT4 for example).
Quoted 5 lines
Apart from the fact that we'll probably end up adding another
ioctl()for engine discovery, I don't have any problem with what Joonas is proposing. It's just a bit annoying this comes up on the 4th rewrite.
I really wouldn't like to rewrite this one more time and get turned down because this isn't to the taste of one of the reviewer. So my question is : Is everybody happy with what Joonas is proposing?
Anybody in favor of having a generic mechanism?
I am not very keen on this counter-proposal for two reasons.
First is that I think is a bit inelegant to have to query so many times just to get the full topology out. If this ends in some library, we may end up running this on every trivial client startup.
Secondly, it is kind of dispatcher in it's own right. Since the operation mode will depend on the combination of field values. As such a generic, or at least a more explicit, dispatcher, like the proposed i915_query_ioctl sounds cleaner to me.
I take the point we can't guess how many other users we will have for it in the future. So there is a little bit of a risk of adding something generic which won't be used a lot in the future.
Because apart from the three queries Lionel needs, I would be adding an engine info query and potentially, depending on userspace interest, engine queue depths. So that would be a maximum of five queries I am aware of would use the generic framework. Maybe too little, or maybe good enough for a start?
Alternative would be to go with dedicated ioctls for all of these. It would work for my needs, but I am not sure if Lionel can massage the GPU/EU topology into one, or at least fewer than three, nicer ioctls (Not the kind which needs to be called hundred times to get the complete state.).
Regards,
Tvrtko
Quoted 236 lines · Lionel Landwerlin
Quoted 234 lines
There are a number of information that are readable from hardware registers and that we would like to make accessible to userspace. One particular example is the topology of the execution units (how are execution units grouped in subslices and slices and also which ones have been fused off for die recovery).
At the moment the
GET_PARAMioctl covers some basic needs, but generally is only able to return a single value for each defined parameter. This is a bit problematic with topology descriptions which are array/maps of available units.This change introduces a new ioctl that can deal with requests to fill structures of potentially variable lengths. The user is expected fill a query with length fields set at 0 on the first call, the kernel then sets the length fields to the their expected values. A second call to the kernel with length fields at their expected values will trigger a copy of the data to the pointed memory locations.
The scope of this uAPI is only to provide information to userspace, not to allow configuration of the device.
v2: Simplify dispatcher code iteration (Tvrtko) Tweak uapi
drm_i915_query_itemstructure (Tvrtko)v3: Rename pad fields into flags (Chris)
Return error on flags field != 0 (Chris)
Only copy length back to userspace indrm_i915_query_item(Chris)v4: Use array of functions instead of switch (Chris)
v5: More comments in uapi (Tvrtko)
Return query item errors in length field (All)v6: Tweak uapi comments style to match the coding style (Lionel)
Signed-off-by Lionel Landwerlin <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]>---
drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 3 ++drivers/gpu/drm/i915/i915_query.c| 67
+++++++++++++++++++++++++++++++++++++++
include/uapi/drm/i915_drm.h | 41 ++++++++++++++++++++++++5 files changed, 113 insertions(+)create mode 100644
drivers/gpu/drm/i915/i915_query.cdrivers/gpu/drm/i915/Makefile +1
-0@@ -69,6 +69,7 @@ i915-y += i915_cmd_parser.o \ i915_gem_timeline.o \ i915_gem_userptr.o \ i915_gemfs.o \ + i915_query.o \ i915_trace_points.o \ i915_vma.o \ intel_breadcrumbs.o \drivers/gpu/drm/i915/i915_drv.c +1
-0@@ -2830,6 +2830,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = { DRM_IOCTL_DEF_DRV(I915_PERF_OPEN, i915_perf_open_ioctl, DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(I915_PERF_ADD_CONFIG, i915_perf_add_config_ioctl, DRM_UNLOCKED|DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(I915_PERF_REMOVE_CONFIG, i915_perf_remove_config_ioctl, DRM_UNLOCKED|DRM_RENDER_ALLOW), + DRM_IOCTL_DEF_DRV(I915_QUERY, i915_query_ioctl,DRM_UNLOCKED |DRM_RENDER_ALLOW ), };static struct
drm_driverdriver = {drivers/gpu/drm/i915/i915_drv.h +3
-0@@ -3627,6 +3627,9 @@ extern void i915_perf_fini(struct drm_i915_private *dev_priv); extern void i915_perf_register(struct drm_i915_private *dev_priv); extern void i915_perf_unregister(struct drm_i915_private *dev_priv); +/* i915_query.c */ +int i915_query_ioctl (struct drm_device *dev,void *data,struct drm_file *file); + /* i915_suspend.c */ extern int i915_save_state(struct drm_i915_private *dev_priv);extern int
i915_restore_state(struct drm_i915_private *dev_priv);drivers/gpu/drm/i915/i915_query.c new file +4
-0@@ -0,0 +1,67 @@ +/* +* Copyright © 2017 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */drivers/gpu/drm/i915/i915_query.c new file +5
-0+ +#include "i915_drv.h" +#include <uapi/drm/i915_drm.h> + +static int (* const i915_query_funcs[])(struct drm_i915_private
*dev_priv,
+ structdrm_i915_query_item*query_item) = {drivers/gpu/drm/i915/i915_query.c new file +3
-0+}; + +int i915_query_ioctl(struct drm_device *dev, void *data, struct
drm_file*file)drivers/gpu/drm/i915/i915_query.c new file +35
-0+{ + struct drm_i915_private *dev_priv = to_i915(dev); + struct drm_i915_query *args = data; + struct drm_i915_query_item __user *user_item_ptr = + u64_to_user_ptr(args->items_ptr); + u32 i; + + if (args->flags != 0) + return -EINVAL; + + for (i = 0; i < args->num_items; i++, user_item_ptr++) { + struct drm_i915_query_item item; + u64 func_idx; + int ret; + + if (copy_from_user(&item, user_item_ptr, sizeof(item))) + return -EFAULT; + + if (item.query_id == 0) + return -EINVAL; + + func_idx = item.query_id - 1; + + if (func_idx >= ARRAY_SIZE(i915_query_funcs)) + return -EINVAL; + + ret = i915_query_funcs[func_idx](dev_priv, &item); + + /* Only write the length back to userspace if they differ. */ + if (ret != item.length && put_user(ret, &user_item_ptr->length)) + return -EFAULT; + } + + return 0; +}include/uapi/drm/i915_drm.h +8
-0@@ -318,6 +318,7 @@ typedef struct _drm_i915_sarea { #define DRM_I915_PERF_OPEN 0x36 #define DRM_I915_PERF_ADD_CONFIG 0x37 #define DRM_I915_PERF_REMOVE_CONFIG 0x38 +#define DRM_I915_QUERY 0x39 #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t) #define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH)@@ -375,6 +376,7 @@ typedef struct _drm_i915_sarea { #define DRM_IOCTL_I915_PERF_OPEN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_OPEN, struct drm_i915_perf_open_param) #define DRM_IOCTL_I915_PERF_ADD_CONFIG DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_ADD_CONFIG, struct drm_i915_perf_oa_config) #define DRM_IOCTL_I915_PERF_REMOVE_CONFIG DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_REMOVE_CONFIG, __u64) +#define DRM_IOCTL_I915_QUERY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_QUERY, struct drm_i915_query) /* Allow drivers to submit batchbuffers directly to hardware, relying* on the security mechanisms provided by hardware. @@ -1613,6 +1615,45 @@ struct drm_i915_perf_oa_config { __u64 flex_regs_ptr; }; + +struct drm_i915_query_item { + __u64 query_id; + + /* + * When set to zero by userspace, this is filled with the size ofthe
+ * data to be written at thedata_ptrpointer. The kernel set this + * value to a negative value to signal an error on a particular query
+ * item.
+ */
+__s32length;include/uapi/drm/i915_drm.h +9
-0+ + /* + * Unused for now. + */ + __u32 flags; + + /* +* Data will be written at the location pointed by data_ptr when the +* value of length matches the length of the data to be written by the
+ * kernel.
+ */
+__u64data_ptr;include/uapi/drm/i915_drm.h +12
-0+}; + +struct drm_i915_query { + __u32 num_items; + + /* + * Unused for now. + */ + __u32 flags; + + /* + * This point to an array of num_items drm_i915_query_item
Quoted 11 lines
Quoted 8 lines
structures.
+ */
+__u64items_ptr;include/uapi/drm/i915_drm.h +2
-0+}; +#if
defined(__cplusplus)
}
#endif
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 5/6] drm/i915: add query uAPI
Quoting Tvrtko Ursulin (2018-01-24 12:03:46)
Quoted 67 lines · Lionel Landwerlin
Quoted 41 lines
Hi all,
I've been trying to expose some information to userspace about the fused parts of the GPU.
This is the 4th attempt at getting this upstream, here are the previous ones :
https://patchwork.freedesktop.org/patch/185959/
https://patchwork.freedesktop.org/series/33436/
https://patchwork.freedesktop.org/series/33950/This last iteration was based upon some direction by Daniel :
https://lists.freedesktop.org/archives/dri-devel/2017-December/160162.html
There was, I think, a fair point about having this working in environments where sysfs (mechanism used in the 3rd iteration) is not available (containers).Following some discussion on IRC, it seems Joonas would like this rewritten in a such way that we essentially drop the generic mechanism introduced in this patch, and instead go for an additional
ioctl()on the drm fd just for querying the state of a fused part of slice/subslice/eus.
The proposal is to have a single struct like :struct
drm_i915_topology{
/* All field are in/out */
int slice;
int subslice;
int eu;int enabled;
};You would let the slice field to -1 and then the kernel would fill it with the max slice value. Same for subslice (with a valid slice value) and eu.
When querying with slice = 0, and all other fields to -1, the kernel would fill the enabled value with 0 or 1.
Essentially that would mean that an application wanting to query the state of all of the EUs would have to go through them one by one (which would be about ~100ioctl()on SKL GT4 for example).Quoted 8 lines
Apart from the fact that we'll probably end up adding another
ioctl()for engine discovery, I don't have any problem with what Joonas is proposing.
It's just a bit annoying this comes up on the 4th rewrite.
I really wouldn't like to rewrite this one more time and get turned down because this isn't to the taste of one of the reviewer.
So my question is : Is everybody happy with what Joonas is proposing? Anybody in favor of having a generic mechanism?I am not very keen on this counter-proposal for two reasons.
First is that I think is a bit inelegant to have to query so many times just to get the full topology out. If this ends in some library, we may end up running this on every trivial client startup.
Secondly, it is kind of dispatcher in it's own right. Since the operation mode will depend on the combination of field values. As such a generic, or at least a more explicit, dispatcher, like the proposed
i915_query_ioctlsounds cleaner to me.I take the point we can't guess how many other users we will have for it in the future. So there is a little bit of a risk of adding something generic which won't be used a lot in the future.
Quoted 5 lines
Because apart from the three queries Lionel needs, I would be adding an engine info query and potentially, depending on userspace interest, engine queue depths. So that would be a maximum of five queries I am aware of would use the generic framework. Maybe too little, or maybe good enough for a start?
Another use case would be a single shot method to gather all GETPARAMs.
There's a lot of too'ing and fro'ing at the start of mesa trying to determine all of the kernel's capabilities, which more or less come down to a long series of parsing GETPARAM results. Bundling all of those up into a single ioctl seems attractive to me (bonus for it being properly defined and not a compat nightmare).
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 5/6] drm/i915: add query uAPI
Quoted 71 lines · Chris Wilson
Quoting Tvrtko Ursulin (2018-01-24 12:03:46)
Quoted 65 lines · Lionel Landwerlin
Quoted 41 lines
Hi all,
I've been trying to expose some information to userspace about the fused parts of the GPU.
This is the 4th attempt at getting this upstream, here are the previous ones :https://patchwork.freedesktop.org/patch/185959/ https://patchwork.freedesktop.org/series/33436/ https://patchwork.freedesktop.org/series/33950/This last iteration was based upon some direction by Daniel :
https://lists.freedesktop.org/archives/dri-devel/2017-December/160162.html
There was, I think, a fair point about having this working in environments where sysfs (mechanism used in the 3rd iteration) is not available (containers).Following some discussion on IRC, it seems Joonas would like this rewritten in a such way that we essentially drop the generic mechanism introduced in this patch, and instead go for an additional
ioctl()on the drm fd just for querying the state of a fused part of slice/subslice/eus.
The proposal is to have a single struct like :struct
drm_i915_topology{
/* All field are in/out */
int slice;
int subslice;
int eu;int enabled;
};You would let the slice field to -1 and then the kernel would fill it with the max slice value. Same for subslice (with a valid slice value) and eu.
When querying with slice = 0, and all other fields to -1, the kernel would fill the enabled value with 0 or 1.
Essentially that would mean that an application wanting to query the state of all of the EUs would have to go through them one by one (which would be about ~100ioctl()on SKL GT4 for example).Quoted 8 lines
Apart from the fact that we'll probably end up adding another
ioctl()for engine discovery, I don't have any problem with what Joonas is proposing.
It's just a bit annoying this comes up on the 4th rewrite.
I really wouldn't like to rewrite this one more time and get turned down because this isn't to the taste of one of the reviewer.
So my question is : Is everybody happy with what Joonas is proposing? Anybody in favor of having a generic mechanism?I am not very keen on this counter-proposal for two reasons.
First is that I think is a bit inelegant to have to query so many times just to get the full topology out. If this ends in some library, we may end up running this on every trivial client startup.
Secondly, it is kind of dispatcher in it's own right. Since the operation mode will depend on the combination of field values. As such a generic, or at least a more explicit, dispatcher, like the proposed
i915_query_ioctlsounds cleaner to me.I take the point we can't guess how many other users we will have for it in the future. So there is a little bit of a risk of adding something generic which won't be used a lot in the future.
Quoted 5 lines
Because apart from the three queries Lionel needs, I would be adding an engine info query and potentially, depending on userspace interest, engine queue depths. So that would be a maximum of five queries I am aware of would use the generic framework. Maybe too little, or maybe good enough for a start?
Quoted 9 lines
Another use case would be a single shot method to gather all GETPARAMs.
There's a lot of too'ing and fro'ing at the start of mesa trying to determine all of the kernel's capabilities, which more or less come down to a long series of parsing GETPARAM results. Bundling all of those up into a single ioctl seems attractive to me (bonus for it being properly defined and not a compat nightmare).
-Chris
Thanks all,
I don't really read much opposition to the current patch series. If anything we could actually want to do more it seems. It would be good to have the green light and land that.
I've played quickly with a Chris' idea and will add a couple of RFC patches for discussion.
Cheers,
-
Lionel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 5/6] drm/i915: add query uAPI
Quoted 8 lines · Lionel Landwerlin
Thanks all,
I don't really read much opposition to the current patch series. If anything we could actually want to do more it seems.
It would be good to have the green light and land that. I've played quickly with a Chris' idea and will add a couple of RFC patches for discussion.
Where is the latest iteration of the less generic IOCTL?
I'm still not sold on this, the resulting uAPI is quite horrendous with the macros to interpret the results.
Regards, Joonas
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 5/6] drm/i915: add query uAPI
Quoted 8 lines · Joonas
Quoted 7 lines · Lionel Landwerlin
Thanks all,
I don't really read much opposition to the current patch series. If anything we could actually want to do more it seems.
It would be good to have the green light and land that. I've played quickly with a Chris' idea and will add a couple of RFC patches for discussion.
Quoted 6 lines
Where is the latest iteration of the less generic IOCTL?
I'm still not sold on this, the resulting uAPI is quite horrendous with the macros to interpret the results.
Regards, Joonas
Not sure what is the less generic one. Here are the past attempts :
https://patchwork.freedesktop.org/patch/185959/
https://patchwork.freedesktop.org/series/33436/
https://patchwork.freedesktop.org/series/33950/
One of them was based off Tvrtko's stab at exposing the engines.
-
Lionel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v11 6/6 drm/i915: expose rcs topology through query uAPI
In reply to Lionel LandwerlinWith the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the Gen's GPU topology that doesn't aggregate numbers.
This is essential for monitoring parts of the GPU with the OA unit, because counters need to be normalized to the number of EUs/subslices/slices. The current aggregated numbers like EU_TOTAL do not gives us sufficient information.
As a bonus we can draw representations of the GPU :
v2: Rename uapi struct s/_mask/_info/ (Tvrtko)
Report max_slice/subslice/eus_per_subslice rather than strides (Tvrtko) Add uapi macros to read data from *_info structs (Tvrtko)
v3: Use !!(v & DRM_I915_BIT()) for uapi macros instead of custom shifts (Tvrtko)
v4: factorize query item writting (Tvrtko)
tweak uapi struct/define names (Tvrtko)
v5: Replace ALIGN() macro (Chris)
v6: Updated uapi comments (Tvrtko)
Moved flags != 0 checks into vfuncs (Tvrtko)
v7: Use access_ok() before copying anything, to avoid overflows (Chris)
Switch BUG_ON() to GEM_WARN_ON() (Tvrtko)
v8: Tweak uapi comments style to match the coding style (Lionel)
v9: Fix error in comment about computation of enabled subslice (Tvrtko)
--- drivers/gpu/drm/i915/i915_query.c | 110 ++++++++++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h | 71 ++++++++++++++++++++++++ 2 files changed, 181 insertions(+)
drivers/gpu/drm/i915/i915_query.c +110 -0
@@ -25,8 +25,118 @@#include "i915_drv.h" #include <uapi/drm/i915_drm.h> +static int copy_query_data (struct drm_i915_query_item *query_item, +const void *item_ptr,u32 item_length, +const void *data_ptr,u32 data_length) +{ +u32 total_length = item_length + data_length; + +if (GEM_WARN_ON (add_overflows (item_length, data_length))) +return -EINVAL ; + +if (query_item->length ==0 ) +return total_length; + +if (query_item->length < total_length) +return -EINVAL ; + +if (!access_ok (VERIFY_WRITE ,u64_to_user_ptr (query_item->data_ptr), + total_length)) +return -EFAULT ; + +if (__copy_to_user (u64_to_user_ptr (query_item->data_ptr), + item_ptr, item_length)) +return -EFAULT ; + +if (__copy_to_user (u64_to_user_ptr (query_item->data_ptr + item_length), + data_ptr, data_length)) +return -EFAULT ; + +return total_length; +} + +static int query_slice_info (struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) +{ +const struct sseu_dev_info *sseu = &INTEL_INFO (dev_priv)->sseu; +struct drm_i915_query_slice_info slice_info; + +if (query_item->flags !=0 ) +return -EINVAL ; + +if (sseu->max_slices ==0 ) +return -ENODEV ; + +/* +* If we ever change the internal slice mask data type, we'll need to +* update this function. +*/ +BUILD_BUG_ON (sizeof (u8) !=sizeof (sseu->slice_mask)); + +memset (&slice_info,0 ,sizeof (slice_info)); + slice_info.max_slices = sseu->max_slices; + +return copy_query_data (query_item, &slice_info,sizeof (slice_info), + &sseu->slice_mask,sizeof (sseu->slice_mask)); +} + +static int query_subslice_info (struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) +{ +const struct sseu_dev_info *sseu = &INTEL_INFO (dev_priv)->sseu; +struct drm_i915_query_subslice_info subslice_info; +u32 data_length; + +if (query_item->flags !=0 ) +return -EINVAL ; + +if (sseu->max_slices ==0 ) +return -ENODEV ; + +memset (&subslice_info,0 ,sizeof (subslice_info)); + subslice_info.max_slices = sseu->max_slices; + subslice_info.max_subslices = sseu->max_subslices; + + data_length = subslice_info.max_slices * +DIV_ROUND_UP (subslice_info.max_subslices, +sizeof (sseu->subslice_mask[0 ]) *BITS_PER_BYTE ); + +return copy_query_data (query_item, + &subslice_info,sizeof (subslice_info), + sseu->subslice_mask, data_length); +} + +static int query_eu_info (struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) +{ +const struct sseu_dev_info *sseu = &INTEL_INFO (dev_priv)->sseu; +struct drm_i915_query_eu_info eu_info; +u32 data_length; + +if (query_item->flags !=0 ) +return -EINVAL ; + +if (sseu->max_slices ==0 ) +return -ENODEV ; + +memset (&eu_info,0 ,sizeof (eu_info)); + eu_info.max_slices = sseu->max_slices; + eu_info.max_subslices = sseu->max_subslices; + eu_info.max_eus_per_subslice = sseu->max_eus_per_subslice; + + data_length = eu_info.max_slices * eu_info.max_subslices * +DIV_ROUND_UP (eu_info.max_eus_per_subslice,BITS_PER_BYTE ); + +return copy_query_data (query_item, + &eu_info,sizeof (eu_info), + sseu->eu_mask, data_length); +} +static int (*const i915_query_funcs[])(struct drm_i915_private *dev_priv,struct drm_i915_query_item *query_item) = { + query_slice_info, + query_subslice_info, + query_eu_info, };int i915_query_ioctl (struct drm_device *dev,void *data,struct drm_file *file)
include/uapi/drm/i915_drm.h +71 -0
83 lines not on this page · raw message
Signature · 6 lines
2.15.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v11 6/6] drm/i915: expose rcs topology through query uAPI
Quoted 244 lines · Lionel Landwerlin
With the introduction of asymmetric slices in CNL, we cannot rely on the previous
SUBSLICE_MASKgetparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the Gen's GPU topology that doesn't aggregate numbers.This is essential for monitoring parts of the GPU with the OA unit, because counters need to be normalized to the number of EUs/subslices/slices. The current aggregated numbers like
EU_TOTALdo not gives us sufficient information.As a bonus we can draw representations of the GPU :
v2: Rename uapi struct s/_mask/_info/ (Tvrtko)
Report max_slice/subslice/eus_per_subslice rather than strides (Tvrtko) Add uapi macros to read data from*_infostructs (Tvrtko)v3: Use !!(v &
DRM_I915_BIT()) for uapi macros instead of custom shifts (Tvrtko)v4: factorize query item writting (Tvrtko)
tweak uapi struct/define names (Tvrtko)v5: Replace
ALIGN()macro (Chris)v6: Updated uapi comments (Tvrtko)
Moved flags != 0 checks into vfuncs (Tvrtko)v7: Use
access_ok()before copying anything, to avoid overflows (Chris)
SwitchBUG_ON()toGEM_WARN_ON()(Tvrtko)v8: Tweak uapi comments style to match the coding style (Lionel)
v9: Fix error in comment about computation of enabled subslice (Tvrtko)
Signed-off-by Lionel Landwerlin <[email protected]>--- drivers/gpu/drm/i915/i915_query.c | 110 ++++++++++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h | 71 ++++++++++++++++++++++++ 2 files changed, 181 insertions(+)drivers/gpu/drm/i915/i915_query.c +110
-0@@ -25,8 +25,118 @@#include "i915_drv.h" #include <uapi/drm/i915_drm.h> +static int copy_query_data (struct drm_i915_query_item *query_item, +const void *item_ptr,u32 item_length, +const void *data_ptr,u32 data_length) +{ +u32 total_length = item_length + data_length; + +if (GEM_WARN_ON (add_overflows (item_length, data_length))) +return -EINVAL ; + +if (query_item->length ==0 ) +return total_length; + +if (query_item->length < total_length) +return -EINVAL ; + +if (!access_ok (VERIFY_WRITE ,u64_to_user_ptr (query_item->data_ptr), + total_length)) +return -EFAULT ; + +if (__copy_to_user (u64_to_user_ptr (query_item->data_ptr), + item_ptr, item_length)) +return -EFAULT ; + +if (__copy_to_user (u64_to_user_ptr (query_item->data_ptr + item_length), + data_ptr, data_length)) +return -EFAULT ; + +return total_length; +} + +static int query_slice_info (struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) +{ +const struct sseu_dev_info *sseu = &INTEL_INFO (dev_priv)->sseu; +struct drm_i915_query_slice_info slice_info; + +if (query_item->flags !=0 ) +return -EINVAL ; + +if (sseu->max_slices ==0 ) +return -ENODEV ; + +/* +* If we ever change the internal slice mask data type, we'll need to +* update this function. +*/ +BUILD_BUG_ON (sizeof (u8) !=sizeof (sseu->slice_mask)); + +memset (&slice_info,0 ,sizeof (slice_info)); + slice_info.max_slices = sseu->max_slices; + +return copy_query_data (query_item, &slice_info,sizeof (slice_info), + &sseu->slice_mask,sizeof (sseu->slice_mask)); +} + +static int query_subslice_info (struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) +{ +const struct sseu_dev_info *sseu = &INTEL_INFO (dev_priv)->sseu; +struct drm_i915_query_subslice_info subslice_info; +u32 data_length; + +if (query_item->flags !=0 ) +return -EINVAL ; + +if (sseu->max_slices ==0 ) +return -ENODEV ; + +memset (&subslice_info,0 ,sizeof (subslice_info)); + subslice_info.max_slices = sseu->max_slices; + subslice_info.max_subslices = sseu->max_subslices; + + data_length = subslice_info.max_slices * +DIV_ROUND_UP (subslice_info.max_subslices, +sizeof (sseu->subslice_mask[0 ]) *BITS_PER_BYTE ); + +return copy_query_data (query_item, + &subslice_info,sizeof (subslice_info), + sseu->subslice_mask, data_length); +} + +static int query_eu_info (struct drm_i915_private *dev_priv, +struct drm_i915_query_item *query_item) +{ +const struct sseu_dev_info *sseu = &INTEL_INFO (dev_priv)->sseu; +struct drm_i915_query_eu_info eu_info; +u32 data_length; + +if (query_item->flags !=0 ) +return -EINVAL ; + +if (sseu->max_slices ==0 ) +return -ENODEV ; + +memset (&eu_info,0 ,sizeof (eu_info)); + eu_info.max_slices = sseu->max_slices; + eu_info.max_subslices = sseu->max_subslices; + eu_info.max_eus_per_subslice = sseu->max_eus_per_subslice; + + data_length = eu_info.max_slices * eu_info.max_subslices * +DIV_ROUND_UP (eu_info.max_eus_per_subslice,BITS_PER_BYTE ); + +return copy_query_data (query_item, + &eu_info,sizeof (eu_info), + sseu->eu_mask, data_length); +} +static int (*const i915_query_funcs[])(struct drm_i915_private *dev_priv,struct drm_i915_query_item *query_item) = { + query_slice_info, + query_subslice_info, + query_eu_info, };int i915_query_ioctl (struct drm_device *dev,void *data,struct drm_file *file)include/uapi/drm/i915_drm.h +64
-0@@ -1618,6 +1618,9 @@ struct drm_i915_perf_oa_config {struct drm_i915_query_item {__u64 query_id; +#define DRM_I915_QUERY_SLICE_INFO 0x01 +#define DRM_I915_QUERY_SUBSLICE_INFO 0x02 +#define DRM_I915_QUERY_EU_INFO 0x03/* * When set to zero by userspace, this is filled with the size of the @@ -1654,6 +1657,74 @@ struct drm_i915_query {__u64 items_ptr; }; +#define DRM_I915_BIT (bit) ((__u32)1 << (bit)) +#define DRM_I915_DIV_ROUND_UP (val, div) (((val) + (div) - 1) / (div)) + +/* +* Data written by the kernel with query DRM_I915_QUERY_SLICE_INFO : +* +* data: each bit indicates whether a slice is available (1) or fused off (0). +* Formula to tell if slice X is available : +* +* (data[X / 8] >> (X % 8)) & 1 +* +* Alternatively, use DRM_I915_QUERY_SLICE_AVAILABLE() to query a +* given subslice's availability. +*/ +struct drm_i915_query_slice_info { +__u32 max_slices; + +#define DRM_I915_QUERY_SLICE_AVAILABLE (info, slice) \ + !!((info)->data[(slice) / 8] & DRM_I915_BIT((slice) % 8)) +__u8 data[]; +}; + +/* +* Data written by the kernel with query DRM_I915_QUERY_SUBSLICE_INFO : +* +* data: each bit indicates whether a subslice is available (1) or fused off +* (0). Formula to tell if slice X subslice Y is available : +* +* (data[(X * ALIGN(max_subslices, 8) / 8) + Y / 8] >> (Y % 8)) & 1 +* +* Alternatively, use DRM_I915_QUERY_SUBSLICE_AVAILABLE() to query a +* given subslice's availability. +*/ +struct drm_i915_query_subslice_info { +__u32 max_slices; +__u32 max_subslices; + +#define DRM_I915_QUERY_SUBSLICE_AVAILABLE (info, slice, subslice) \ + !!((info)->data[(slice) * DRM_I915_DIV_ROUND_UP((info)->max_subslices, 8) + \ + (subslice) / 8] & DRM_I915_BIT((subslice) % 8)) +__u8 data[]; +}; + +/* +* Data written by the kernel with query DRM_I915_QUERY_EU_INFO : +* +* data: Each bit indicates whether an EU is available (1) or fused off (0). +* Formula to tell if slice X subslice Y eu Z is available : +* +* (data[X * max_subslices * ALIGN(max_eus_per_subslice, 8) / 8 + +* Y * ALIGN(max_eus_per_subslice, 8) / 8 + +* Z / 8] >> (Z % 8)) & 1 +* +* Alternatively, use DRM_I915_QUERY_EU_AVAILABLE() to query a given +* EU's availability. +*/ +struct drm_i915_query_eu_info { +__u32 max_slices; +__u32 max_subslices; +__u32 max_eus_per_subslice; +
include/uapi/drm/i915_drm.h struct drm_i915_query { · line 1730
Quoted 10 lines
include/uapi/drm/i915_drm.h +7
-0+#define DRM_I915_QUERY_EU_AVAILABLE (info, slice, subslice, eu) \ + !!((info)->data[(slice) * DRM_I915_DIV_ROUND_UP((info)->max_eus_per_subslice, 8) * (info)->max_subslices + \ + (subslice) * DRM_I915_DIV_ROUND_UP((info)->max_eus_per_subslice, 8) + \ + (eu) / 8] & DRM_I915_BIT((eu) % 8)) +__u8 data[]; +}; +#if defined(__cplusplus) }#endif
Looks OK to me.
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: expose RCS topology to userspace
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: expose RCS topology to userspace
URL : https://patchwork.freedesktop.org/series/36874/
State : success
== Summary ==
Series 36874v1 drm/i915: expose RCS topology to userspace
https://patchwork.freedesktop.org/api/1.0/series/36874/revisions/1/mbox/
Test gem_ringfill:
Subgroup basic-default:
skip -> PASS (fi-bsw-n3050)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
incomplete -> PASS (fi-snb-2520m) fdo#103713fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:436s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:440s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:388s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:514s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:294s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:504s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:501s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:494s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:482s fi-elk-e7500 total:224 pass:168 dwarn:10 dfail:0 fail:0 skip:45 fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:305s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:524s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:396s fi-hsw-4770r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:404s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:422s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:466s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:422s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:466s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:504s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:455s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:507s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:633s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:434s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:518s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:534s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:489s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:504s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:440s fi-snb-2520m total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:537s fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:408s Blacklisted hosts: fi-cfl-s2 total:288 pass:256 dwarn:0 dfail:0 fail:3 skip:26 time:558s fi-glk-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:481s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:422s
a1f34f9415a41d5a4d219bcbbe5cf39a0b07cc22 drm-tip: 2018y-01m-20d-19h-27m-32s UTC integration manifest 74683d847ca1 drm/i915: expose rcs topology through query uAPI264b00831263 drm/i915: add query uAPI789a3cce76be drm/i915: add rcs topology to error state474bc6818880 drm/i915/debugfs: add rcs topology entrye12a463e0997 drm/i915/debugfs: reuse max slice/subslices already stored in sseu 3242318490b2 drm/i915: store all subslice masks
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7734/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: warning for drm/i915: expose RCS topology to userspace
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: expose RCS topology to userspace
URL : https://patchwork.freedesktop.org/series/36874/
State : warning
== Summary ==
Test kms_flip:
Subgroup flip-vs-expired-vblank-interruptible:
fail -> PASS (shard-apl) fdo#102887
Subgroup vblank-vs-suspend-interruptible:
incomplete -> PASS (shard-hsw) fdo#100368
Subgroup rcs-wf_vblank-vs-dpms-interruptible:
dmesg-warn -> PASS (shard-hsw) fdo#102614
Subgroup dpms-vs-vblank-race:
pass -> FAIL (shard-hsw) fdo#103060
Subgroup vblank-vs-modeset-suspend-interruptible:
pass -> INCOMPLETE (shard-hsw) fdo#103540
Test kms_sysfs_edid_timing:
warn -> PASS (shard-apl) fdo#100047
Test perf:
Subgroup blocking:
fail -> PASS (shard-hsw) fdo#102252
Subgroup buffer-fill:
pass -> FAIL (shard-apl) fdo#103755
Test perf_pmu:
Subgroup busy-check-all-vecs0:
pass -> SKIP (shard-apl)
Test pm_sseu:
Subgroup full-enable:
pass -> FAIL (shard-apl) fdo#104651
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-primscrn-pri-indfb-draw-render:
fail -> PASS (shard-apl) fdo#101623 +1
Test drv_suspend:
Subgroup forcewake:
skip -> PASS (shard-hsw)fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103540 https://bugs.freedesktop.org/show_bug.cgi?id=103540
fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#103755 https://bugs.freedesktop.org/show_bug.cgi?id=103755
fdo#104651 https://bugs.freedesktop.org/show_bug.cgi?id=104651
fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623
shard-apl total:2780 pass:1712 dwarn:1 dfail:0 fail:26 skip:1041 time:14738s shard-hsw total:2713 pass:1676 dwarn:1 dfail:0 fail:14 skip:1020 time:14906s shard-snb total:2780 pass:1316 dwarn:1 dfail:0 fail:13 skip:1450 time:8086s
Blacklisted hosts:
shard-kbl total:2776 pass:1831 dwarn:1 dfail:0 fail:26 skip:917 time:10545s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7734/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx