drm/i915: Vulkan performance query support
Subsystems (3)
v10 cover drm/i915: Vulkan performance query support
Hi all,
Just posted some tests : https://patchwork.freedesktop.org/series/64220/
And shockingly it found a few bugs.
This series is also rebased on top of Chris' on the fly OA reconfiguration of contexts.
Cheers,
Lionel Landwerlin (9):
drm/i915/perf: introduce a versioning of the i915-perf uapi drm/i915/perf: allow for CS OA configs to be created lazily drm/i915/perf: implement active wait for noa configurations drm/i915: introduce a mechanism to extend execbuf2 drm/i915: add syncobj timeline support
drm/i915: add a new perf configuration execbuf parameter drm/i915/perf: allow holding preemption on filtered ctx drm/i915/perf: execute OA configuration from command stream drm/i915: add support for perf configuration queries
.../gpu/drm/i915/gem/i915_gem_execbuffer.c | 470 ++++++++++++-- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 3 + drivers/gpu/drm/i915/gt/intel_engine_types.h | 9 + drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 25 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 5 + drivers/gpu/drm/i915/gt/intel_lrc.c | 1 + drivers/gpu/drm/i915/gt/intel_ringbuffer.c | 4 +- drivers/gpu/drm/i915/i915_debugfs.c | 31 + drivers/gpu/drm/i915/i915_drv.c | 11 +- drivers/gpu/drm/i915/i915_drv.h | 68 +- drivers/gpu/drm/i915/i915_perf.c | 603 +++++++++++++++--- drivers/gpu/drm/i915/i915_query.c | 282 ++++++++ drivers/gpu/drm/i915/i915_reg.h | 4 +- include/uapi/drm/i915_drm.h | 193 +++++- 14 files changed, 1550 insertions(+), 159 deletions(-)
--
2.22.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 1/9 drm/i915/perf: introduce a versioning of the i915-perf uapi
Reporting this version will help application figure out what level of the support the running kernel provides.
v2: Add i915_perf_ioctl_version() (Chris)
--- drivers/gpu/drm/i915/i915_drv.c | 3 +++ drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_perf.c | 10 ++++++++++ include/uapi/drm/i915_drm.h | 21 +++++++++++++++++++++ 4 files changed, 35 insertions(+)
drivers/gpu/drm/i915/i915_drv.c +3 -0
@@ -489,6 +489,9 @@ static int i915_getparam_ioctl(struct drm_device *dev, void *data,case I915_PARAM_MMAP_GTT_COHERENT : value =INTEL_INFO (dev_priv)->has_coherent_ggtt;break ; +case I915_PARAM_PERF_REVISION : + value =i915_perf_ioctl_version (); +break ;default :DRM_DEBUG ("Unknown parameter %d\n" , param->param);return -EINVAL ;
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -2627,6 +2627,7 @@ void i915_perf_init(struct drm_i915_private *dev_priv);void i915_perf_fini (struct drm_i915_private *dev_priv);void i915_perf_register (struct drm_i915_private *dev_priv);void i915_perf_unregister (struct drm_i915_private *dev_priv); +int i915_perf_ioctl_version (void );/* i915_suspend.c */ int i915_save_state (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/i915_perf.c +10 -0
@@ -3679,3 +3679,13 @@ void i915_perf_fini(struct drm_i915_private *dev_priv) dev_priv->perf.initialized = false; } + +/** +* i915_perf_ioctl_version - Version of the i915-perf subsystem +* +* This version number is used by userspace to detect available features. +*/ +int i915_perf_ioctl_version (void ) +{ +return 1 ; +}
include/uapi/drm/i915_drm.h +21 -0
@@ -611,6 +611,13 @@ typedef struct drm_i915_irq_wait {* See I915_EXEC_FENCE_OUT and I915_EXEC_FENCE_SUBMIT. */ #define I915_PARAM_HAS_EXEC_SUBMIT_FENCE 53 + +/* +* Revision of the i915-perf uAPI. The value returned helps determine what +* i915-perf features are available. See drm_i915_perf_property_id. +*/ +#define I915_PARAM_PERF_REVISION 54 +/* Must be kept compact -- no holes and well documented */ typedef struct drm_i915_getparam {
@@ -1844,23 +1851,31 @@ enum drm_i915_perf_property_id {* Open the stream for a specific context handle (as used with * execbuffer2). A stream opened for a specific context this way * won't typically require root privileges. +* +* This property is available in perf revision 1. */ DRM_I915_PERF_PROP_CTX_HANDLE =1 ,/** * A value of 1 requests the inclusion of raw OA unit reports as * part of stream samples. +* +* This property is available in perf revision 1. */ DRM_I915_PERF_PROP_SAMPLE_OA ,/** * The value specifies which set of OA unit metrics should be * be configured, defining the contents of any OA unit reports. +* +* This property is available in perf revision 1. */ DRM_I915_PERF_PROP_OA_METRICS_SET ,/** * The value specifies the size and layout of OA unit reports. +* +* This property is available in perf revision 1. */ DRM_I915_PERF_PROP_OA_FORMAT,
@@ -1870,6 +1885,8 @@ enum drm_i915_perf_property_id {* from this exponent as follows: * * 80ns * 2^(period_exponent + 1) +* +* This property is available in perf revision 1. */ DRM_I915_PERF_PROP_OA_EXPONENT,
@@ -1901,6 +1918,8 @@ struct drm_i915_perf_open_param {* to close and re-open a stream with the same configuration. * * It's undefined whether any pending data for the stream will be lost. +* +* This ioctl is available in perf revision 1. */ #define I915_PERF_IOCTL_ENABLE _IO('i', 0x0)
@@ -1908,6 +1927,8 @@ struct drm_i915_perf_open_param {* Disable data capture for a stream. * * It is an error to try and read a stream that is disabled. +* +* This ioctl is available in perf revision 1. */ #define I915_PERF_IOCTL_DISABLE _IO('i', 0x1)
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 2/9 drm/i915/perf: allow for CS OA configs to be created lazily
In reply to Lionel LandwerlinHere we introduce a mechanism by which the execbuf part of the i915 driver will be able to request that a batch buffer containing the programming for a particular OA config be created.
We'll execute these OA configuration buffers right before executing a set of userspace commands so that a particular user batchbuffer be executed with a given OA configuration.
This mechanism essentially allows the userspace driver to go through several OA configuration without having to open/close the i915/perf stream.
v2: No need for locking on object OA config object creation (Chris)
Flush cpu mapping of OA config (Chris)
v3: Properly deal with the perf_metric lock (Chris/Lionel)
v4: Fix oa config unref/put when not found (Lionel)
--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/i915_drv.h | 24 ++- drivers/gpu/drm/i915/i915_perf.c | 186 +++++++++++++++---- 3 files changed, 175 insertions(+), 36 deletions(-)
drivers/gpu/drm/i915/gt/intel_gpu_commands.h +1 -0
@@ -133,6 +133,7 @@*/ #define MI_LOAD_REGISTER_IMM (x) MI_INSTR(0x22, 2*(x)-1)#define MI_LRI_FORCE_POSTED (1<<12) +#define MI_LOAD_REGISTER_IMM_MAX_REGS (126)#define MI_STORE_REGISTER_MEM MI_INSTR(0x24, 1)#define MI_STORE_REGISTER_MEM_GEN8 MI_INSTR(0x24, 2)#define MI_SRM_LRM_GLOBAL_GTT (1<<22)
drivers/gpu/drm/i915/i915_drv.h +22 -2
@@ -1098,6 +1098,8 @@ struct i915_oa_reg { };struct i915_oa_config { +struct drm_i915_private *i915; +char uuid[UUID_STRING_LEN +1 ];int id;
@@ -1112,6 +1114,10 @@ struct i915_oa_config {struct attribute *attrs[2 ];struct device_attribute sysfs_metric_id; +struct drm_i915_gem_object *obj; + +struct list_head vma_link; +atomic_t ref_count; };
@@ -1689,11 +1695,21 @@ struct drm_i915_private {struct mutex metrics_lock;/* -* List of dynamic configurations, you need to hold -* dev_priv->perf.metrics_lock to access it. +* List of dynamic configurations (struct i915_oa_config), you +* need to hold dev_priv->perf.metrics_lock to access it. */ struct idr metrics_idr; +/* +* List of dynamic configurations (struct i915_oa_config) +* which have an allocated buffer in GGTT for reconfiguration, +* you need to hold dev_priv->perf.metrics_lock to access it. +* Elements are added to the list lazilly on execbuf (when a +* particular configuration is requested). The list is freed +* upon closing the perf stream. +*/ +struct list_head metrics_buffers; +/* * Lock associated with anything below within this structure * except exclusive_stream.
@@ -2540,6 +2556,10 @@ int i915_perf_remove_config_ioctl(struct drm_device *dev, void *data,void i915_oa_init_reg_state (struct intel_engine_cs *engine,struct intel_context *ce,u32 *reg_state); +int i915_perf_get_oa_config (struct drm_i915_private *i915, +int metrics_set, +struct i915_oa_config **out_config, +struct drm_i915_gem_object **out_obj);/* i915_gem_evict.c */ int __must_check i915_gem_evict_something(struct i915_address_space *vm,
drivers/gpu/drm/i915/i915_perf.c +152 -34
303 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 3/9 drm/i915/perf: implement active wait for noa configurations
In reply to Lionel LandwerlinNOA configuration take some amount of time to apply. That amount of time depends on the size of the GT. There is no documented time for this. For example, past experimentations with powergating configuration changes seem to indicate a 60~70us delay. We go with 500us as default for now which should be over the required amount of time (according to HW architects).
v2: Don't forget to save/restore registers used for the wait (Chris)
v3: Name used CS_GPR registers (Chris)
Fix compile issue due to rebase (Lionel)
v4: Fix save/restore helpers (Umesh)
--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 24 ++ drivers/gpu/drm/i915/gt/intel_gt_types.h | 5 + drivers/gpu/drm/i915/i915_debugfs.c | 31 +++ drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_perf.c | 222 ++++++++++++++++++- drivers/gpu/drm/i915/i915_reg.h | 4 +- 6 files changed, 291 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_gpu_commands.h +24 -0
@@ -158,6 +158,7 @@#define MI_BATCH_GTT (2<<6)/* aliased with (1<<7) on gen4 */ #define MI_BATCH_BUFFER_START_GEN8 MI_INSTR(0x31, 1)#define MI_BATCH_RESOURCE_STREAMER (1<<10) +#define MI_BATCH_PREDICATE (1 << 15)/* HSW+ on RCS only*/ /* * 3D instructions used by the kernel
@@ -233,6 +234,29 @@#define PIPE_CONTROL_DEPTH_CACHE_FLUSH (1<<0)#define PIPE_CONTROL_GLOBAL_GTT (1<<2)/* in addr dword */ +#define MI_MATH (x) MI_INSTR(0x1a, (x)-1) +#define MI_ALU_OP (op, src1, src2) (((op) << 20) | ((src1) << 10) | (src2)) +/* operands */ +#define MI_ALU_OP_NOOP 0 +#define MI_ALU_OP_LOAD 128 +#define MI_ALU_OP_LOADINV 1152 +#define MI_ALU_OP_LOAD0 129 +#define MI_ALU_OP_LOAD1 1153 +#define MI_ALU_OP_ADD 256 +#define MI_ALU_OP_SUB 257 +#define MI_ALU_OP_AND 258 +#define MI_ALU_OP_OR 259 +#define MI_ALU_OP_XOR 260 +#define MI_ALU_OP_STORE 384 +#define MI_ALU_OP_STOREINV 1408 +/* sources */ +#define MI_ALU_SRC_REG (x) (x)/* 0 -> 15 */ +#define MI_ALU_SRC_SRCA 32 +#define MI_ALU_SRC_SRCB 33 +#define MI_ALU_SRC_ACCU 49 +#define MI_ALU_SRC_ZF 50 +#define MI_ALU_SRC_CF 51 +/* * Commands used only by the command parser */
drivers/gpu/drm/i915/gt/intel_gt_types.h +5 -0
@@ -91,6 +91,11 @@ enum intel_gt_scratch_field {/* 8 bytes */ INTEL_GT_SCRATCH_FIELD_COHERENTL3_WA =256 , +/* 6 * 8 bytes */ +INTEL_GT_SCRATCH_FIELD_PERF_CS_GPR =2048 , + +/* 4 bytes */ + INTEL_GT_SCRATCH_FIELD_PERF_PREDICATE_RESULT_1 = 2096, };#endif /* __INTEL_GT_TYPES_H__ */
drivers/gpu/drm/i915/i915_debugfs.c +31 -0
@@ -3660,6 +3660,36 @@ DEFINE_SIMPLE_ATTRIBUTE(i915_wedged_fops, i915_wedged_get, i915_wedged_set, "%llu\n"); +static int +i915_perf_noa_delay_set (void *data,u64 val) +{ +struct drm_i915_private *i915 = data; + +/* This would lead to infinite waits as we're doing timestamp +* difference on the CS with only 32bits. +*/ +if (val > ((1ul <<32 ) -1 ) *RUNTIME_INFO (i915)->cs_timestamp_frequency_khz) +return -EINVAL ; + +atomic64_set (&i915->perf.oa.noa_programming_delay, val); +return 0 ; +} + +static int +i915_perf_noa_delay_get (void *data,u64 *val) +{ +struct drm_i915_private *i915 = data; + + *val =atomic64_read (&i915->perf.oa.noa_programming_delay); +return 0 ; +} + +DEFINE_SIMPLE_ATTRIBUTE (i915_perf_noa_delay_fops, + i915_perf_noa_delay_get, + i915_perf_noa_delay_set, +"%llu\n" ); + +#define DROP_UNBOUND BIT(0)#define DROP_BOUND BIT(1)#define DROP_RETIRE BIT(2)
@@ -4425,6 +4455,7 @@ static const struct i915_debugfs_files {const char *name;const struct file_operations *fops; } i915_debugfs_files[] = { + {"i915_perf_noa_delay", &i915_perf_noa_delay_fops}, {"i915_wedged", &i915_wedged_fops}, {"i915_cache_sharing", &i915_cache_sharing_fops}, {"i915_gem_drop_caches", &i915_drop_caches_fops},
drivers/gpu/drm/i915/i915_drv.h +8 -0
@@ -1830,6 +1830,14 @@ struct drm_i915_private {struct i915_oa_ops ops;const struct i915_oa_format *oa_formats; + +/** +* A batch buffer doing a wait on the GPU for the NOA +* logic to be reprogrammed. +*/ +struct i915_vma *noa_wait; + +atomic64_t noa_programming_delay; } oa; } perf;
drivers/gpu/drm/i915/i915_perf.c +220 -2
270 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +3 -1
@@ -568,7 +568,9 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define MI_PREDICATE_SRC0_UDW _MMIO(0x2400 + 4)#define MI_PREDICATE_SRC1 _MMIO(0x2408)#define MI_PREDICATE_SRC1_UDW _MMIO(0x2408 + 4) - +#define MI_PREDICATE_DATA _MMIO(0x2410) +#define MI_PREDICATE_RESULT _MMIO(0x2418) +#define MI_PREDICATE_RESULT_1 _MMIO(0x241c)#define MI_PREDICATE_RESULT_2 _MMIO(0x2214)#define LOWER_SLICE_ENABLED (1 << 0)#define LOWER_SLICE_DISABLED (0 << 0)
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 4/9 drm/i915: introduce a mechanism to extend execbuf2
In reply to Lionel LandwerlinWe're planning to use this for a couple of new feature where we need to provide additional parameters to execbuf.
--- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 32 ++++++++++++++++++- include/uapi/drm/i915_drm.h | 25 +++++++++++++-- 2 files changed, 53 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +31 -1
@@ -23,6 +23,7 @@#include "i915_gem_clflush.h" #include "i915_gem_context.h" #include "i915_trace.h" +#include "i915_user_extensions.h" #include "intel_drv.h" enum {
@@ -271,6 +272,10 @@ struct i915_execbuffer {*/ int lut_size;struct hlist_head *buckets;/** ht for relocation handles */ + +struct { +u64 flags;/** Available extensions parameters */ + } extensions; };#define exec_entry (EB ,VMA ) (&(EB)->exec[(VMA)->exec_flags - (EB)->flags])
@@ -1969,7 +1974,7 @@ static bool i915_gem_check_execbuffer(struct drm_i915_gem_execbuffer2 *exec)return false;/* Kernel clipping was a DRI1 misfeature */ -if (!(exec->flags &I915_EXEC_FENCE_ARRAY )) { +if (!(exec->flags & (I915_EXEC_FENCE_ARRAY |I915_EXEC_EXT ))) {if (exec->num_cliprects || exec->cliprects_ptr)return false; }
@@ -2347,6 +2352,27 @@ signal_fence_array(struct i915_execbuffer *eb, } } +static const i915_user_extension_fn execbuf_extensions[] = { +}; + +static int +parse_execbuf2_extensions (struct drm_i915_gem_execbuffer2 *args, +struct i915_execbuffer *eb) +{ + eb->extensions.flags =0 ; + +if (!(args->flags &I915_EXEC_EXT )) +return 0 ; + +if (args->num_cliprects !=0 ) +return -EINVAL ; + +return i915_user_extensions (u64_to_user_ptr (args->cliprects_ptr), + execbuf_extensions, +ARRAY_SIZE (execbuf_extensions), + eb); +} + static int i915_gem_do_execbuffer(struct drm_device *dev, struct drm_file *file,
@@ -2393,6 +2419,10 @@ i915_gem_do_execbuffer(struct drm_device *dev,if (args->flags &I915_EXEC_IS_PINNED ) eb.batch_flags |=I915_DISPATCH_PINNED ; + err =parse_execbuf2_extensions (args, &eb); +if (err) +return err; +if (args->flags &I915_EXEC_FENCE_IN ) { in_fence =sync_file_get_fence (lower_32_bits (args->rsvd2));if (!in_fence)
include/uapi/drm/i915_drm.h +22 -3
@@ -1014,6 +1014,10 @@ struct drm_i915_gem_exec_fence {__u32 flags; }; +enum drm_i915_gem_execbuffer_ext { +DRM_I915_GEM_EXECBUFFER_EXT_MAX /* non-ABI */ +}; +struct drm_i915_gem_execbuffer2 {/** * List of gem_exec_object2 structs
@@ -1030,8 +1034,14 @@ struct drm_i915_gem_execbuffer2 {__u32 num_cliprects;/** * This is a struct drm_clip_rect *cliprects if I915_EXEC_FENCE_ARRAY -* is not set. If I915_EXEC_FENCE_ARRAY is set, then this is a -* struct drm_i915_gem_exec_fence *fences. +* & I915_EXEC_EXT are not set. +* +* If I915_EXEC_FENCE_ARRAY is set, then this is a pointer to an array +* of struct drm_i915_gem_exec_fence and num_cliprects is the length +* of the array. +* +* If I915_EXEC_EXT is set, then this is a pointer to a single struct +* drm_i915_gem_base_execbuffer_ext and num_cliprects is 0. */ __u64 cliprects_ptr;#define I915_EXEC_RING_MASK (0x3f)
@@ -1149,7 +1159,16 @@ struct drm_i915_gem_execbuffer2 {*/ #define I915_EXEC_FENCE_SUBMIT (1 << 20) -#define __I915_EXEC_UNKNOWN_FLAGS (-(I915_EXEC_FENCE_SUBMIT << 1)) +/* +* Setting I915_EXEC_EXT implies that drm_i915_gem_execbuffer2.cliprects_ptr +* is treated as a pointer to an linked list of i915_user_extension. Each +* i915_user_extension node is the base of a larger structure. The list of +* supported structures are listed in the drm_i915_gem_execbuffer_ext +* enum. +*/ +#define I915_EXEC_EXT (1 << 21) + +#define __I915_EXEC_UNKNOWN_FLAGS (-(I915_EXEC_EXT<<1))#define I915_EXEC_CONTEXT_ID_MASK (0xffffffff)#define i915_execbuffer2_set_context_id (eb2, context) \
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 5/9 drm/i915: add syncobj timeline support
In reply to Lionel LandwerlinIntroduces a new parameters to execbuf so that we can specify syncobj handles as well as timeline points.
v2: Reuse i915_user_extension_fn
v3: Check that the chained extension is only present once (Chris)
v4: Check that dma_fence_chain_find_seqno returns a non NULL fence (Lionel)
v5: Use BIT_ULL (Chris)
v6: Fix issue with already signaled timeline points,
dma_fence_chain_find_seqno() setting fence to NULL (Chris)
v7: Report ENOENT with invalid syncobj handle (Lionel)
--- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 297 ++++++++++++++---- drivers/gpu/drm/i915/i915_drv.c | 4 +- include/uapi/drm/i915_drm.h | 38 +++ 3 files changed, 282 insertions(+), 57 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +241 -56
@@ -213,6 +213,13 @@ enum {* the batchbuffer in trusted mode, otherwise the ioctl is rejected. */ +struct i915_eb_fences { +struct drm_syncobj *syncobj;/* Use with ptr_mask_bits() */ +struct dma_fence *dma_fence; +u64 value; +struct dma_fence_chain *chain_fence; +}; +struct i915_execbuffer {struct drm_i915_private *i915;/** i915 backpointer */ struct drm_file *file;/** per-file lookup tables and limits */
@@ -275,6 +282,7 @@ struct i915_execbuffer {struct {u64 flags;/** Available extensions parameters */ +struct drm_i915_gem_execbuffer_ext_timeline_fences timeline_fences; } extensions; };
@@ -2224,67 +2232,207 @@ eb_select_engine(struct i915_execbuffer *eb, }static void -__free_fence_array (struct drm_syncobj **fences,unsigned int n) +__free_fence_array (struct i915_eb_fences *fences,unsigned int n) { -while (n--) -drm_syncobj_put (ptr_mask_bits (fences[n],2 )); +while (n--) { +drm_syncobj_put (ptr_mask_bits (fences[n].syncobj,2 )); +dma_fence_put (fences[n].dma_fence); +kfree (fences[n].chain_fence); + }kvfree (fences); } -static struct drm_syncobj ** -get_fence_array (struct drm_i915_gem_execbuffer2 *args, -struct drm_file *file) +static struct i915_eb_fences * +get_timeline_fence_array (struct i915_execbuffer *eb,int *out_n_fences) +{ +struct drm_i915_gem_execbuffer_ext_timeline_fences *timeline_fences = + &eb->extensions.timeline_fences; +struct drm_i915_gem_exec_fence __user *user_fences; +struct i915_eb_fences *fences; +u64 __user *user_values; +u64 num_fences, num_user_fences = timeline_fences->fence_count; +unsigned long n; +int err; + +/* Check multiplication overflow for access_ok() and kvmalloc_array() */ +BUILD_BUG_ON (sizeof (size_t ) >sizeof (unsigned long )); + if (num_user_fences > min_t(unsigned long, +ULONG_MAX /sizeof (*user_fences), +SIZE_MAX /sizeof (*fences))) +return ERR_PTR (-EINVAL ); + + user_fences =u64_to_user_ptr (timeline_fences->handles_ptr); +if (!access_ok (user_fences, num_user_fences *sizeof (*user_fences))) +return ERR_PTR (-EFAULT ); + + user_values =u64_to_user_ptr (timeline_fences->values_ptr); +if (!access_ok (user_values, num_user_fences *sizeof (*user_values))) +return ERR_PTR (-EFAULT ); + + fences =kvmalloc_array (num_user_fences,sizeof (*fences), + __GFP_NOWARN |GFP_KERNEL ); +if (!fences) +return ERR_PTR (-ENOMEM ); + +BUILD_BUG_ON (~(ARCH_KMALLOC_MINALIGN -1 ) & + ~__I915_EXEC_FENCE_UNKNOWN_FLAGS); + +for (n =0 , num_fences =0 ; n < timeline_fences->fence_count; n++) { +struct drm_i915_gem_exec_fence user_fence; +struct drm_syncobj *syncobj; +struct dma_fence *fence =NULL ; +u64 point; + +if (__copy_from_user (&user_fence, user_fences++,sizeof (user_fence))) { + err = -EFAULT ; + goto err; + } + +if (user_fence.flags & __I915_EXEC_FENCE_UNKNOWN_FLAGS) { + err = -EINVAL ; + goto err; + } + +if (__get_user (point, user_values++)) { + err = -EFAULT ; + goto err; + } + + syncobj =drm_syncobj_find (eb->file, user_fence.handle); +if (!syncobj) { +DRM_DEBUG ("Invalid syncobj handle provided\n" ); + err = -ENOENT ; + goto err; + } + +if (user_fence.flags &I915_EXEC_FENCE_WAIT ) { + fence =drm_syncobj_fence_get (syncobj); +if (!fence) { +DRM_DEBUG ("Syncobj handle has no fence\n" ); +drm_syncobj_put (syncobj); + err = -EINVAL ; + goto err; + } + + err =dma_fence_chain_find_seqno (&fence, point); +if (err) { +DRM_DEBUG ("Syncobj handle missing requested point %llu\n" , point); +drm_syncobj_put (syncobj); + goto err; + } + +/* A point might have been signaled already and +* garbage collected from the timeline. In this case +* just ignore the point and carry on. +*/ +if (!fence) { +drm_syncobj_put (syncobj); +continue ; + } + } + +/* +* For timeline syncobjs we need to preallocate chains for +* later signaling. +*/ +if (point !=0 && user_fence.flags &I915_EXEC_FENCE_SIGNAL ) { + fences[num_fences].chain_fence = +kmalloc (sizeof (*fences[num_fences].chain_fence), +GFP_KERNEL ); +if (!fences[num_fences].chain_fence) { +dma_fence_put (fence); +drm_syncobj_put (syncobj); + err = -ENOMEM ; +DRM_DEBUG ("Unable to alloc chain_fence\n" ); + goto err; + } + }else { + fences[num_fences].chain_fence =NULL ; + } + + fences[num_fences].syncobj =ptr_pack_bits (syncobj, user_fence.flags,2 ); + fences[num_fences].dma_fence = fence; + fences[num_fences].value = point; + num_fences++; + } + + *out_n_fences = num_fences; + +return fences; + +err: +__free_fence_array (fences, num_fences); +return ERR_PTR (err); +} + +static struct i915_eb_fences * +get_legacy_fence_array (struct i915_execbuffer *eb, +int *out_n_fences) { -const unsigned long nfences = args->num_cliprects; +struct drm_i915_gem_execbuffer2 *args = eb->args;struct drm_i915_gem_exec_fence __user *user; -struct drm_syncobj **fences; +struct i915_eb_fences *fences; +const u32 num_fences = args->num_cliprects;unsigned long n;int err; -if (!(args->flags &I915_EXEC_FENCE_ARRAY )) -return NULL ; + *out_n_fences = num_fences;/* Check multiplication overflow for access_ok() and kvmalloc_array() */ BUILD_BUG_ON (sizeof (size_t ) >sizeof (unsigned long )); - if (nfences > min_t(unsigned long, -ULONG_MAX /sizeof (*user), -SIZE_MAX /sizeof (*fences))) + if (*out_n_fences > min_t(unsigned long, +ULONG_MAX /sizeof (*user), +SIZE_MAX /sizeof (*fences)))return ERR_PTR (-EINVAL ); user =u64_to_user_ptr (args->cliprects_ptr); -if (!access_ok (user, nfences *sizeof (*user))) +if (!access_ok (user, *out_n_fences *sizeof (*user)))return ERR_PTR (-EFAULT ); - fences =kvmalloc_array (nfences,sizeof (*fences), + fences =kvmalloc_array (*out_n_fences,sizeof (*fences), __GFP_NOWARN |GFP_KERNEL );if (!fences)return ERR_PTR (-ENOMEM ); -for (n =0 ; n < nfences; n++) { -struct drm_i915_gem_exec_fence fence; +for (n =0 ; n < *out_n_fences; n++) { +struct drm_i915_gem_exec_fence user_fence;struct drm_syncobj *syncobj; +struct dma_fence *fence =NULL ; -if (__copy_from_user (&fence, user++,sizeof (fence))) { +if (__copy_from_user (&user_fence, user++,sizeof (user_fence))) { err = -EFAULT ; goto err; } -if (fence.flags & __I915_EXEC_FENCE_UNKNOWN_FLAGS) { +if (user_fence.flags & __I915_EXEC_FENCE_UNKNOWN_FLAGS) { err = -EINVAL ; goto err; } - syncobj =drm_syncobj_find (file, fence.handle); + syncobj =drm_syncobj_find (eb->file, user_fence.handle);if (!syncobj) {DRM_DEBUG ("Invalid syncobj handle provided\n" ); err = -ENOENT ; goto err; } +if (user_fence.flags &I915_EXEC_FENCE_WAIT ) { + fence =drm_syncobj_fence_get (syncobj); +if (!fence) { +DRM_DEBUG ("Syncobj handle has no fence\n" ); +drm_syncobj_put (syncobj); + err = -EINVAL ; + goto err; + } + } +BUILD_BUG_ON (~(ARCH_KMALLOC_MINALIGN -1 ) & ~__I915_EXEC_FENCE_UNKNOWN_FLAGS); - fences[n] =ptr_pack_bits (syncobj, fence.flags,2 ); + fences[n].syncobj =ptr_pack_bits (syncobj, user_fence.flags,2 ); + fences[n].dma_fence = fence; + fences[n].value =0 ; + fences[n].chain_fence =NULL ; }return fences;
@@ -2294,37 +2442,44 @@ get_fence_array(struct drm_i915_gem_execbuffer2 *args,return ERR_PTR (err); } +static struct i915_eb_fences * +get_fence_array (struct i915_execbuffer *eb,int *out_n_fences) +{ +if (eb->args->flags &I915_EXEC_FENCE_ARRAY ) +return get_legacy_fence_array (eb, out_n_fences); + +if (eb->extensions.flags &BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES )) +return get_timeline_fence_array (eb, out_n_fences); + + *out_n_fences =0 ; +return NULL ; +} +static void -put_fence_array (struct drm_i915_gem_execbuffer2 *args, -struct drm_syncobj **fences) +put_fence_array (struct i915_eb_fences *fences,int nfences) {if (fences) -__free_fence_array (fences, args->num_cliprects); +__free_fence_array (fences, nfences); }static int await_fence_array (struct i915_execbuffer *eb, -struct drm_syncobj **fences) +struct i915_eb_fences *fences, +int nfences) { -const unsigned int nfences = eb->args->num_cliprects;unsigned int n;int err;for (n =0 ; n < nfences; n++) {struct drm_syncobj *syncobj; -struct dma_fence *fence;unsigned int flags; - syncobj =ptr_unpack_bits (fences[n], &flags,2 ); + syncobj =ptr_unpack_bits (fences[n].syncobj, &flags,2 );if (!(flags &I915_EXEC_FENCE_WAIT ))continue ; - fence =drm_syncobj_fence_get (syncobj); -if (!fence) -return -EINVAL ; - - err =i915_request_await_dma_fence (eb->request, fence); -dma_fence_put (fence); + err =i915_request_await_dma_fence (eb->request, + fences[n].dma_fence);if (err <0 )return err; }
@@ -2334,9 +2489,9 @@ await_fence_array(struct i915_execbuffer *eb,static void signal_fence_array (struct i915_execbuffer *eb, -struct drm_syncobj **fences) +struct i915_eb_fences *fences, +int nfences) { -const unsigned int nfences = eb->args->num_cliprects;struct dma_fence *const fence = &eb->request->fence;unsigned int n;
@@ -2344,15 +2499,46 @@ signal_fence_array(struct i915_execbuffer *eb,struct drm_syncobj *syncobj;unsigned int flags; - syncobj =ptr_unpack_bits (fences[n], &flags,2 ); + syncobj =ptr_unpack_bits (fences[n].syncobj, &flags,2 );if (!(flags &I915_EXEC_FENCE_SIGNAL ))continue ; -drm_syncobj_replace_fence (syncobj, fence); +if (fences[n].chain_fence) { +drm_syncobj_add_point (syncobj, fences[n].chain_fence, + fence, fences[n].value); +/* +* The chain's ownership is transfered to the +* timeline. +*/ + fences[n].chain_fence =NULL ; + }else { +drm_syncobj_replace_fence (syncobj, fence); + } } } +static int parse_timeline_fences (struct i915_user_extension __user *ext,void *data) +{ +struct i915_execbuffer *eb = data; + +/* Timeline fences are incompatible with the fence array flag. */ +if (eb->args->flags &I915_EXEC_FENCE_ARRAY ) +return -EINVAL ; + +if (eb->extensions.flags &BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES )) +return -EINVAL ; + +if (copy_from_user (&eb->extensions.timeline_fences, ext, +sizeof (eb->extensions.timeline_fences))) +return -EFAULT ; + + eb->extensions.flags |=BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES ); + +return 0 ; +} +static const i915_user_extension_fn execbuf_extensions[] = { + [DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES ] = parse_timeline_fences, }; static int
@@ -2377,14 +2563,15 @@ static int i915_gem_do_execbuffer(struct drm_device *dev, struct drm_file *file, struct drm_i915_gem_execbuffer2 *args, - struct drm_i915_gem_exec_object2 *exec, - struct drm_syncobj **fences) + struct drm_i915_gem_exec_object2 *exec) { struct i915_execbuffer eb;struct dma_fence *in_fence =NULL ;struct dma_fence *exec_fence =NULL ;struct sync_file *out_fence =NULL ; +struct i915_eb_fences *fences =NULL ;int out_fence_fd =-1 ; +int nfences =0 ;int err;BUILD_BUG_ON (__EXEC_INTERNAL_FLAGS & ~__I915_EXEC_ILLEGAL_FLAGS);
@@ -2423,10 +2610,16 @@ i915_gem_do_execbuffer(struct drm_device *dev,if (err)return err; + fences =get_fence_array (&eb, &nfences); +if (IS_ERR (fences)) +return PTR_ERR (fences); +if (args->flags &I915_EXEC_FENCE_IN ) { in_fence =sync_file_get_fence (lower_32_bits (args->rsvd2)); -if (!in_fence) -return -EINVAL ; +if (!in_fence) { + err = -EINVAL ; + goto err_fences; + } }if (args->flags &I915_EXEC_FENCE_SUBMIT ) {
@@ -2584,7 +2777,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, }if (fences) { - err =await_fence_array (&eb, fences); + err =await_fence_array (&eb, fences, nfences);if (err) goto err_request; }
@@ -2613,7 +2806,7 @@ i915_gem_do_execbuffer(struct drm_device *dev,i915_request_add (eb.request);if (fences) -signal_fence_array (&eb, fences); +signal_fence_array (&eb, fences, nfences);if (out_fence) {if (err ==0 ) {
@@ -2648,6 +2841,8 @@ i915_gem_do_execbuffer(struct drm_device *dev,dma_fence_put (exec_fence); err_in_fence:dma_fence_put (in_fence); +err_fences: +put_fence_array (fences, nfences);return err; }
@@ -2741,7 +2936,7 @@ i915_gem_execbuffer_ioctl(struct drm_device *dev, void *data, exec2_list[i].flags =0 ; } - err =i915_gem_do_execbuffer (dev, file, &exec2, exec2_list,NULL ); + err =i915_gem_do_execbuffer (dev, file, &exec2, exec2_list);if (exec2.flags & __EXEC_HAS_RELOC) {struct drm_i915_gem_exec_object __user *user_exec_list =u64_to_user_ptr (args->buffers_ptr);
@@ -2772,7 +2967,6 @@ i915_gem_execbuffer2_ioctl(struct drm_device *dev, void *data, {struct drm_i915_gem_execbuffer2 *args = data;struct drm_i915_gem_exec_object2 *exec2_list; -struct drm_syncobj **fences =NULL ;const size_t count = args->buffer_count;int err;
@@ -2800,15 +2994,7 @@ i915_gem_execbuffer2_ioctl(struct drm_device *dev, void *data,return -EFAULT ; } -if (args->flags &I915_EXEC_FENCE_ARRAY ) { - fences =get_fence_array (args, file); -if (IS_ERR (fences)) { -kvfree (exec2_list); -return PTR_ERR (fences); - } - } - - err =i915_gem_do_execbuffer (dev, file, args, exec2_list, fences); + err =i915_gem_do_execbuffer (dev, file, args, exec2_list);/* * Now that we have begun execution of the batchbuffer, we ignore
@@ -2848,7 +3034,6 @@ end:; } args->flags &= ~__I915_EXEC_UNKNOWN_FLAGS; -put_fence_array (args, fences);kvfree (exec2_list);return err; }
drivers/gpu/drm/i915/i915_drv.c +3 -1
@@ -463,6 +463,7 @@ static int i915_getparam_ioctl(struct drm_device *dev, void *data,case I915_PARAM_HAS_EXEC_BATCH_FIRST :case I915_PARAM_HAS_EXEC_FENCE_ARRAY :case I915_PARAM_HAS_EXEC_SUBMIT_FENCE : +case I915_PARAM_HAS_EXEC_TIMELINE_FENCES :/* For the time being all of these are always true; * if some supported hardware does not have one of these * features this value needs to be provided from
@@ -3211,7 +3212,8 @@ static struct drm_driver driver = {*/ .driver_features =DRIVER_GEM | - DRIVER_RENDER | DRIVER_MODESET | DRIVER_ATOMIC | DRIVER_SYNCOBJ, +DRIVER_RENDER |DRIVER_MODESET |DRIVER_ATOMIC |DRIVER_SYNCOBJ | + DRIVER_SYNCOBJ_TIMELINE, .release = i915_driver_release, .open = i915_driver_open, .lastclose = i915_driver_lastclose,
include/uapi/drm/i915_drm.h +38 -0
@@ -618,6 +618,12 @@ typedef struct drm_i915_irq_wait {*/ #define I915_PARAM_PERF_REVISION 54 +/* Query whether DRM_I915_GEM_EXECBUFFER2 supports supplying an array of +* timeline syncobj through drm_i915_gem_execbuf_ext_timeline_fences. See +* I915_EXEC_EXT. +*/ +#define I915_PARAM_HAS_EXEC_TIMELINE_FENCES 55 +/* Must be kept compact -- no holes and well documented */ typedef struct drm_i915_getparam {
@@ -1015,9 +1021,41 @@ struct drm_i915_gem_exec_fence { };enum drm_i915_gem_execbuffer_ext { +/** +* See drm_i915_gem_execbuf_ext_timeline_fences. +*/ +DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES =0 , +DRM_I915_GEM_EXECBUFFER_EXT_MAX /* non-ABI */ }; +/** +* This structure describes an array of drm_syncobj and associated points for +* timeline variants of drm_syncobj. It is invalid to append this structure to +* the execbuf if I915_EXEC_FENCE_ARRAY is set. +*/ +struct drm_i915_gem_execbuffer_ext_timeline_fences { +struct i915_user_extension base; + +/** +* Number of element in the handles_ptr & value_ptr arrays. +*/ +__u64 fence_count; + +/** +* Pointer to an array of struct drm_i915_gem_exec_fence of length +* fence_count. +*/ +__u64 handles_ptr; + +/** +* Pointer to an array of u64 values of length fence_count. Values +* must be 0 for a binary drm_syncobj. A Value of 0 for a timeline +* drm_syncobj is invalid as it turns a drm_syncobj into a binary one. +*/ +__u64 values_ptr; +}; +struct drm_i915_gem_execbuffer2 {/** * List of gem_exec_object2 structs
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 6/9 drm/i915: add a new perf configuration execbuf parameter
In reply to Lionel LandwerlinWe want the ability to dispatch a set of command buffer to the hardware, each with a different OA configuration. To achieve this, we reuse a couple of fields from the execbuf2 struct (I CAN HAZ execbuf3?) to notify what OA configuration should be used for a batch buffer. This requires the process making the execbuf with this flag to also own the perf fd at the time of execbuf.
v2: Add a emit_oa_config() vfunc in the intel_engine_cs (Chris)
Move oa_config vma to active (Chris)
v3: Don't drop the lock for engine lookup (Chris)
Move OA config vma to active before writing the ringbuffer (Chris)
v4: Reuse i915_user_extension_fn
Serialize requests with OA config updates
v5: Check that the chained extension is only present once (Chris)
Unpin oa_vma in main path (Chris)
v6: Use BIT_ULL (Chris)
v7: Hold drm.struct_mutex when serializing the request with OA config (Chris)
--- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 133 +++++++++++++++++- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 3 + drivers/gpu/drm/i915/gt/intel_engine_types.h | 9 ++ drivers/gpu/drm/i915/gt/intel_lrc.c | 1 + drivers/gpu/drm/i915/gt/intel_ringbuffer.c | 4 +- drivers/gpu/drm/i915/i915_drv.c | 4 + drivers/gpu/drm/i915/i915_drv.h | 8 +- drivers/gpu/drm/i915/i915_perf.c | 25 ++-- include/uapi/drm/i915_drm.h | 37 +++++ 9 files changed, 207 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +131 -2
@@ -283,7 +283,12 @@ struct i915_execbuffer {struct {u64 flags;/** Available extensions parameters */ struct drm_i915_gem_execbuffer_ext_timeline_fences timeline_fences; +struct drm_i915_gem_execbuffer_ext_perf perf_config; } extensions; + +struct i915_oa_config *oa_config;/** HW configuration for OA, NULL is not needed. */ +struct drm_i915_gem_object *oa_bo; +struct i915_vma *oa_vma; };#define exec_entry (EB ,VMA ) (&(EB)->exec[(VMA)->exec_flags - (EB)->flags])
@@ -1210,6 +1215,42 @@ static int reloc_move_to_gpu(struct i915_request *rq, struct i915_vma *vma)return err; } + +static int +get_execbuf_oa_config (struct i915_execbuffer *eb) +{ +struct file *perf_file; +int err =0 ; + + eb->oa_config =NULL ; + eb->oa_vma =NULL ; + eb->oa_bo =NULL ; + +if ((eb->extensions.flags &BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_PERF )) ==0 ) +return 0 ; + + perf_file =fget (eb->extensions.perf_config.perf_fd); +if (!perf_file) { + err = -EINVAL ; + goto out; + } + +if (perf_file->private_data != eb->i915->perf.oa.exclusive_stream) + err = -EINVAL ; + +if (!err) { + err =i915_perf_get_oa_config ( + eb->i915, + eb->extensions.perf_config.oa_config, + &eb->oa_config, &eb->oa_bo); + } + +fput (perf_file); + +out: +return err; +} +static int __reloc_gpu_alloc (struct i915_execbuffer *eb,struct i915_vma *vma,unsigned int len)
@@ -2072,6 +2113,42 @@ add_to_client(struct i915_request *rq, struct drm_file *file)list_add_tail (&rq->client_link, &rq->file_priv->mm.request_list); } +static int eb_oa_config (struct i915_execbuffer *eb) +{ +int ret; + +if (!eb->oa_config) +return 0 ; + +lockdep_assert_held (&eb->i915->drm.struct_mutex);/* oa_config */ + + ret =i915_active_request_set (&eb->engine->last_oa_config, + eb->request); +if (ret) +return ret; + +/* +* If the config hasn't changed, skip reconfiguring the HW (this is +* subject to a delay we want to avoid has much as possible). +*/ +if (eb->oa_config == eb->i915->perf.oa.exclusive_stream->oa_config) +return 0 ; + + ret =i915_vma_move_to_active (eb->oa_vma, eb->request,0 ); +if (ret) +return ret; + + ret = eb->engine->emit_bb_start (eb->request, + eb->oa_vma->node.start, +0 ,I915_DISPATCH_SECURE ); +if (ret) +return ret; + +swap (eb->oa_config, eb->i915->perf.oa.exclusive_stream->oa_config); + +return 0 ; +} +static int eb_submit (struct i915_execbuffer *eb) {int err;
@@ -2098,6 +2175,10 @@ static int eb_submit(struct i915_execbuffer *eb)return err; } + err =eb_oa_config (eb); +if (err) +return err; + err = eb->engine->emit_bb_start(eb->request, eb->batch->node.start + eb->batch_start_offset,
@@ -2537,8 +2618,25 @@ static int parse_timeline_fences(struct i915_user_extension __user *ext, void *dreturn 0 ; } +static int parse_perf_config (struct i915_user_extension __user *ext,void *data) +{ +struct i915_execbuffer *eb = data; + +if (eb->extensions.flags &BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_PERF )) +return -EINVAL ; + +if (copy_from_user (&eb->extensions.perf_config, ext, +sizeof (eb->extensions.perf_config))) +return -EFAULT ; + + eb->extensions.flags |=BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_PERF ); + +return 0 ; +} +static const i915_user_extension_fn execbuf_extensions[] = { [DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES ] = parse_timeline_fences, + [DRM_I915_GEM_EXECBUFFER_EXT_PERF ] = parse_perf_config, }; static int
@@ -2643,9 +2741,13 @@ i915_gem_do_execbuffer(struct drm_device *dev, } } + err =get_execbuf_oa_config (&eb); +if (err) + goto err_oa_config; + err =eb_create (&eb);if (err) - goto err_out_fence; + goto err_oa_config;GEM_BUG_ON (!eb.lut_size);
@@ -2670,6 +2772,13 @@ i915_gem_do_execbuffer(struct drm_device *dev,if (unlikely (err)) goto err_unlock; +if (eb.extensions.flags &BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_PERF )) { +if (!intel_engine_has_oa (eb.engine)) { + err = -ENODEV ; + goto err_engine; + } + } + err =eb_wait_for_ring (&eb);/* may temporarily drop struct_mutex */ if (unlikely (err)) goto err_engine;
@@ -2790,6 +2899,20 @@ i915_gem_do_execbuffer(struct drm_device *dev, } } +if (eb.extensions.flags &BIT_ULL (DRM_I915_GEM_EXECBUFFER_EXT_PERF )) { + eb.oa_vma =i915_vma_instance (eb.oa_bo, + &eb.engine->i915->ggtt.vm,NULL ); +if (unlikely (IS_ERR (eb.oa_vma))) { + err =PTR_ERR (eb.oa_vma); + eb.oa_vma =NULL ; + goto err_request; + } + + err =i915_vma_pin (eb.oa_vma,0 ,0 ,PIN_GLOBAL ); +if (err) + goto err_request; + } +/* * Whilst this request exists, batch_obj will be on the * active_list, and so will hold the active reference. Only when this
@@ -2834,7 +2957,13 @@ i915_gem_do_execbuffer(struct drm_device *dev,i915_gem_context_put (eb.gem_context); err_destroy:eb_destroy (&eb); -err_out_fence: +err_oa_config: +if (eb.oa_config) { +i915_gem_object_put (eb.oa_bo); +i915_oa_config_put (eb.oa_config); + } +if (eb.oa_vma) +i915_vma_unpin (eb.oa_vma);if (out_fence_fd !=-1 )put_unused_fd (out_fence_fd); err_exec_fence:
drivers/gpu/drm/i915/gt/intel_engine_cs.c +3 -0
@@ -849,6 +849,9 @@ int intel_engine_init_common(struct intel_engine_cs *engine) engine->emit_fini_breadcrumb_dw = ret; + +INIT_ACTIVE_REQUEST (&engine->last_oa_config); +return 0 ; err_unpin:
drivers/gpu/drm/i915/gt/intel_engine_types.h +9 -0
@@ -362,6 +362,8 @@ struct intel_engine_cs {struct i915_wa_list wa_list;struct i915_wa_list whitelist; +struct i915_active_request last_oa_config; +u32 irq_keep_mask;/* always keep these interrupts */ u32 irq_enable_mask;/* bitmask to enable ring interrupt */ void (*irq_enable)(struct intel_engine_cs *engine);
@@ -445,6 +447,7 @@ struct intel_engine_cs {#define I915_ENGINE_HAS_SEMAPHORES BIT(3)#define I915_ENGINE_NEEDS_BREADCRUMB_TASKLET BIT(4)#define I915_ENGINE_IS_VIRTUAL BIT(5) +#define I915_ENGINE_HAS_OA BIT(6)unsigned int flags;/*
@@ -540,6 +543,12 @@ intel_engine_is_virtual(const struct intel_engine_cs *engine)return engine->flags &I915_ENGINE_IS_VIRTUAL ; } +static inline bool +intel_engine_has_oa (const struct intel_engine_cs *engine) +{ +return engine->flags &I915_ENGINE_HAS_OA ; +} +#define instdone_slice_mask (dev_priv__) \ (IS_GEN(dev_priv__, 7) ? \ 1 : RUNTIME_INFO(dev_priv__)->sseu.slice_mask)
drivers/gpu/drm/i915/gt/intel_lrc.c +1 -0
@@ -2856,6 +2856,7 @@ int intel_execlists_submission_setup(struct intel_engine_cs *engine) engine->init_context = gen8_init_rcs_context; engine->emit_flush = gen8_emit_flush_render; engine->emit_fini_breadcrumb = gen8_emit_fini_breadcrumb_rcs; + engine->flags |=I915_ENGINE_HAS_OA ; }return 0 ;
drivers/gpu/drm/i915/gt/intel_ringbuffer.c +3 -1
@@ -2244,8 +2244,10 @@ static void setup_rcs(struct intel_engine_cs *engine) engine->irq_enable_mask =I915_USER_INTERRUPT ; } -if (IS_HASWELL (i915)) +if (IS_HASWELL (i915)) { engine->emit_bb_start = hsw_emit_bb_start; + engine->flags |=I915_ENGINE_HAS_OA ; + } engine->resume = rcs_resume; }
drivers/gpu/drm/i915/i915_drv.c +4 -0
@@ -493,6 +493,10 @@ static int i915_getparam_ioctl(struct drm_device *dev, void *data,case I915_PARAM_PERF_REVISION : value =i915_perf_ioctl_version ();break ; +case I915_PARAM_HAS_EXEC_PERF_CONFIG : +/* Obviously requires perf support. */ + value = dev_priv->perf.initialized; +break ;default :DRM_DEBUG ("Unknown parameter %d\n" , param->param);return -EINVAL ;
drivers/gpu/drm/i915/i915_drv.h +7 -1
@@ -1118,7 +1118,7 @@ struct i915_oa_config {struct list_head vma_link; -atomic_t ref_count; +struct kref ref; };struct i915_perf_stream ;
@@ -2568,6 +2568,12 @@ int i915_perf_get_oa_config(struct drm_i915_private *i915,int metrics_set, struct i915_oa_config **out_config, struct drm_i915_gem_object **out_obj); +void i915_oa_config_release (struct kref *ref); + +static inline void i915_oa_config_put (struct i915_oa_config *oa_config) +{ +kref_put (&oa_config->ref, i915_oa_config_release); +}/* i915_gem_evict.c */ int __must_check i915_gem_evict_something(struct i915_address_space *vm,
drivers/gpu/drm/i915/i915_perf.c +12 -13
@@ -365,10 +365,9 @@ struct perf_open_properties {int oa_period_exponent; }; -static void put_oa_config (struct i915_oa_config *oa_config) +void i915_oa_config_release (struct kref *ref) { -if (!atomic_dec_and_test (&oa_config->ref_count)) -return ; +struct i915_oa_config *oa_config =container_of (ref,typeof (*oa_config), ref);if (oa_config->obj) {struct drm_i915_private *i915 = oa_config->i915;
@@ -486,7 +485,7 @@ int i915_perf_get_oa_config(struct drm_i915_private *i915, }if (out_config) { -atomic_inc (&oa_config->ref_count); +kref_get (&oa_config->ref); *out_config = oa_config; }
@@ -508,7 +507,7 @@ int i915_perf_get_oa_config(struct drm_i915_private *i915,mutex_unlock (&i915->perf.metrics_lock);if (ret && out_config && oa_config) { -put_oa_config (oa_config); +i915_oa_config_put (oa_config); *out_config =NULL ; }
@@ -1482,7 +1481,7 @@ static void i915_oa_stream_destroy(struct i915_perf_stream *stream)if (stream->ctx)oa_put_render_ctx_id (stream); -put_oa_config (stream->oa_config); +i915_oa_config_put (stream->oa_config);if (dev_priv->perf.oa.spurious_report_rs.missed) { DRM_NOTE("%d spurious OA report notices suppressed due to ratelimiting\n",
@@ -2585,7 +2584,7 @@ static int i915_oa_stream_init(struct i915_perf_stream *stream,free_oa_buffer (dev_priv); err_oa_buf_alloc: -put_oa_config (stream->oa_config); +i915_oa_config_put (stream->oa_config);intel_uncore_forcewake_put (&dev_priv->uncore,FORCEWAKE_ALL );intel_runtime_pm_put (&dev_priv->runtime_pm, stream->wakeref);
@@ -2595,7 +2594,7 @@ static int i915_oa_stream_init(struct i915_perf_stream *stream,mutex_unlock (&dev_priv->drm.struct_mutex); err_noa_wait_alloc: -put_oa_config (stream->oa_config); +i915_oa_config_put (stream->oa_config); err_config:if (stream->ctx)
@@ -3410,7 +3409,7 @@ void i915_perf_register(struct drm_i915_private *dev_priv) goto sysfs_error; dev_priv->perf.oa.test_config.i915 = dev_priv; -atomic_set (&dev_priv->perf.oa.test_config.ref_count,1 ); +kref_init (&dev_priv->perf.oa.test_config.ref); goto exit;
@@ -3667,7 +3666,7 @@ int i915_perf_add_config_ioctl(struct drm_device *dev, void *data, } oa_config->i915 = dev_priv; -atomic_set (&oa_config->ref_count,1 ); +kref_init (&oa_config->ref);if (!uuid_is_valid (args->uuid)) {DRM_DEBUG ("Invalid uuid format for OA config\n" );
@@ -3766,7 +3765,7 @@ int i915_perf_add_config_ioctl(struct drm_device *dev, void *data, sysfs_err:mutex_unlock (&dev_priv->perf.metrics_lock); reg_err: -put_oa_config (oa_config); +i915_oa_config_put (oa_config);DRM_DEBUG ("Failed to add new OA config\n" );return err; }
@@ -3822,7 +3821,7 @@ int i915_perf_remove_config_ioctl(struct drm_device *dev, void *data,DRM_DEBUG ("Removed config %s id=%i\n" , oa_config->uuid, oa_config->id); -put_oa_config (oa_config); +i915_oa_config_put (oa_config);return 0 ;
@@ -3992,7 +3991,7 @@ static int destroy_config(int id, void *p, void *data) {struct i915_oa_config *oa_config = p; -put_oa_config (oa_config); +i915_oa_config_put (oa_config);return 0 ; }
include/uapi/drm/i915_drm.h +37 -0
@@ -624,6 +624,16 @@ typedef struct drm_i915_irq_wait {*/ #define I915_PARAM_HAS_EXEC_TIMELINE_FENCES 55 +/* +* Request an i915/perf performance configuration change before running the +* commands given in an execbuf. +* +* Performance configuration ID and the file descriptor of the i915 perf +* stream are given through drm_i915_gem_execbuffer_ext_perf. See +* I915_EXEC_EXT. +*/ +#define I915_PARAM_HAS_EXEC_PERF_CONFIG 56 +/* Must be kept compact -- no holes and well documented */ typedef struct drm_i915_getparam {
@@ -1026,6 +1036,12 @@ enum drm_i915_gem_execbuffer_ext {*/ DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES =0 , +/** +* This identifier is associated with +* drm_i915_gem_execbuffer_perf_ext. +*/ +DRM_I915_GEM_EXECBUFFER_EXT_PERF , + DRM_I915_GEM_EXECBUFFER_EXT_MAX /* non-ABI */ };
@@ -1056,6 +1072,27 @@ struct drm_i915_gem_execbuffer_ext_timeline_fences {__u64 values_ptr; }; +struct drm_i915_gem_execbuffer_ext_perf { +struct i915_user_extension base; + +/** +* Performance file descriptor returned by DRM_IOCTL_I915_PERF_OPEN. +* This is used to identify that the application +*/ +__s32 perf_fd; + +/** +* Unused for now. Must be cleared to zero. +*/ +__u32 pad; + +/** +* OA configuration ID to switch to before executing the commands +* associated to the execbuf. +*/ +__u64 oa_config; +}; +struct drm_i915_gem_execbuffer2 {/** * List of gem_exec_object2 structs
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 7/9 drm/i915/perf: allow holding preemption on filtered ctx
In reply to Lionel LandwerlinWe would like to make use of perf in Vulkan. The Vulkan API is much lower level than OpenGL, with applications directly exposed to the concept of command buffers (pretty much equivalent to our batch buffers). In Vulkan, queries are always limited in scope to a command buffer. In OpenGL, the lack of command buffer concept meant that queries' duration could span multiple command buffers.
With that restriction gone in Vulkan, we would like to simplify measuring performance just by measuring the deltas between the counter snapshots written by 2 MI_RECORD_PERF_COUNT commands, rather than the more complex scheme we currently have in the GL driver, using 2 MI_RECORD_PERF_COUNT commands and doing some post processing on the stream of OA reports, coming from the global OA buffer, to remove any unrelated deltas in between the 2 MI_RECORD_PERF_COUNT.
Disabling preemption only apply to a single context with which want to query performance counters for and is considered a privileged operation, by default protected by CAP_SYS_ADMIN. It is possible to enable it for a normal user by disabling the paranoid stream setting.
v2: Store preemption setting in intel_context (Chris)
v3: Use priorities to avoid preemption rather than the HW mechanism
v4: Just modify the port priority reporting function
--- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 8 +++++ drivers/gpu/drm/i915/i915_drv.h | 8 +++++ drivers/gpu/drm/i915/i915_perf.c | 31 +++++++++++++++++-- include/uapi/drm/i915_drm.h | 11 +++++++ 4 files changed, 55 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +8 -0
@@ -2127,6 +2127,14 @@ static int eb_oa_config(struct i915_execbuffer *eb)if (ret)return ret; +/* +* If the perf stream was opened with hold preemption, flag the +* request properly so that the priority of the request is bumped once +* it reaches the execlist ports. +*/ +if (eb->i915->perf.oa.exclusive_stream->hold_preemption) + eb->request->flags |=I915_REQUEST_NOPREEMPT ; +/* * If the config hasn't changed, skip reconfiguring the HW (this is * subject to a delay we want to avoid has much as possible).
drivers/gpu/drm/i915/i915_drv.h +8 -0
@@ -1234,6 +1234,14 @@ struct i915_perf_stream {*/ bool enabled; +/** +* @hold_preemption: Whether preemption is put on hold for command +* submissions done on the @ctx. This is useful for some drivers that +* cannot easily post process the OA buffer context to subtract delta +* of performance counters not associated with @ctx. +*/ +bool hold_preemption; +/** * @ops: The callbacks providing the implementation of this specific * type of configured stream.
drivers/gpu/drm/i915/i915_perf.c +28 -3
@@ -342,6 +342,8 @@ static const struct i915_oa_format gen8_plus_oa_formats[I915_OA_FORMAT_MAX] = {* struct perf_open_properties - for validated properties given to open a stream * @sample_flags: `DRM_I915_PERF_PROP_SAMPLE_*` properties are tracked as flags * @single_context: Whether a single or all gpu contexts should be monitored +* @hold_preemption: Whether the preemption is disabled for the filtered +* context * @ctx_handle: A gem ctx handle for use with @single_context * @metrics_set: An ID for an OA unit metric set advertised via sysfs * @oa_format: An OA unit HW report format
@@ -356,6 +358,7 @@ struct perf_open_properties {u32 sample_flags; u64 single_context:1; + u64 hold_preemption:1;u64 ctx_handle;/* OA sampling state */
@@ -2505,6 +2508,8 @@ static int i915_oa_stream_init(struct i915_perf_stream *stream, stream->sample_flags |=SAMPLE_OA_REPORT ; stream->sample_size += format_size; + stream->hold_preemption = props->hold_preemption; + dev_priv->perf.oa.oa_buffer.format_size = format_size;if (WARN_ON (dev_priv->perf.oa.oa_buffer.format_size ==0 ))return -EINVAL ;
@@ -3046,6 +3051,15 @@ i915_perf_open_ioctl_locked(struct drm_i915_private *dev_priv, } } +if (props->hold_preemption) { +if (!props->single_context) { +DRM_DEBUG ("preemption disable with no context\n" ); + ret = -EINVAL ; + goto err; + } + privileged_op = true; + } +/* * On Haswell the OA unit supports clock gating off for a specific * context and in this mode there's no visibility of metrics for the
@@ -3060,8 +3074,9 @@ i915_perf_open_ioctl_locked(struct drm_i915_private *dev_priv,* MI_REPORT_PERF_COUNT commands and so consider it a privileged op to * enable the OA unit by default. */ -if (IS_HASWELL (dev_priv) && specific_ctx) +if (IS_HASWELL (dev_priv) && specific_ctx && !props->hold_preemption) { privileged_op = false; + }/* Similar to perf's kernel.perf_paranoid_cpu sysctl option * we check a dev.i915.perf_stream_paranoid sysctl option
@@ -3070,7 +3085,7 @@ i915_perf_open_ioctl_locked(struct drm_i915_private *dev_priv,*/ if (privileged_op && i915_perf_stream_paranoid && !capable (CAP_SYS_ADMIN )) { -DRM_DEBUG ("Insufficient privileges to open system-wide i915 perf stream\n" ); +DRM_DEBUG ("Insufficient privileges to open i915 perf stream\n" ); ret = -EACCES ; goto err_ctx; }
@@ -3267,6 +3282,9 @@ static int read_properties_unlocked(struct drm_i915_private *dev_priv, props->oa_periodic = true; props->oa_period_exponent = value;break ; +case DRM_I915_PERF_PROP_HOLD_PREEMPTION : + props->hold_preemption = !!value; +break ;case DRM_I915_PERF_PROP_MAX :MISSING_CASE (id);return -EINVAL ;
@@ -4022,5 +4040,12 @@ void i915_perf_fini(struct drm_i915_private *dev_priv)*/ int i915_perf_ioctl_version (void ) { -return 1 ; +/* 1: initial version +* +* 2: Add DRM_I915_PERF_PROP_HOLD_PREEMPTION parameter to hold +* preemption on a particular context so that performance data is +* accessible from a delta of MI_RPC reports without looking at the +* OA buffer. +*/ +return 2 ; }
include/uapi/drm/i915_drm.h +11 -0
@@ -1984,6 +1984,17 @@ enum drm_i915_perf_property_id {*/ DRM_I915_PERF_PROP_OA_EXPONENT , +/** +* Specifying this property is only valid when specify a context to +* filter with DRM_I915_PERF_PROP_CTX_HANDLE. Specifying this property +* will hold preemption of the particular context we want to gather +* performance data about. The execbuf2 submissions must include a +* drm_i915_gem_execbuffer_ext_perf parameter for this to apply. +* +* This property is available in perf revision 2. +*/ +DRM_I915_PERF_PROP_HOLD_PREEMPTION , + DRM_I915_PERF_PROP_MAX /* non-ABI */ };
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 8/9 drm/i915/perf: execute OA configuration from command stream
In reply to Lionel LandwerlinWe haven't run into issues with programming the global OA/NOA registers configuration from CPU so far, but HW engineers actually recommend doing this from the command streamer. On TGL in particular one of the clock domain in which some of that programming goes might not be powered when we poke things from the CPU.
Since we have a command buffer prepared for the execbuffer side of things, we can reuse that approach here too.
This also allows us to significantly reduce the amount of time we hold the main lock.
v2: Drop the global lock as much as possible
v3: Take global lock to pin global
v4: Create i915 request in emit_oa_config() to avoid deadlocks (Lionel)
--- drivers/gpu/drm/i915/i915_drv.h | 7 ++ drivers/gpu/drm/i915/i915_perf.c | 204 +++++++++++++++++++------------ 2 files changed, 134 insertions(+), 77 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +7 -0
@@ -1207,6 +1207,13 @@ struct i915_perf_stream {*/ intel_wakeref_t wakeref; +/** +* @initial_config_rq: First request run at the opening of the i915 +* perf stream to configure the HW. Should be NULL after the perf +* stream has been opened successfully. +*/ +struct i915_request *initial_config_rq; +/** * @sample_flags: Flags representing the `DRM_I915_PERF_PROP_SAMPLE_*` * properties given when opening a stream, representing the contents
drivers/gpu/drm/i915/i915_perf.c +127 -77
336 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 9/9 drm/i915: add support for perf configuration queries
In reply to Lionel LandwerlinListing configurations at the moment is supported only through sysfs. This might cause issues for applications wanting to list configurations from a container where sysfs isn't available.
This change adds a way to query the number of configurations and their content through the i915 query uAPI.
v2: Fix sparse warnings (Lionel)
Add support to query configuration using uuid (Lionel)
v3: Fix some inconsistency in uapi header (Lionel)
Fix unlocking when not locked issue (Lionel) Add debug messages (Lionel)
v4: Fix missing unlock (Dan)
v5: Drop lock when copying config content to userspace (Chris)
v6: Drop lock when copying config list to userspace (Chris)
Fix deadlock when calling i915_perf_get_oa_config() under perf.metrics_lock (Lionel)
Add i915_oa_config_get() (Chris)
--- drivers/gpu/drm/i915/i915_drv.h | 12 ++ drivers/gpu/drm/i915/i915_perf.c | 3 + drivers/gpu/drm/i915/i915_query.c | 282 ++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h | 65 ++++++- 4 files changed, 359 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +12 -0
@@ -1725,6 +1725,12 @@ struct drm_i915_private {*/ struct list_head metrics_buffers; +/* +* Number of dynamic configurations, you need to hold +* dev_priv->perf.metrics_lock to access it. +*/ +u32 n_metrics; +/* * Lock associated with anything below within this structure * except exclusive_stream.
@@ -2585,6 +2591,12 @@ int i915_perf_get_oa_config(struct drm_i915_private *i915, struct drm_i915_gem_object **out_obj);void i915_oa_config_release (struct kref *ref); +static inline struct i915_oa_config *i915_oa_config_get (struct i915_oa_config *oa_config) +{ +kref_get (&oa_config->ref); +return oa_config; +} +static inline void i915_oa_config_put (struct i915_oa_config *oa_config) {kref_put (&oa_config->ref, i915_oa_config_release);
drivers/gpu/drm/i915/i915_perf.c +3 -0
@@ -3824,6 +3824,8 @@ int i915_perf_add_config_ioctl(struct drm_device *dev, void *data, goto sysfs_err; } + dev_priv->perf.n_metrics++; +mutex_unlock (&dev_priv->perf.metrics_lock);DRM_DEBUG ("Added config %s id=%i\n" , oa_config->uuid, oa_config->id);
@@ -3884,6 +3886,7 @@ int i915_perf_remove_config_ioctl(struct drm_device *dev, void *data, &oa_config->sysfs_metric);idr_remove (&dev_priv->perf.metrics_idr, *arg); + dev_priv->perf.n_metrics--;mutex_unlock (&dev_priv->perf.metrics_lock);
drivers/gpu/drm/i915/i915_query.c +282 -0
292 lines not on this page · raw message
include/uapi/drm/i915_drm.h +62 -3
91 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: Vulkan performance query support (rev10)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: Vulkan performance query support (rev10)
URL : https://patchwork.freedesktop.org/series/60916/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 63829d5dfc38 drm/i915/perf: introduce a versioning of the i915-perf uapi 499c943ab2e5 drm/i915/perf: allow for CS OA configs to be created lazily -:142: CHECK:SPACING: No space is necessary after a cast #142: FILE: drivers/gpu/drm/i915/i915_perf.c:397: + (u32) MI_LOAD_REGISTER_IMM_MAX_REGS);
total: 0 errors, 0 warnings, 1 checks, 361 lines checked e2b8f4a825d1 drm/i915/perf: implement active wait for noa configurations -:39: CHECK:SPACING: spaces preferred around that '-' (ctx:VxV) #39: FILE: drivers/gpu/drm/i915/gt/intel_gpu_commands.h:237:
+#define MI_MATH(x) MI_INSTR(0x1a, (x)-1)
^
-:118: CHECK:LINE_SPACING: Please don't use multiple blank lines #118: FILE: drivers/gpu/drm/i915/i915_debugfs.c:3692:
+
+
-:175: CHECK:LINE_SPACING: Please don't use multiple blank lines #175: FILE: drivers/gpu/drm/i915/i915_perf.c:448:
+
-:200: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t' #200: FILE: drivers/gpu/drm/i915/i915_perf.c:1665:
+ uint32_t d;
-:225: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #225: FILE: drivers/gpu/drm/i915/i915_perf.c:1690:
+ DIV64_U64_ROUND_UP(
-:250: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided #250: FILE: drivers/gpu/drm/i915/i915_perf.c:1715:
+ batch = cs = i915_gem_object_pin_map(bo, I915_MAP_WB);
-:258: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #258: FILE: drivers/gpu/drm/i915/i915_perf.c:1723:
+ cs = save_restore_register(
-:262: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #262: FILE: drivers/gpu/drm/i915/i915_perf.c:1727:
+ cs = save_restore_register(
-:362: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #362: FILE: drivers/gpu/drm/i915/i915_perf.c:1827:
+ cs = save_restore_register(
-:366: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #366: FILE: drivers/gpu/drm/i915/i915_perf.c:1831:
+ cs = save_restore_register(
total: 0 errors, 0 warnings, 10 checks, 384 lines checked da129d958866 drm/i915: introduce a mechanism to extend execbuf2 -:129: CHECK:SPACING: spaces preferred around that '<<' (ctx:VxV) #129: FILE: include/uapi/drm/i915_drm.h:1171:
+#define __I915_EXEC_UNKNOWN_FLAGS (-(I915_EXEC_EXT<<1))
^
total: 0 errors, 0 warnings, 1 checks, 105 lines checked92dd7885fcbe drm/i915: add syncobj timeline support
-:363: WARNING:TYPO_SPELLING: 'transfered' may be misspelled - perhaps 'transferred'? #363: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2510:
+ * The chain's ownership is transfered to the
-:394: ERROR:CODE_INDENT: code indent should use tabs where possible #394: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2541:
+ [DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES] = parse_timeline_fences,$
-:394: WARNING:LEADING_SPACE: please, no spaces at the start of a line #394: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2541:
+ [DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES] = parse_timeline_fences,$
total: 1 errors, 2 warnings, 0 checks, 530 lines checked1f832dfa8af0 drm/i915: add a new perf configuration execbuf parameter
-:27: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #27:
v7: Hold drm.struct_mutex when serializing the request with OA config (Chris)
-:52: CHECK:LINE_SPACING: Please don't use multiple blank lines #52: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1218:
+
-:76: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #76: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1242:
+ err = i915_perf_get_oa_config(
-:167: ERROR:CODE_INDENT: code indent should use tabs where possible #167: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2639:
+ [DRM_I915_GEM_EXECBUFFER_EXT_PERF] = parse_perf_config,$
-:167: WARNING:LEADING_SPACE: please, no spaces at the start of a line #167: FILE: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2639:
+ [DRM_I915_GEM_EXECBUFFER_EXT_PERF] = parse_perf_config,$
-:244: CHECK:LINE_SPACING: Please don't use multiple blank lines #244: FILE: drivers/gpu/drm/i915/gt/intel_engine_cs.c:852:
+
total: 1 errors, 2 warnings, 3 checks, 423 lines checked b08d0ce1279b drm/i915/perf: allow holding preemption on filtered ctx -:124: WARNING:BRACES: braces {} are not necessary for single statement blocks #124: FILE: drivers/gpu/drm/i915/i915_perf.c:3077:
+ if (IS_HASWELL(dev_priv) && specific_ctx && !props->hold_preemption) {
privileged_op = false;
+ }
total: 0 errors, 1 warnings, 0 checks, 123 lines checked 40c2a9f98613 drm/i915/perf: execute OA configuration from command stream 828b572dc0bf drm/i915: add support for perf configuration queries -:195: WARNING:BRACES: braces {} are not necessary for single statement blocks #195: FILE: drivers/gpu/drm/i915/i915_query.c:250:
+ if (__get_user(config_id, &user_query_config_ptr->config)) {
+ return -EFAULT;
+ }
total: 0 errors, 1 warnings, 0 checks, 422 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for drm/i915: Vulkan performance query support (rev10)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: Vulkan performance query support (rev10)
URL : https://patchwork.freedesktop.org/series/60916/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/perf: introduce a versioning of the i915-perf uapi Okay!
Commit: drm/i915/perf: allow for CS OA configs to be created lazily +drivers/gpu/drm/i915/i915_perf.c:396:37: warning: expression using sizeof(void)
Commit: drm/i915/perf: implement active wait for noa configurations +drivers/gpu/drm/i915/i915_perf.c:1689:33: warning: constant 0xffffffffffffffff is so big it is unsigned long
Commit: drm/i915: introduce a mechanism to extend execbuf2 Okay!
Commit: drm/i915: add syncobj timeline support +./include/linux/mm.h:685:13: error: not a function <noident>
Commit: drm/i915: add a new perf configuration execbuf parameter Okay!
Commit: drm/i915/perf: allow holding preemption on filtered ctx Okay!
Commit: drm/i915/perf: execute OA configuration from command stream Okay!
Commit: drm/i915: add support for perf configuration queries +./include/linux/slab.h:672:13: error: undefined identifier '__builtin_mul_overflow' +./include/linux/slab.h:672:13: warning: call with no type!
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Vulkan performance query support (rev10)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: Vulkan performance query support (rev10)
URL : https://patchwork.freedesktop.org/series/60916/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6549 -> Patchwork_13747
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/
Known issues
------------
Here are the changes found in Patchwork_13747 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_create@basic-files:
- fi-icl-dsi: [PASS][1] -> [INCOMPLETE][2] ([fdo#107713] / [fdo#109100])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-icl-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-icl-dsi/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][3] -> [DMESG-WARN][4] ([fdo#102614])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-hsw-peppy/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-hsw-peppy/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [INCOMPLETE][5] ([fdo#107718]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-blb-e6850/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-blb-e6850/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- fi-snb-2600: [INCOMPLETE][7] ([fdo#105411]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-snb-2600/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-snb-2600/igt@[email protected]
- fi-snb-2520m: [INCOMPLETE][9] ([fdo#105411]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-snb-2520m/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-snb-2520m/igt@[email protected]
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-7567u: [WARN][11] ([fdo#109380]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-kbl-7567u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-kbl-7567u/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-c:
- fi-kbl-7567u: [SKIP][13] ([fdo#109271]) -> [PASS][14] +23 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/fi-kbl-7567u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/fi-kbl-7567u/igt@[email protected]
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109380]: https://bugs.freedesktop.org/show_bug.cgi?id=109380
Participating hosts (54 -> 45)
------------------------------
Missing (9): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-cfl-8109u fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6549 -> Patchwork_13747
CI-20190529: 20190529
CI_DRM_6549: b3ff1a4436815b4baf26a73dccfa71527a2bfc4e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5110: 9085f552a11156c5b856593361b30606a9424c01 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13747: 828b572dc0bf8b7118d87bfcc6d27f70eedd1daf @ git://anongit.freedesktop.org/gfx-ci/linux
== Kernel 32bit build ==
Warning: Kernel 32bit buildtest failed:
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/build_32bit.log
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
CHK include/generated/compile.h
AR drivers/gpu/drm/i915/built-in.a
CC [M] drivers/gpu/drm/i915/i915_debugfs.o
drivers/gpu/drm/i915/i915_debugfs.c: In function ‘i915_perf_noa_delay_set’:
drivers/gpu/drm/i915/i915_debugfs.c:3671:18: error: left shift count >= width of type [-Werror=shift-count-overflow]
if (val > ((1ul << 32) - 1) * RUNTIME_INFO(i915)->cs_timestamp_frequency_khz)
^~cc1: all warnings being treated as errorsscripts/Makefile.build:273: recipe for target 'drivers/gpu/drm/i915/i915_debugfs.o' failed make[4]: *** [drivers/gpu/drm/i915/i915_debugfs.o] Error 1 scripts/Makefile.build:490: recipe for target 'drivers/gpu/drm/i915' failed make[3]: *** [drivers/gpu/drm/i915] Error 2scripts/Makefile.build:490: recipe for target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2scripts/Makefile.build:490: recipe for target 'drivers/gpu' failed
make[1]: *** [drivers/gpu] Error 2
Makefile:1076: recipe for target 'drivers' failed
make: *** [drivers] Error 2
== Linux commits ==
828b572dc0bf drm/i915: add support for perf configuration queries 40c2a9f98613 drm/i915/perf: execute OA configuration from command stream b08d0ce1279b drm/i915/perf: allow holding preemption on filtered ctx 1f832dfa8af0 drm/i915: add a new perf configuration execbuf parameter 92dd7885fcbe drm/i915: add syncobj timeline support da129d958866 drm/i915: introduce a mechanism to extend execbuf2 e2b8f4a825d1 drm/i915/perf: implement active wait for noa configurations 499c943ab2e5 drm/i915/perf: allow for CS OA configs to be created lazily 63829d5dfc38 drm/i915/perf: introduce a versioning of the i915-perf uapi
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for drm/i915: Vulkan performance query support (rev10)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: Vulkan performance query support (rev10)
URL : https://patchwork.freedesktop.org/series/60916/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6549_full -> Patchwork_13747_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_13747_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_13747_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_13747_full:
### IGT changes ###
#### Possible regressions ####
* igt@perf@blocking:
- shard-hsw: [PASS][1] -> [DMESG-WARN][2] +11 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-hsw1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-hsw5/igt@[email protected]
- shard-apl: NOTRUN -> [DMESG-WARN][3] +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-apl7/igt@[email protected]
* igt@perf@create-destroy-userspace-config:
- shard-glk: [PASS][4] -> [DMESG-WARN][5] +9 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-glk4/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-glk1/igt@[email protected]
* igt@perf@enable-disable:
- shard-iclb: [PASS][6] -> [DMESG-WARN][7] +9 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb3/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb2/igt@[email protected]
* igt@perf@gen8-unprivileged-single-ctx-counters:
- shard-skl: [PASS][8] -> [DMESG-WARN][9] +6 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-skl10/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl10/igt@[email protected]
* igt@perf@invalid-oa-format-id:
- shard-kbl: [PASS][10] -> [DMESG-WARN][11] +9 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-kbl2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-kbl2/igt@[email protected]
* igt@perf@low-oa-exponent-permissions:
- shard-apl: [PASS][12] -> [DMESG-WARN][13] +8 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-apl7/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-apl4/igt@[email protected]
- shard-skl: [PASS][14] -> [TIMEOUT][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-skl6/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl8/igt@[email protected]
* igt@perf@non-sampling-read-error:
- shard-skl: [PASS][16] -> [INCOMPLETE][17] +4 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-skl4/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl7/igt@[email protected]
* igt@perf@short-reads:
- shard-skl: NOTRUN -> [DMESG-WARN][18]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl6/igt@[email protected]
#### Warnings ####
* igt@perf@short-reads:
- shard-kbl: [FAIL][19] ([fdo#103183]) -> [DMESG-WARN][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-kbl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-kbl6/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_13747_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_persistent_relocs@forked-interruptible-thrash-inactive:
- shard-iclb: [PASS][21] -> [INCOMPLETE][22] ([fdo#107713] / [fdo#109100])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb8/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb7/igt@[email protected]
* igt@gem_softpin@noreloc-s3:
- shard-apl: [PASS][23] -> [DMESG-WARN][24] ([fdo#108566]) +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-apl2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-apl2/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-atomic:
- shard-hsw: [PASS][25] -> [DMESG-WARN][26] ([fdo#102614]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-hsw6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-hsw2/igt@[email protected]
* igt@kms_flip@dpms-vs-vblank-race-interruptible:
- shard-glk: [PASS][27] -> [FAIL][28] ([fdo#103060])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-glk3/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-glk8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-pwrite:
- shard-iclb: [PASS][29] -> [FAIL][30] ([fdo#103167]) +6 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [PASS][31] -> [DMESG-WARN][32] ([fdo#108566]) +7 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-kbl4/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-kbl4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-rte:
- shard-iclb: [PASS][33] -> [FAIL][34] ([fdo#103167] / [fdo#110378])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb6/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb4/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [PASS][35] -> [SKIP][36] ([fdo#109642] / [fdo#111068])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb2/igt@kms_psr2_su@page_flip.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb6/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: [PASS][37] -> [SKIP][38] ([fdo#109441]) +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb7/igt@kms_psr@psr2_cursor_plane_onoff.html
* igt@perf@buffer-fill:
- shard-kbl: [PASS][39] -> [INCOMPLETE][40] ([fdo#103665]) +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-kbl4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-kbl4/igt@[email protected]
* igt@perf@disabled-read-error:
- shard-hsw: [PASS][41] -> [INCOMPLETE][42] ([fdo#103540]) +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-hsw7/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-hsw7/igt@[email protected]
* igt@perf@enable-disable:
- shard-skl: [PASS][43] -> [INCOMPLETE][44] ([fdo#104108])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-skl2/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl2/igt@[email protected]
* igt@perf@invalid-oa-metric-set-id:
- shard-glk: [PASS][45] -> [INCOMPLETE][46] ([fdo#103359] / [k.org#198133]) +4 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-glk9/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-glk9/igt@[email protected]
* igt@perf@oa-formats:
- shard-iclb: [PASS][47] -> [INCOMPLETE][48] ([fdo#107713]) +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb3/igt@[email protected]
- shard-apl: [PASS][49] -> [INCOMPLETE][50] ([fdo#103927])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-apl8/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-apl5/igt@[email protected]
- shard-hsw: [PASS][51] -> [INCOMPLETE][52] ([fdo#103540] / [fdo#108767])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-hsw8/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-hsw1/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live_hangcheck:
- shard-iclb: [INCOMPLETE][53] ([fdo#107713] / [fdo#108569]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb7/igt@i915_selftest@live_hangcheck.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb1/igt@i915_selftest@live_hangcheck.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [FAIL][55] ([fdo#103167]) -> [PASS][56] +8 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-apl: [DMESG-WARN][57] ([fdo#108566]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-apl6/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-apl3/igt@[email protected]
* igt@kms_plane@plane-position-covered-pipe-b-planes:
- shard-skl: [FAIL][59] ([fdo#110038]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-skl2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [FAIL][61] ([fdo#108145]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-skl2/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-skl4/igt@[email protected]
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][63] ([fdo#109441]) -> [PASS][64] +2 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6549/shard-iclb4/igt@kms_psr@psr2_no_drrs.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103060]: https://bugs.freedesktop.org/show_bug.cgi?id=103060
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103183]: https://bugs.freedesktop.org/show_bug.cgi?id=103183
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108767]: https://bugs.freedesktop.org/show_bug.cgi?id=108767
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110038]: https://bugs.freedesktop.org/show_bug.cgi?id=110038
[fdo#110378]: https://bugs.freedesktop.org/show_bug.cgi?id=110378
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (9 -> 9)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6549 -> Patchwork_13747
CI-20190529: 20190529
CI_DRM_6549: b3ff1a4436815b4baf26a73dccfa71527a2bfc4e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5110: 9085f552a11156c5b856593361b30606a9424c01 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13747: 828b572dc0bf8b7118d87bfcc6d27f70eedd1daf @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13747/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx