drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
PATCH 1/10 drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
The log struct is the only thing the function needs (apart from the seq_file), so we can pass just that instead of the whole dev_priv.
v2: Split this change to its own patch (Michal)
--- drivers/gpu/drm/i915/i915_debugfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +2 -4
@@ -1533,10 +1533,8 @@ stringify_guc_log_type(enum guc_log_buffer_type type)return "" ; } -static void i915_guc_log_info (struct seq_file *m, -struct drm_i915_private *dev_priv) +static void i915_guc_log_info (struct seq_file *m,struct intel_guc_log *log) { -struct intel_guc_log *log = &dev_priv->gt.uc.guc.log;enum guc_log_buffer_type type;if (!intel_guc_log_relay_created (log)) {
@@ -1564,7 +1562,7 @@ static int i915_guc_info(struct seq_file *m, void *data)if (!USES_GUC (dev_priv))return -ENODEV ; -i915_guc_log_info (m, dev_priv); +i915_guc_log_info (m, &dev_priv->gt.uc.guc.log);/* Add more as required ... */
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/10 drm/i915/guc: Kill USES_GUC macro
use intel_uc_uses_guc() directly instead, to be consistent in the way we check what we want to do with the GuC.
v2: split guc_log_info changes to their own patch (Michal)
--- drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/i915_debugfs.c | 15 +++++++++------ drivers/gpu/drm/i915/i915_drv.h | 1 - 3 files changed, 10 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/gt/intel_ggtt.c +1 -1
@@ -427,7 +427,7 @@ static int ggtt_reserve_guc_top(struct i915_ggtt *ggtt)u64 size;int ret; -if (!USES_GUC (ggtt->vm.i915)) +if (!intel_uc_uses_guc (&ggtt->vm.gt->uc))return 0 ;GEM_BUG_ON (ggtt->vm.total <=GUC_GGTT_TOP );
drivers/gpu/drm/i915/i915_debugfs.c +9 -6
@@ -1558,11 +1558,12 @@ static void i915_guc_log_info(struct seq_file *m, struct intel_guc_log *log)static int i915_guc_info (struct seq_file *m,void *data) {struct drm_i915_private *dev_priv =node_to_i915 (m->private); +struct intel_uc *uc = &dev_priv->gt.uc; -if (!USES_GUC (dev_priv)) +if (!intel_uc_uses_guc (uc))return -ENODEV ; -i915_guc_log_info (m, &dev_priv->gt.uc.guc.log); +i915_guc_log_info (m, &uc->guc.log);/* Add more as required ... */
@@ -1663,11 +1664,12 @@ static int i915_guc_log_dump(struct seq_file *m, void *data)static int i915_guc_log_level_get (void *data,u64 *val) {struct drm_i915_private *dev_priv = data; +struct intel_uc *uc = &dev_priv->gt.uc; -if (!USES_GUC (dev_priv)) +if (!intel_uc_uses_guc (uc))return -ENODEV ; - *val =intel_guc_log_get_level (&dev_priv->gt.uc.guc.log); + *val =intel_guc_log_get_level (&uc->guc.log);return 0 ; }
@@ -1675,11 +1677,12 @@ static int i915_guc_log_level_get(void *data, u64 *val)static int i915_guc_log_level_set (void *data,u64 val) {struct drm_i915_private *dev_priv = data; +struct intel_uc *uc = &dev_priv->gt.uc; -if (!USES_GUC (dev_priv)) +if (!intel_uc_uses_guc (uc))return -ENODEV ; -return intel_guc_log_set_level (&dev_priv->gt.uc.guc.log, val); +return intel_guc_log_set_level (&uc->guc.log, val); } DEFINE_SIMPLE_ATTRIBUTE(i915_guc_log_level_fops,
drivers/gpu/drm/i915/i915_drv.h +0 -1
@@ -1694,7 +1694,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_GT_UC (dev_priv) (INTEL_INFO(dev_priv)->has_gt_uc)/* Having GuC is not the same as using GuC */ -#define USES_GUC (dev_priv) intel_uc_uses_guc(&(dev_priv)->gt.uc)#define USES_GUC_SUBMISSION (dev_priv) intel_uc_uses_guc_submission(&(dev_priv)->gt.uc)#define HAS_POOLED_EU (dev_priv) (INTEL_INFO(dev_priv)->has_pooled_eu)
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/10 drm/i915/guc: Kill USES_GUC_SUBMISSION macro
In reply to Daniele Ceraolo Spuriouse intel_uc_uses_guc_submission() directly instead, to be consistent in the way we check what we want to do with the GuC.
v2: do not go through ctx->vm->gt, use i915->gt instead
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 12 ++++++------ drivers/gpu/drm/i915/gt/selftest_reset.c | 2 +- drivers/gpu/drm/i915/gvt/scheduler.c | 3 ++- drivers/gpu/drm/i915/i915_debugfs.c | 6 +++--- drivers/gpu/drm/i915/i915_drv.h | 3 --- drivers/gpu/drm/i915/intel_gvt.c | 2 +- 8 files changed, 15 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +1 -1
@@ -1390,7 +1390,7 @@ set_engines__load_balance(struct i915_user_extension __user *base, void *data)if (!HAS_EXECLISTS (i915))return -ENODEV ; -if (USES_GUC_SUBMISSION (i915)) +if (intel_uc_uses_guc_submission (&i915->gt.uc))return -ENODEV ;/* not implement yet */ if (get_user (idx, &ext->engine_index))
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +1 -1
@@ -1640,7 +1640,7 @@ static int igt_reset_engines_atomic(void *arg)if (!intel_has_reset_engine (gt))return 0 ; -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;igt_global_reset_lock (gt);
drivers/gpu/drm/i915/gt/selftest_lrc.c +6 -6
@@ -2109,7 +2109,7 @@ static int live_suppress_self_preempt(void *arg)if (!HAS_LOGICAL_RING_PREEMPTION (gt->i915))return 0 ; -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;/* presume black blox */ if (intel_vgpu_active (gt->i915))
@@ -3224,7 +3224,7 @@ static int live_virtual_engine(void *arg)unsigned int class, inst;int err; -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;for_each_engine (engine, gt, id) {
@@ -3357,7 +3357,7 @@ static int live_virtual_mask(void *arg)unsigned int class, inst;int err; -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;for (class =0 ; class <=MAX_ENGINE_CLASS ; class++) {
@@ -3499,7 +3499,7 @@ static int live_virtual_preserved(void *arg)* are preserved. */ -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;/* As we use CS_GPR we cannot run before they existed on all engines. */
@@ -3729,7 +3729,7 @@ static int live_virtual_bond(void *arg)unsigned int class, inst;int err; -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;for (class =0 ; class <=MAX_ENGINE_CLASS ; class++) {
@@ -3890,7 +3890,7 @@ static int live_virtual_reset(void *arg)* forgotten. */ -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;if (!intel_has_reset_engine (gt))
drivers/gpu/drm/i915/gt/selftest_reset.c +1 -1
@@ -115,7 +115,7 @@ static int igt_atomic_engine_reset(void *arg)if (!intel_has_reset_engine (gt))return 0 ; -if (USES_GUC_SUBMISSION (gt->i915)) +if (intel_uc_uses_guc_submission (>->uc))return 0 ;intel_gt_pm_get (gt);
drivers/gpu/drm/i915/gvt/scheduler.c +2 -1
@@ -1246,7 +1246,8 @@ int intel_vgpu_setup_submission(struct intel_vgpu *vgpu) ce->vm =i915_vm_get (&ppgtt->vm);intel_context_set_single_submission (ce); -if (!USES_GUC_SUBMISSION (i915)) {/* Max ring buffer size */ +/* Max ring buffer size */ +if (!intel_uc_uses_guc_submission (&engine->gt->uc)) {const unsigned int ring_size =512 *SZ_4K ; ce->ring =__intel_context_ring_size (ring_size);
drivers/gpu/drm/i915/i915_debugfs.c +3 -3
@@ -1573,11 +1573,11 @@ static int i915_guc_info(struct seq_file *m, void *data)static int i915_guc_stage_pool (struct seq_file *m,void *data) {struct drm_i915_private *dev_priv =node_to_i915 (m->private); -const struct intel_guc *guc = &dev_priv->gt.uc.guc; -struct guc_stage_desc *desc = guc->stage_desc_pool_vaddr; +struct intel_uc *uc = &dev_priv->gt.uc; +struct guc_stage_desc *desc = uc->guc.stage_desc_pool_vaddr;int index; -if (!USES_GUC_SUBMISSION (dev_priv)) +if (!intel_uc_uses_guc_submission (uc))return -ENODEV ;for (index =0 ; index <GUC_MAX_STAGE_DESCRIPTORS ; index++, desc++) {
drivers/gpu/drm/i915/i915_drv.h +0 -3
@@ -1693,9 +1693,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_GT_UC (dev_priv) (INTEL_INFO(dev_priv)->has_gt_uc) -/* Having GuC is not the same as using GuC */ -#define USES_GUC_SUBMISSION (dev_priv) intel_uc_uses_guc_submission(&(dev_priv)->gt.uc) -#define HAS_POOLED_EU (dev_priv) (INTEL_INFO(dev_priv)->has_pooled_eu)#define HAS_GLOBAL_MOCS_REGISTERS (dev_priv) (INTEL_INFO(dev_priv)->has_global_mocs)
drivers/gpu/drm/i915/intel_gvt.c +1 -1
@@ -105,7 +105,7 @@ int intel_gvt_init(struct drm_i915_private *dev_priv)return 0 ; } -if (USES_GUC_SUBMISSION (dev_priv)) { +if (intel_uc_uses_guc_submission (&dev_priv->gt.uc)) {drm_err (&dev_priv->drm,"i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission\n" );return -EIO ;
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/10 drm/i915/uc: Update the FW status on injected fetch error
In reply to Daniele Ceraolo SpurioIn a follow up patch we will rely on the fact that the status always moves away from "SELECTED" after the fetch is attempted to decide what to do with the GuC.
v2: Split this change to its own patch (Michal)
--- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c +1 -1
@@ -279,7 +279,7 @@ int intel_uc_fw_fetch(struct intel_uc_fw *uc_fw) err =i915_inject_probe_error (i915, -ENXIO );if (err) -return err; + goto fail;__force_fw_fetch_failures (uc_fw, -EINVAL );__force_fw_fetch_failures (uc_fw, -ESTALE );
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/10 drm/i915/uc: autogenerate uC checker functions
In reply to Daniele Ceraolo SpurioWe want to map uC-level checks to GuC/HuC-level ones. The mapping from the uC state to the GuC/HuC one follows the same pattern for all the functions:
uc_xxx_guc() -> guc_is_yyy()
So we can easily use a macro to autogenerate the functions via macros by passing in the 2 mapped states.
v2: Split this change to its own patch (Michal)
--- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 30 ++++++++++++--------------- 1 file changed, 13 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_uc.h +13 -17
@@ -40,15 +40,21 @@ void intel_uc_runtime_suspend(struct intel_uc *uc);int intel_uc_resume (struct intel_uc *uc);int intel_uc_runtime_resume (struct intel_uc *uc); -static inline bool intel_uc_supports_guc (struct intel_uc *uc) -{ -return intel_guc_is_supported (&uc->guc); +#define __uc_state_checker (x, state, required) \ +static inline bool intel_uc_##state##_##x(struct intel_uc *uc) \ +{ \ + return intel_##x##_is_##required(&uc->x); \ } -static inline bool intel_uc_uses_guc (struct intel_uc *uc) -{ -return intel_guc_is_enabled (&uc->guc); -} +#define uc_state_checkers (x) \ +__uc_state_checker(x, supports, supported) \ +__uc_state_checker(x, uses, enabled) + +uc_state_checkers (guc); +uc_state_checkers (huc); + +#undef uc_state_checkers +#undef __uc_state_checkerstatic inline bool intel_uc_supports_guc_submission (struct intel_uc *uc) {
@@ -60,16 +66,6 @@ static inline bool intel_uc_uses_guc_submission(struct intel_uc *uc)return intel_guc_is_submission_supported (&uc->guc); } -static inline bool intel_uc_supports_huc (struct intel_uc *uc) -{ -return intel_uc_supports_guc (uc); -} - -static inline bool intel_uc_uses_huc (struct intel_uc *uc) -{ -return intel_huc_is_enabled (&uc->huc); -} -#define intel_uc_ops_function (_NAME, _OPS, _TYPE, _RET) \ static inline _TYPE intel_uc_##_NAME(struct intel_uc *uc) \ { \
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/10 drm/i915/uc: Improve tracking of uC init status
In reply to Daniele Ceraolo SpurioTo be able to setup GuC submission functions during engine init we need to commit to using GuC as soon as possible.
Currently, the only thing that can stop us from using the microcontrollers once we've fetched the blobs is a fundamental error (e.g. OOM); given that if we hit such an error we can't really fall-back to anything, we can "officialize" the FW fetching completion as the moment at which we're committing to using GuC.
To better differentiate this case, the uses_guc check, which indicates that GuC is supported and was selected in modparam, is renamed to wants_guc and a new uses_guc is introduced to represent the case were we're committed to using the GuC. Note that uses_guc does still not imply that the blob is actually loaded on the HW (is_running is the check for that). Also, since we need to have attempted the fetch for the result of uses_guc to be meaningful, we need to make sure we've moved away from INTEL_UC_FIRMWARE_SELECTED.
All the GuC changes have been mirrored on the HuC for coherency.
v2: split fetch return changes and new macros to their own patches,
support HuC only if GuC is wanted, improve "used" state description (Michal)
v3: s/wants_huc/uses_huc in uc_init_wopcm
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 8 +++++++- drivers/gpu/drm/i915/gt/uc/intel_huc.h | 8 +++++++- drivers/gpu/drm/i915/gt/uc/intel_huc_fw.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 21 +++++++++++--------- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 24 ++++++++++++++++++++++- 5 files changed, 50 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.h +7 -1
@@ -143,11 +143,17 @@ static inline bool intel_guc_is_supported(struct intel_guc *guc)return intel_uc_fw_is_supported (&guc->fw); } -static inline bool intel_guc_is_enabled (struct intel_guc *guc) +static inline bool intel_guc_is_wanted (struct intel_guc *guc) {return intel_uc_fw_is_enabled (&guc->fw); } +static inline bool intel_guc_is_used (struct intel_guc *guc) +{ +GEM_BUG_ON (__intel_uc_fw_status (&guc->fw) ==INTEL_UC_FIRMWARE_SELECTED ); +return intel_uc_fw_is_available (&guc->fw); +} +static inline bool intel_guc_is_fw_running (struct intel_guc *guc) {return intel_uc_fw_is_running (&guc->fw);
drivers/gpu/drm/i915/gt/uc/intel_huc.h +7 -1
@@ -41,11 +41,17 @@ static inline bool intel_huc_is_supported(struct intel_huc *huc)return intel_uc_fw_is_supported (&huc->fw); } -static inline bool intel_huc_is_enabled (struct intel_huc *huc) +static inline bool intel_huc_is_wanted (struct intel_huc *huc) {return intel_uc_fw_is_enabled (&huc->fw); } +static inline bool intel_huc_is_used (struct intel_huc *huc) +{ +GEM_BUG_ON (__intel_uc_fw_status (&huc->fw) ==INTEL_UC_FIRMWARE_SELECTED ); +return intel_uc_fw_is_available (&huc->fw); +} +static inline bool intel_huc_is_authenticated (struct intel_huc *huc) {return intel_uc_fw_is_running (&huc->fw);
drivers/gpu/drm/i915/gt/uc/intel_huc_fw.c +1 -1
@@ -20,7 +20,7 @@ void intel_huc_fw_init_early(struct intel_huc *huc)struct drm_i915_private *i915 = gt->i915;intel_uc_fw_init_early (&huc->fw,INTEL_UC_FW_TYPE_HUC , -intel_uc_uses_guc (uc), +intel_uc_wants_guc (uc),INTEL_INFO (i915)->platform,INTEL_REVID (i915)); }
drivers/gpu/drm/i915/gt/uc/intel_uc.c +12 -9
@@ -48,17 +48,17 @@ static void __confirm_options(struct intel_uc *uc)DRM_DEV_DEBUG_DRIVER (i915->drm.dev,"enable_guc=%d (guc:%s submission:%s huc:%s)\n" , i915_modparams.enable_guc, -yesno (intel_uc_uses_guc (uc)), +yesno (intel_uc_wants_guc (uc)),yesno (intel_uc_uses_guc_submission (uc)), -yesno (intel_uc_uses_huc (uc))); +yesno (intel_uc_wants_huc (uc)));if (i915_modparams.enable_guc ==-1 )return ;if (i915_modparams.enable_guc ==0 ) { -GEM_BUG_ON (intel_uc_uses_guc (uc)); +GEM_BUG_ON (intel_uc_wants_guc (uc));GEM_BUG_ON (intel_uc_uses_guc_submission (uc)); -GEM_BUG_ON (intel_uc_uses_huc (uc)); +GEM_BUG_ON (intel_uc_wants_huc (uc));return ; }
@@ -93,7 +93,7 @@ void intel_uc_init_early(struct intel_uc *uc)__confirm_options (uc); -if (intel_uc_uses_guc (uc)) +if (intel_uc_wants_guc (uc)) uc->ops = &uc_ops_on;else uc->ops = &uc_ops_off;
@@ -257,13 +257,13 @@ static void __uc_fetch_firmwares(struct intel_uc *uc) {int err; -GEM_BUG_ON (!intel_uc_uses_guc (uc)); +GEM_BUG_ON (!intel_uc_wants_guc (uc)); err =intel_uc_fw_fetch (&uc->guc.fw);if (err)return ; -if (intel_uc_uses_huc (uc)) +if (intel_uc_wants_huc (uc))intel_uc_fw_fetch (&uc->huc.fw); }
@@ -279,7 +279,10 @@ static void __uc_init(struct intel_uc *uc)struct intel_huc *huc = &uc->huc;int ret; -GEM_BUG_ON (!intel_uc_uses_guc (uc)); +GEM_BUG_ON (!intel_uc_wants_guc (uc)); + +if (!intel_uc_uses_guc (uc)) +return ;/* XXX: GuC submission is unavailable for now */ GEM_BUG_ON (intel_uc_supports_guc_submission (uc));
@@ -402,7 +405,7 @@ static int __uc_init_hw(struct intel_uc *uc)int ret, attempts;GEM_BUG_ON (!intel_uc_supports_guc (uc)); -GEM_BUG_ON (!intel_uc_uses_guc (uc)); +GEM_BUG_ON (!intel_uc_wants_guc (uc));if (!intel_uc_fw_is_available (&guc->fw)) { ret = __uc_check_hw(uc) ||
drivers/gpu/drm/i915/gt/uc/intel_uc.h +23 -1
@@ -40,6 +40,27 @@ void intel_uc_runtime_suspend(struct intel_uc *uc);int intel_uc_resume (struct intel_uc *uc);int intel_uc_runtime_resume (struct intel_uc *uc); +/* +* We need to know as early as possible if we're going to use GuC or not to +* take the correct setup paths. Additionally, once we've started loading the +* GuC, it is unsafe to keep executing without it because some parts of the HW, +* a subset of which is not cleaned on GT reset, will start expecting the GuC FW +* to be running. +* To solve both these requirements, we commit to using the microcontrollers if +* the relevant modparam is set and the blobs are found on the system. At this +* stage, the only thing that can stop us from attempting to load the blobs on +* the HW and use them is a fundamental issue (e.g. no memory for our +* structures); if we hit such a problem during driver load we're broken even +* without GuC, so there is no point in trying to fall back. +* +* Given the above, we can be in one of 4 states, with the last one implying +* we're committed to using the microcontroller: +* - Not supported: not available in HW and/or firmware not defined. +* - Supported: available in HW and firmware defined. +* - Wanted: supported + enabled in modparam. +* - In use: wanted + firmware found on the system and successfully fetched. +*/ +#define __uc_state_checker (x, state, required) \ static inline bool intel_uc_##state##_##x(struct intel_uc *uc) \ { \
@@ -48,7 +69,8 @@ static inline bool intel_uc_##state##_##x(struct intel_uc *uc) \#define uc_state_checkers (x) \ __uc_state_checker(x, supports, supported) \ -__uc_state_checker(x, uses, enabled) +__uc_state_checker(x, wants, wanted) \ +__uc_state_checker(x, uses, used)uc_state_checkers (guc);uc_state_checkers (huc);
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/10 drm/i915/guc: Apply new uC status tracking to GuC submission as well
In reply to Daniele Ceraolo SpurioTo be able to differentiate the before and after of our commitment to GuC submission, which will be used in follow-up patches to early set-up the submission structures.
v2: move functions to guc_submission.h (Michal)
--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 12 ++++---- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 7 +---- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 9 ++---- .../gpu/drm/i915/gt/uc/intel_guc_submission.h | 19 +++++++++++- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 14 ++++----- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 30 +++++++------------ drivers/gpu/drm/i915/gvt/scheduler.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 6 ---- drivers/gpu/drm/i915/intel_gvt.c | 2 +- 9 files changed, 48 insertions(+), 53 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +6 -6
@@ -207,7 +207,7 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc) {u32 flags =0 ; -if (!intel_guc_is_submission_supported (guc)) +if (!intel_guc_submission_is_used (guc)) flags |=GUC_CTL_DISABLE_SCHEDULER ;return flags;
@@ -217,7 +217,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc) {u32 flags =0 ; -if (intel_guc_is_submission_supported (guc)) { +if (intel_guc_submission_is_used (guc)) {u32 ctxnum, base; base =intel_guc_ggtt_offset (guc, guc->stage_desc_pool);
@@ -348,7 +348,7 @@ int intel_guc_init(struct intel_guc *guc)if (ret) goto err_ads; -if (intel_guc_is_submission_supported (guc)) { +if (intel_guc_submission_is_used (guc)) {/* * This is stuff we need to have available at fw load time * if we are planning to enable submission later
@@ -389,7 +389,7 @@ void intel_guc_fini(struct intel_guc *guc)i915_ggtt_disable_guc (gt->ggtt); -if (intel_guc_is_submission_supported (guc)) +if (intel_guc_submission_is_used (guc))intel_guc_submission_fini (guc);intel_guc_ct_fini (&guc->ct);
@@ -544,7 +544,7 @@ int intel_guc_suspend(struct intel_guc *guc)* If GuC communication is enabled but submission is not supported, * we do not need to suspend the GuC. */ -if (!intel_guc_submission_is_enabled (guc)) +if (!intel_guc_submission_is_used (guc) || !intel_guc_is_ready (guc))return 0 ;/*
@@ -609,7 +609,7 @@ int intel_guc_resume(struct intel_guc *guc)* we do not need to resume the GuC but we do need to enable the * GuC communication on resume (above). */ -if (!intel_guc_submission_is_enabled (guc)) +if (!intel_guc_submission_is_used (guc) || !intel_guc_is_ready (guc))return 0 ;return intel_guc_send (guc, action,ARRAY_SIZE (action));
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -6
@@ -39,7 +39,7 @@ struct intel_guc {void (*disable)(struct intel_guc *guc); } interrupts; -bool submission_supported; +bool submission_selected;struct i915_vma *ads_vma;struct __guc_ads_blob *ads_blob;
@@ -173,11 +173,6 @@ static inline int intel_guc_sanitize(struct intel_guc *guc)return 0 ; } -static inline bool intel_guc_is_submission_supported (struct intel_guc *guc) -{ -return guc->submission_supported; -} -static inline void intel_guc_enable_msg (struct intel_guc *guc,u32 mask) {spin_lock_irq (&guc->irq_lock);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +3 -6
@@ -660,12 +660,9 @@ void intel_guc_submission_disable(struct intel_guc *guc)guc_proc_desc_fini (guc); } -static bool __guc_submission_support (struct intel_guc *guc) +static bool __guc_submission_selected (struct intel_guc *guc) { -/* XXX: GuC submission is unavailable for now */ -return false; - -if (!intel_guc_is_supported (guc)) +if (!intel_guc_submission_is_supported (guc))return false;return i915_modparams.enable_guc &ENABLE_GUC_SUBMISSION ;
@@ -673,7 +670,7 @@ static bool __guc_submission_support(struct intel_guc *guc)void intel_guc_submission_init_early (struct intel_guc *guc) { - guc->submission_supported =__guc_submission_support (guc); + guc->submission_selected =__guc_submission_selected (guc); }bool intel_engine_in_guc_submission_mode (const struct intel_engine_cs *engine)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h +18 -1
@@ -8,7 +8,8 @@#include <linux/types.h> -struct intel_guc ; +#include "intel_guc.h" +struct intel_engine_cs ;void intel_guc_submission_init_early (struct intel_guc *guc);
@@ -20,4 +21,20 @@ int intel_guc_preempt_work_create(struct intel_guc *guc);void intel_guc_preempt_work_destroy (struct intel_guc *guc);bool intel_engine_in_guc_submission_mode (const struct intel_engine_cs *engine); +static inline bool intel_guc_submission_is_supported (struct intel_guc *guc) +{ +/* XXX: GuC submission is unavailable for now */ +return false; +} + +static inline bool intel_guc_submission_is_wanted (struct intel_guc *guc) +{ +return guc->submission_selected; +} + +static inline bool intel_guc_submission_is_used (struct intel_guc *guc) +{ +return intel_guc_is_used (guc) &&intel_guc_submission_is_wanted (guc); +} +#endif
drivers/gpu/drm/i915/gt/uc/intel_uc.c +7 -7
@@ -49,7 +49,7 @@ static void __confirm_options(struct intel_uc *uc)"enable_guc=%d (guc:%s submission:%s huc:%s)\n" , i915_modparams.enable_guc,yesno (intel_uc_wants_guc (uc)), -yesno (intel_uc_uses_guc_submission (uc)), +yesno (intel_uc_wants_guc_submission (uc)), yesno(intel_uc_wants_huc(uc)));if (i915_modparams.enable_guc ==-1 )
@@ -57,7 +57,7 @@ static void __confirm_options(struct intel_uc *uc)if (i915_modparams.enable_guc ==0 ) {GEM_BUG_ON (intel_uc_wants_guc (uc)); -GEM_BUG_ON (intel_uc_uses_guc_submission (uc)); +GEM_BUG_ON (intel_uc_wants_guc_submission (uc));GEM_BUG_ON (intel_uc_wants_huc (uc));return ; }
@@ -285,7 +285,7 @@ static void __uc_init(struct intel_uc *uc)return ;/* XXX: GuC submission is unavailable for now */ -GEM_BUG_ON (intel_uc_supports_guc_submission (uc)); +GEM_BUG_ON (intel_uc_uses_guc_submission (uc)); ret =intel_guc_init (guc);if (ret) {
@@ -410,7 +410,7 @@ static int __uc_init_hw(struct intel_uc *uc)if (!intel_uc_fw_is_available (&guc->fw)) { ret =__uc_check_hw (uc) ||intel_uc_fw_is_overridden (&guc->fw) || -intel_uc_supports_guc_submission (uc) ? +intel_uc_wants_guc_submission (uc) ?intel_uc_fw_status_to_error (guc->fw.status) :0 ; goto err_out; }
@@ -462,14 +462,14 @@ static int __uc_init_hw(struct intel_uc *uc)if (ret) goto err_communication; -if (intel_uc_supports_guc_submission (uc)) +if (intel_uc_uses_guc_submission (uc))intel_guc_submission_enable (guc);dev_info (i915->drm.dev,"%s firmware %s version %u.%u %s:%s\n" ,intel_uc_fw_type_repr (INTEL_UC_FW_TYPE_GUC ), guc->fw.path, guc->fw.major_ver_found, guc->fw.minor_ver_found,"submission" , -enableddisabled (intel_uc_supports_guc_submission (uc))); +enableddisabled (intel_uc_uses_guc_submission (uc)));if (intel_uc_uses_huc (uc)) { dev_info(i915->drm.dev, "%s firmware %s version %u.%u %s:%s\n",
@@ -511,7 +511,7 @@ static void __uc_fini_hw(struct intel_uc *uc)if (!intel_guc_is_fw_running (guc))return ; -if (intel_uc_supports_guc_submission (uc)) +if (intel_uc_uses_guc_submission (uc))intel_guc_submission_disable (guc);if (guc_communication_enabled (guc))
drivers/gpu/drm/i915/gt/uc/intel_uc.h +11 -19
@@ -7,6 +7,7 @@#define _INTEL_UC_H_#include "intel_guc.h" +#include "intel_guc_submission.h" #include "intel_huc.h" #include "i915_params.h"
@@ -61,33 +62,24 @@ int intel_uc_runtime_resume(struct intel_uc *uc);* - In use: wanted + firmware found on the system and successfully fetched. */ -#define __uc_state_checker (x, state, required) \ -static inline bool intel_uc_##state##_##x(struct intel_uc *uc) \ +#define __uc_state_checker (x, func, state, required) \ +static inline bool intel_uc_##state##_##func(struct intel_uc *uc) \ { \ - return intel_##x##_is_##required(&uc->x); \ + return intel_##func##_is_##required(&uc->x); \ } -#define uc_state_checkers (x) \ -__uc_state_checker(x, supports, supported) \ -__uc_state_checker(x, wants, wanted) \ -__uc_state_checker(x, uses, used) +#define uc_state_checkers (x, func) \ +__uc_state_checker(x, func, supports, supported) \ +__uc_state_checker(x, func, wants, wanted) \ +__uc_state_checker(x, func, uses, used) -uc_state_checkers (guc); -uc_state_checkers (huc); +uc_state_checkers (guc, guc); +uc_state_checkers (huc, huc); +uc_state_checkers (guc, guc_submission);#undef uc_state_checkers#undef __uc_state_checker -static inline bool intel_uc_supports_guc_submission (struct intel_uc *uc) -{ -return intel_guc_is_submission_supported (&uc->guc); -} - -static inline bool intel_uc_uses_guc_submission (struct intel_uc *uc) -{ -return intel_guc_is_submission_supported (&uc->guc); -} -#define intel_uc_ops_function (_NAME, _OPS, _TYPE, _RET) \ static inline _TYPE intel_uc_##_NAME(struct intel_uc *uc) \ { \
drivers/gpu/drm/i915/gvt/scheduler.c +1 -1
@@ -1247,7 +1247,7 @@ int intel_vgpu_setup_submission(struct intel_vgpu *vgpu)intel_context_set_single_submission (ce);/* Max ring buffer size */ -if (!intel_uc_uses_guc_submission (&engine->gt->uc)) { +if (!intel_uc_wants_guc_submission (&engine->gt->uc)) {const unsigned int ring_size =512 *SZ_4K ; ce->ring =__intel_context_ring_size (ring_size);
drivers/gpu/drm/i915/i915_drv.h +0 -6
@@ -2001,10 +2001,4 @@ i915_coherent_map_type(struct drm_i915_private *i915) return HAS_LLC(i915) ? I915_MAP_WB : I915_MAP_WC; } -static inline bool intel_guc_submission_is_enabled (struct intel_guc *guc) -{ -return intel_guc_is_submission_supported (guc) && -intel_guc_is_ready (guc); -} -#endif
drivers/gpu/drm/i915/intel_gvt.c +1 -1
@@ -105,7 +105,7 @@ int intel_gvt_init(struct drm_i915_private *dev_priv)return 0 ; } -if (intel_uc_uses_guc_submission (&dev_priv->gt.uc)) { +if (intel_uc_wants_guc_submission (&dev_priv->gt.uc)) {drm_err (&dev_priv->drm,"i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission\n" );return -EIO ;
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 8/10 drm/i915/uc: Abort early on uc_init failure
In reply to Daniele Ceraolo SpurioNow that we can differentiate wants vs uses GuC/HuC, intel_uc_init is restricted to running only if we have successfully fetched the required blob(s) and are committed to using the microcontroller(s). The only remaining thing that can go wrong in uc_init is the allocation of GuC/HuC related objects; if we get such a failure better to bail out immediately instead of wedging later, like we do for e.g. intel_engines_init, since without objects we can't use the HW, including not being able to attempt the firmware load.
While at it, remove the unneeded fw_cleanup call (this is handled outside of gt_init) and add a probe failure injection point for testing. Also, update the logs for <g/h>uc_init failures to probe_failure() since they will cause the driver load to fail.
--- drivers/gpu/drm/i915/gt/intel_gt.c | 4 +++- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 24 +++++++++++++++++------- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 4 ++-- 5 files changed, 24 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt.c +3 -1
@@ -592,7 +592,9 @@ int intel_gt_init(struct intel_gt *gt)if (err) goto err_engines; -intel_uc_init (>->uc); + err =intel_uc_init (>->uc); +if (err) + goto err_engines; err =intel_gt_resume (gt);if (err)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +1 -1
@@ -376,7 +376,7 @@ int intel_guc_init(struct intel_guc *guc)intel_uc_fw_fini (&guc->fw); err_fetch:intel_uc_fw_cleanup_fetch (&guc->fw); -DRM_DEV_DEBUG_DRIVER (gt->i915->drm.dev,"failed with %d\n" , ret); +i915_probe_error (gt->i915,"failed with %d\n" , ret);return ret; }
drivers/gpu/drm/i915/gt/uc/intel_huc.c +1 -1
@@ -127,7 +127,7 @@ int intel_huc_init(struct intel_huc *huc)intel_uc_fw_fini (&huc->fw); out:intel_uc_fw_cleanup_fetch (&huc->fw); -DRM_DEV_DEBUG_DRIVER (i915->drm.dev,"failed with %d\n" , err); +i915_probe_error (i915,"failed with %d\n" , err);return err; }
drivers/gpu/drm/i915/gt/uc/intel_uc.c +17 -7
@@ -273,7 +273,7 @@ static void __uc_cleanup_firmwares(struct intel_uc *uc)intel_uc_fw_cleanup_fetch (&uc->guc.fw); } -static void __uc_init (struct intel_uc *uc) +static int __uc_init (struct intel_uc *uc) {struct intel_guc *guc = &uc->guc;struct intel_huc *huc = &uc->huc;
@@ -282,19 +282,29 @@ static void __uc_init(struct intel_uc *uc)GEM_BUG_ON (!intel_uc_wants_guc (uc));if (!intel_uc_uses_guc (uc)) -return ; +return 0 ; + +if (i915_inject_probe_failure (uc_to_gt (uc)->i915)) +return -ENOMEM ;/* XXX: GuC submission is unavailable for now */ GEM_BUG_ON (intel_uc_uses_guc_submission (uc)); ret =intel_guc_init (guc); -if (ret) { -intel_uc_fw_cleanup_fetch (&huc->fw); -return ; +if (ret) +return ret; + +if (intel_uc_uses_huc (uc)) { + ret =intel_huc_init (huc); +if (ret) + goto out_guc; } -if (intel_uc_uses_huc (uc)) -intel_huc_init (huc); +return 0 ; + +out_guc: +intel_guc_fini (guc); +return ret; }static void __uc_fini (struct intel_uc *uc)
drivers/gpu/drm/i915/gt/uc/intel_uc.h +2 -2
@@ -17,7 +17,7 @@ struct intel_uc_ops {int (*sanitize)(struct intel_uc *uc);void (*init_fw)(struct intel_uc *uc);void (*fini_fw)(struct intel_uc *uc); -void (*init)(struct intel_uc *uc); +int (*init)(struct intel_uc *uc);void (*fini)(struct intel_uc *uc);int (*init_hw)(struct intel_uc *uc);void (*fini_hw)(struct intel_uc *uc);
@@ -90,7 +90,7 @@ static inline _TYPE intel_uc_##_NAME(struct intel_uc *uc) \intel_uc_ops_function (sanitize, sanitize, int,0 ); intel_uc_ops_function(fetch_firmwares, init_fw, void, ); intel_uc_ops_function(cleanup_firmwares, fini_fw, void, ); -intel_uc_ops_function(init, init, void, ); +intel_uc_ops_function (init, init, int,0 ); intel_uc_ops_function(fini, fini, void, );intel_uc_ops_function (init_hw, init_hw, int,0 ); intel_uc_ops_function(fini_hw, fini_hw, void, );
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/10 drm/i915/uc: consolidate firmware cleanup
In reply to Daniele Ceraolo SpurioWe are quite trigger happy in cleaning up the firmware blobs, as we do so from several error/fini paths in GuC/HuC/uC code. We do have the __uc_cleanup_firmwares cleanup function, which unwinds __uc_fetch_firmwares and is already called both from the error path of gem_init and from gem_driver_release, so let's stop cleaning up from all the other paths.
The fact that we're not cleaning the firmware immediately means that we can't consider firmware availability as an indication of initialization success. A "LOADABLE" status has been added to indicate that the initialization was successful, to be used to selectively load HuC only if HuC init has completed (HuC init failure is not considered a fatal error).
v2: s/ready_to_load/loadable (Michal), only run guc/huc_fini if the
fw is in loadable state
--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 12 +++++------- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 5 +++-- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 7 +++++-- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h | 18 +++++++++++++++--- 5 files changed, 29 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +5 -7
@@ -333,7 +333,7 @@ int intel_guc_init(struct intel_guc *guc) ret =intel_uc_fw_init (&guc->fw);if (ret) - goto err_fetch; + goto out; ret =intel_guc_log_create (&guc->log);if (ret)
@@ -364,6 +364,8 @@ int intel_guc_init(struct intel_guc *guc)/* We need to notify the guc whenever we change the GGTT */ i915_ggtt_enable_guc (gt->ggtt); +intel_uc_fw_change_status (&guc->fw,INTEL_UC_FIRMWARE_LOADABLE ); +return 0 ; err_ct:
@@ -374,8 +376,7 @@ int intel_guc_init(struct intel_guc *guc)intel_guc_log_destroy (&guc->log); err_fw:intel_uc_fw_fini (&guc->fw); -err_fetch: -intel_uc_fw_cleanup_fetch (&guc->fw); +out:i915_probe_error (gt->i915,"failed with %d\n" , ret);return ret; }
@@ -384,7 +385,7 @@ void intel_guc_fini(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -if (!intel_uc_fw_is_available (&guc->fw)) +if (!intel_uc_fw_is_loadable (&guc->fw))return ;i915_ggtt_disable_guc (gt->ggtt);
@@ -397,9 +398,6 @@ void intel_guc_fini(struct intel_guc *guc)intel_guc_ads_destroy (guc);intel_guc_log_destroy (&guc->log);intel_uc_fw_fini (&guc->fw); -intel_uc_fw_cleanup_fetch (&guc->fw); - -intel_uc_fw_change_status (&guc->fw,INTEL_UC_FIRMWARE_DISABLED ); }/*
drivers/gpu/drm/i915/gt/uc/intel_huc.c +3 -2
@@ -121,19 +121,20 @@ int intel_huc_init(struct intel_huc *huc)if (err) goto out_fini; +intel_uc_fw_change_status (&huc->fw,INTEL_UC_FIRMWARE_LOADABLE ); +return 0 ; out_fini:intel_uc_fw_fini (&huc->fw); out: -intel_uc_fw_cleanup_fetch (&huc->fw);i915_probe_error (i915,"failed with %d\n" , err);return err; }void intel_huc_fini (struct intel_huc *huc) { -if (!intel_uc_fw_is_available (&huc->fw)) +if (!intel_uc_fw_is_loadable (&huc->fw))return ;intel_huc_rsa_data_destroy (huc);
drivers/gpu/drm/i915/gt/uc/intel_uc.c +1 -1
@@ -417,7 +417,7 @@ static int __uc_init_hw(struct intel_uc *uc)GEM_BUG_ON (!intel_uc_supports_guc (uc));GEM_BUG_ON (!intel_uc_wants_guc (uc)); -if (!intel_uc_fw_is_available (&guc->fw)) { +if (!intel_uc_fw_is_loadable (&guc->fw)) { ret =__uc_check_hw (uc) ||intel_uc_fw_is_overridden (&guc->fw) || intel_uc_wants_guc_submission(uc) ?
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c +5 -2
@@ -501,7 +501,7 @@ int intel_uc_fw_upload(struct intel_uc_fw *uc_fw, u32 dst_offset, u32 dma_flags)if (err)return err; -if (!intel_uc_fw_is_available (uc_fw)) +if (!intel_uc_fw_is_loadable (uc_fw))return -ENOEXEC ;/* Call custom loader */
@@ -544,7 +544,10 @@ int intel_uc_fw_init(struct intel_uc_fw *uc_fw)void intel_uc_fw_fini (struct intel_uc_fw *uc_fw) { -intel_uc_fw_cleanup_fetch (uc_fw); +if (i915_gem_object_has_pinned_pages (uc_fw->obj)) +i915_gem_object_unpin_pages (uc_fw->obj); + +intel_uc_fw_change_status (uc_fw,INTEL_UC_FIRMWARE_AVAILABLE ); }/**
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h +15 -3
@@ -29,8 +29,11 @@ struct intel_gt;* | | SELECTED | * +------------+- / | \ -+ * | | MISSING <--/ | \--> ERROR | -* | fetch | | | -* | | /------> AVAILABLE <---<-----------\ | +* | fetch | V | +* | | AVAILABLE | +* +------------+- | -+ +* | init | V | +* | | /------> LOADABLE <----<-----------\ | * +------------+- \ / \ \ \ -+ * | | FAIL <--< \--> TRANSFERRED \ | * | upload | \ / \ / |
@@ -46,6 +49,7 @@ enum intel_uc_fw_status {INTEL_UC_FIRMWARE_MISSING ,/* blob not found on the system */ INTEL_UC_FIRMWARE_ERROR ,/* invalid format or version */ INTEL_UC_FIRMWARE_AVAILABLE ,/* blob found and copied in mem */ +INTEL_UC_FIRMWARE_LOADABLE ,/* all fw-required objects are ready */ INTEL_UC_FIRMWARE_FAIL ,/* failed to xfer or init/auth the fw */ INTEL_UC_FIRMWARE_TRANSFERRED ,/* dma xfer done */ INTEL_UC_FIRMWARE_RUNNING /* init/auth done */
@@ -115,6 +119,8 @@ const char *intel_uc_fw_status_repr(enum intel_uc_fw_status status)return "ERROR" ;case INTEL_UC_FIRMWARE_AVAILABLE :return "AVAILABLE" ; +case INTEL_UC_FIRMWARE_LOADABLE : +return "LOADABLE" ;case INTEL_UC_FIRMWARE_FAIL :return "FAIL" ;case INTEL_UC_FIRMWARE_TRANSFERRED :
@@ -143,6 +149,7 @@ static inline int intel_uc_fw_status_to_error(enum intel_uc_fw_status status)case INTEL_UC_FIRMWARE_SELECTED :return -ESTALE ;case INTEL_UC_FIRMWARE_AVAILABLE : +case INTEL_UC_FIRMWARE_LOADABLE :case INTEL_UC_FIRMWARE_TRANSFERRED :case INTEL_UC_FIRMWARE_RUNNING :return 0 ;
@@ -184,6 +191,11 @@ static inline bool intel_uc_fw_is_available(struct intel_uc_fw *uc_fw)return __intel_uc_fw_status (uc_fw) >=INTEL_UC_FIRMWARE_AVAILABLE ; } +static inline bool intel_uc_fw_is_loadable (struct intel_uc_fw *uc_fw) +{ +return __intel_uc_fw_status (uc_fw) >=INTEL_UC_FIRMWARE_LOADABLE ; +} +static inline bool intel_uc_fw_is_loaded (struct intel_uc_fw *uc_fw) {return __intel_uc_fw_status (uc_fw) >=INTEL_UC_FIRMWARE_TRANSFERRED ;
@@ -202,7 +214,7 @@ static inline bool intel_uc_fw_is_overridden(const struct intel_uc_fw *uc_fw)static inline void intel_uc_fw_sanitize (struct intel_uc_fw *uc_fw) {if (intel_uc_fw_is_loaded (uc_fw)) -intel_uc_fw_change_status (uc_fw,INTEL_UC_FIRMWARE_AVAILABLE ); +intel_uc_fw_change_status (uc_fw,INTEL_UC_FIRMWARE_LOADABLE ); }static inline u32 __intel_uc_fw_get_upload_size (struct intel_uc_fw *uc_fw)
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 10/10 HAX: drm/i915: default to enable_guc=2
In reply to Daniele Ceraolo SpurioTo enable GuC and HuC loading on all gen9+ CI machines.
--- drivers/gpu/drm/i915/i915_params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_params.h +1 -1
@@ -56,7 +56,7 @@ struct drm_printer; param(int, disable_power_well, -1, 0400) \ param(int, enable_ips, 1, 0600) \ param(int, invert_brightness, 0, 0600) \ - param(int, enable_guc, 0, 0400) \ + param(int, enable_guc, 2, 0400) \ param(int, guc_log_level, -1, 0400) \ param(char *, guc_firmware_path, NULL, 0400) \ param(char *, huc_firmware_path, NULL, 0400) \
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [CI,01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: series starting with [CI,01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
URL : https://patchwork.freedesktop.org/series/73610/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
c9413e3a8cde drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
a6ea555cb6b1 drm/i915/guc: Kill USES_GUC macro
38db7bd09a6d drm/i915/guc: Kill USES_GUC_SUBMISSION macro
22e4c362bb86 drm/i915/uc: Update the FW status on injected fetch error
ca3c50fa47ed drm/i915/uc: autogenerate uC checker functions
-:32: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'x' may be better as '(x)' to avoid precedence issues
#32: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:43:
+#define __uc_state_checker(x, state, required) \
+static inline bool intel_uc_##state##_##x(struct intel_uc *uc) \
+{ \
+ return intel_##x##_is_##required(&uc->x); \
}-:42: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #42: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:49:
+#define uc_state_checkers(x) \
+__uc_state_checker(x, supports, supported) \
+__uc_state_checker(x, uses, enabled)
-:42: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects? #42: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:49:
+#define uc_state_checkers(x) \
+__uc_state_checker(x, supports, supported) \
+__uc_state_checker(x, uses, enabled)
total: 1 errors, 0 warnings, 2 checks, 44 lines checkedcd5541c40e50 drm/i915/uc: Improve tracking of uC init status0d79221ea12e drm/i915/guc: Apply new uC status tracking to GuC submission as well -:247: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'x' may be better as '(x)' to avoid precedence issues #247: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:65:
+#define __uc_state_checker(x, func, state, required) \
+static inline bool intel_uc_##state##_##func(struct intel_uc *uc) \
{ \
+ return intel_##func##_is_##required(&uc->x); \
}
-:258: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #258: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:71:
+#define uc_state_checkers(x, func) \
+__uc_state_checker(x, func, supports, supported) \
+__uc_state_checker(x, func, wants, wanted) \
+__uc_state_checker(x, func, uses, used)
-:258: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects? #258: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:71:
+#define uc_state_checkers(x, func) \
+__uc_state_checker(x, func, supports, supported) \
+__uc_state_checker(x, func, wants, wanted) \
+__uc_state_checker(x, func, uses, used)
-:258: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'func' - possible side-effects? #258: FILE: drivers/gpu/drm/i915/gt/uc/intel_uc.h:71:
+#define uc_state_checkers(x, func) \
+__uc_state_checker(x, func, supports, supported) \
+__uc_state_checker(x, func, wants, wanted) \
+__uc_state_checker(x, func, uses, used)
total: 1 errors, 0 warnings, 3 checks, 250 lines checked 65d24a2b9584 drm/i915/uc: Abort early on uc_init failure ff1adf98f8d4 drm/i915/uc: consolidate firmware cleanup 50bb392a051d HAX: drm/i915: default to enable_guc=2
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [CI,01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: series starting with [CI,01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
URL : https://patchwork.freedesktop.org/series/73610/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7963 -> Patchwork_16611
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/index.html
Known issues
------------
Here are the changes found in Patchwork_16611 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([i915#585]) +37 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live_active:
- fi-icl-dsi: [DMESG-FAIL][3] ([i915#765]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-icl-dsi/igt@i915_selftest@live_active.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-icl-dsi/igt@i915_selftest@live_active.html
* igt@i915_selftest@live_gem_contexts:
- fi-cfl-8700k: [INCOMPLETE][5] ([i915#424]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-cfl-8700k/igt@i915_selftest@live_gem_contexts.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-cfl-8700k/igt@i915_selftest@live_gem_contexts.html
- fi-cml-s: [DMESG-FAIL][7] ([i915#877]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-cml-s/igt@i915_selftest@live_gem_contexts.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-cml-s/igt@i915_selftest@live_gem_contexts.html
* igt@i915_selftest@live_gt_heartbeat:
- fi-kbl-7500u: [DMESG-FAIL][9] ([fdo#112406]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-kbl-7500u/igt@i915_selftest@live_gt_heartbeat.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-kbl-7500u/igt@i915_selftest@live_gt_heartbeat.html
* igt@kms_flip@basic-flip-vs-wf_vblank:
- fi-bsw-n3050: [FAIL][11] ([i915#34]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-bsw-n3050/igt@kms_flip@basic-flip-vs-wf_vblank.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-bsw-n3050/igt@kms_flip@basic-flip-vs-wf_vblank.html
#### Warnings ####
* igt@amdgpu/amd_prime@amd-to-i915:
- fi-icl-u3: [SKIP][13] ([fdo#109315]) -> [SKIP][14] ([fdo#109315] / [i915#585])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-icl-u3/igt@amdgpu/[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-icl-u3/igt@amdgpu/[email protected]
* igt@i915_pm_rpm@basic-rte:
- fi-kbl-guc: [FAIL][15] ([i915#579]) -> [SKIP][16] ([fdo#109271])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-kbl-guc/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-kbl-guc/igt@[email protected]
* igt@kms_chamelium@dp-hpd-fast:
- fi-icl-u3: [SKIP][17] ([fdo#109284] / [fdo#111827]) -> [SKIP][18] ([fdo#109284] / [fdo#111827] / [i915#585])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-icl-u3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-icl-u3/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-u3: [SKIP][19] ([fdo#109285]) -> [SKIP][20] ([fdo#109285] / [i915#585])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/fi-icl-u3/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/fi-icl-u3/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112406]: https://bugs.freedesktop.org/show_bug.cgi?id=112406
[i915#34]: https://gitlab.freedesktop.org/drm/intel/issues/34
[i915#424]: https://gitlab.freedesktop.org/drm/intel/issues/424
[i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579
[i915#585]: https://gitlab.freedesktop.org/drm/intel/issues/585
[i915#765]: https://gitlab.freedesktop.org/drm/intel/issues/765
[i915#877]: https://gitlab.freedesktop.org/drm/intel/issues/877
Participating hosts (50 -> 36)
------------------------------
Missing (14): fi-ilk-m540 fi-hsw-4200u fi-hsw-peppy fi-glk-dsi fi-bsw-cyan fi-bwr-2160 fi-ctg-p8600 fi-gdg-551 fi-cfl-8109u fi-skl-6700k2 fi-bdw-samus fi-byt-n2820 fi-bsw-nick fi-skl-6600u
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7963 -> Patchwork_16611
CI-20190529: 20190529
CI_DRM_7963: e0d737598eb749378a5dc4ed3dfafc6f79d512cb @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5448: 116020b1f83c1b3994c76882df7f77b6731d78ba @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16611: 50bb392a051d3d642110516f74f2a22ab49e90b4 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
50bb392a051d HAX: drm/i915: default to enable_guc=2ff1adf98f8d4 drm/i915/uc: consolidate firmware cleanup65d24a2b9584 drm/i915/uc: Abort early on uc_init failure 0d79221ea12e drm/i915/guc: Apply new uC status tracking to GuC submission as well cd5541c40e50 drm/i915/uc: Improve tracking of uC init status ca3c50fa47ed drm/i915/uc: autogenerate uC checker functions 22e4c362bb86 drm/i915/uc: Update the FW status on injected fetch error 38db7bd09a6d drm/i915/guc: Kill USES_GUC_SUBMISSION macro a6ea555cb6b1 drm/i915/guc: Kill USES_GUC macroc9413e3a8cde drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [CI,01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: series starting with [CI,01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info
URL : https://patchwork.freedesktop.org/series/73610/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7963_full -> Patchwork_16611_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_16611_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_16611_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_16611_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_balancer@bonded-slice:
- shard-tglb: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-tglb5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-tglb3/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_7963_full and Patchwork_16611_full:
### New IGT tests (58) ###
* igt@i915_pm_backlight@bad-brightness:
- Statuses : 3 pass(s) 4 skip(s)
- Exec time: [0.0, 0.01] s
* igt@i915_pm_backlight@basic-brightness:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 0.23] s
* igt@i915_pm_backlight@fade:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 2.59] s
* igt@i915_pm_backlight@fade_with_dpms:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 4.92] s
* igt@i915_pm_backlight@fade_with_suspend:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 5.02] s
* igt@i915_pm_lpsp@edp-native:
- Statuses : 8 skip(s)
- Exec time: [0.0, 0.04] s
* igt@i915_pm_lpsp@edp-panel-fitter:
- Statuses : 8 skip(s)
- Exec time: [0.0, 0.05] s
* igt@i915_pm_lpsp@non-edp:
- Statuses : 1 pass(s) 7 skip(s)
- Exec time: [0.0, 0.11] s
* igt@i915_pm_lpsp@screens-disabled:
- Statuses : 1 pass(s) 7 skip(s)
- Exec time: [0.0, 0.04] s
* igt@i915_pm_rc6_residency@media-rc6-accuracy:
- Statuses : 7 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_rc6_residency@rc6-accuracy:
- Statuses : 8 pass(s)
- Exec time: [3.00] s
* igt@i915_pm_rpm@basic-pci-d3-state:
- Statuses : 7 pass(s)
- Exec time: [0.17, 4.97] s
* igt@i915_pm_rpm@basic-rte:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [1.33, 11.39] s
* igt@i915_pm_rpm@cursor:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 41.33] s
* igt@i915_pm_rpm@cursor-dpms:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 40.58] s
* igt@i915_pm_rpm@debugfs-forcewake-user:
- Statuses : 7 pass(s)
- Exec time: [10.31, 14.12] s
* igt@i915_pm_rpm@debugfs-read:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 80.91] s
* igt@i915_pm_rpm@dpms-lpsp:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 0.82] s
* igt@i915_pm_rpm@dpms-mode-unset-lpsp:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 13.42] s
* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- Statuses : 4 pass(s) 4 skip(s)
- Exec time: [0.0, 3.93] s
* igt@i915_pm_rpm@dpms-non-lpsp:
- Statuses : 4 pass(s) 3 skip(s)
- Exec time: [0.0, 0.16] s
* igt@i915_pm_rpm@drm-resources-equal:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 11.08] s
* igt@i915_pm_rpm@fences:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 17.06] s
* igt@i915_pm_rpm@fences-dpms:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 12.76] s
* igt@i915_pm_rpm@gem-evict-pwrite:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 3.93] s
* igt@i915_pm_rpm@gem-execbuf:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 14.10] s
* igt@i915_pm_rpm@gem-execbuf-stress:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 42.76] s
* igt@i915_pm_rpm@gem-execbuf-stress-pc8:
- Statuses : 8 skip(s)
- Exec time: [0.0, 0.01] s
* igt@i915_pm_rpm@gem-idle:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 9.21] s
* igt@i915_pm_rpm@gem-pread:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 6.37] s
* igt@i915_pm_rpm@i2c:
- Statuses : 6 pass(s)
- Exec time: [1.39, 11.37] s
* igt@i915_pm_rpm@legacy-planes:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 169.75] s
* igt@i915_pm_rpm@legacy-planes-dpms:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 150.38] s
* igt@i915_pm_rpm@modeset-lpsp:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 4.97] s
* igt@i915_pm_rpm@modeset-lpsp-stress:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 55.05] s
* igt@i915_pm_rpm@modeset-lpsp-stress-no-wait:
- Statuses : 3 pass(s) 5 skip(s)
- Exec time: [0.0, 17.88] s
* igt@i915_pm_rpm@modeset-non-lpsp:
- Statuses : 4 pass(s) 4 skip(s)
- Exec time: [0.0, 4.12] s
* igt@i915_pm_rpm@modeset-non-lpsp-stress:
- Statuses : 4 pass(s) 4 skip(s)
- Exec time: [0.0, 8.96] s
* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- Statuses : 4 pass(s) 4 skip(s)
- Exec time: [0.0, 8.36] s
* igt@i915_pm_rpm@modeset-pc8-residency-stress:
- Statuses : 8 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_rpm@modeset-stress-extra-wait:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 72.03] s
* igt@i915_pm_rpm@pc8-residency:
- Statuses : 8 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_rpm@pm-caching:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 19.95] s
* igt@i915_pm_rpm@pm-tiling:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 15.08] s
* igt@i915_pm_rpm@reg-read-ioctl:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 8.00] s
* igt@i915_pm_rpm@sysfs-read:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 4.16] s
* igt@i915_pm_rpm@system-suspend:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 9.12] s
* igt@i915_pm_rpm@system-suspend-devices:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 13.48] s
* igt@i915_pm_rpm@system-suspend-execbuf:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 86.14] s
* igt@i915_pm_rpm@system-suspend-modeset:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 14.80] s
* igt@i915_pm_rpm@universal-planes:
- Statuses : 7 pass(s)
- Exec time: [2.95, 226.00] s
* igt@i915_pm_rpm@universal-planes-dpms:
- Statuses : 7 pass(s) 1 skip(s)
- Exec time: [0.0, 195.58] s
* igt@i915_pm_rps@basic-api:
- Statuses : 8 pass(s)
- Exec time: [0.00, 0.03] s
* igt@i915_pm_rps@min-max-config-idle:
- Statuses : 8 pass(s)
- Exec time: [0.11, 0.88] s
* igt@i915_pm_rps@min-max-config-loaded:
- Statuses : 1 fail(s) 7 pass(s)
- Exec time: [0.31, 3.02] s
* igt@i915_pm_rps@reset:
- Statuses : 1 fail(s) 7 pass(s)
- Exec time: [3.52, 3.69] s
* igt@i915_pm_rps@waitboost:
- Statuses : 1 fail(s) 7 pass(s)
- Exec time: [2.52, 2.64] s
* igt@i915_pm_sseu@full-enable:
- Statuses : 4 pass(s) 4 skip(s)
- Exec time: [0.0, 0.01] s
Known issues
------------
Here are the changes found in Patchwork_16611_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@vcs0-s3:
- shard-skl: [PASS][3] -> [INCOMPLETE][4] ([i915#69])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl8/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl1/igt@[email protected]
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#110841])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb1/igt@[email protected]
* igt@gem_exec_balancer@hang:
- shard-tglb: [PASS][7] -> [FAIL][8] ([i915#1127])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-tglb2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-tglb6/igt@[email protected]
* igt@gem_exec_parallel@vcs1-fds:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#112080]) +9 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb3/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd:
- shard-iclb: [PASS][11] -> [SKIP][12] ([fdo#112146]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb2/igt@[email protected]
* igt@gem_partial_pwrite_pread@writes-after-reads-uncached:
- shard-hsw: [PASS][13] -> [FAIL][14] ([i915#694]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-hsw2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-hsw4/igt@[email protected]
* igt@i915_selftest@live_gt_lrc:
- shard-tglb: [PASS][15] -> [INCOMPLETE][16] ([i915#1233])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-tglb8/igt@i915_selftest@live_gt_lrc.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-tglb8/igt@i915_selftest@live_gt_lrc.html
* igt@i915_selftest@live_gtt:
- shard-skl: [PASS][17] -> [TIMEOUT][18] ([fdo#111732] / [fdo#112271])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl7/igt@i915_selftest@live_gtt.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl7/igt@i915_selftest@live_gtt.html
* igt@kms_cursor_crc@pipe-c-cursor-256x256-sliding:
- shard-skl: [PASS][19] -> [FAIL][20] ([i915#54])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl7/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl3/igt@[email protected]
* igt@kms_flip@flip-vs-absolute-wf_vblank:
- shard-tglb: [PASS][21] -> [FAIL][22] ([i915#488])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-tglb5/igt@kms_flip@flip-vs-absolute-wf_vblank.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-tglb5/igt@kms_flip@flip-vs-absolute-wf_vblank.html
* igt@kms_flip@flip-vs-suspend:
- shard-apl: [PASS][23] -> [DMESG-WARN][24] ([i915#180])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-apl4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-apl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-glk: [PASS][25] -> [FAIL][26] ([i915#49])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-glk9/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-glk3/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-cpu:
- shard-skl: [PASS][27] -> [FAIL][28] ([i915#49])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl1/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-cpu.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl10/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-cpu.html
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [PASS][29] -> [FAIL][30] ([fdo#108145])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl10/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-glk: [PASS][31] -> [FAIL][32] ([i915#899])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-glk9/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-glk3/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [PASS][33] -> [SKIP][34] ([fdo#109441]) +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb4/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@prime_vgem@wait-bsd2:
- shard-iclb: [PASS][35] -> [SKIP][36] ([fdo#109276]) +15 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb7/igt@[email protected]
#### Possible fixes ####
* {igt@gem_ctx_persistence@close-replace-race}:
- shard-iclb: [FAIL][37] ([i915#1241]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb7/igt@[email protected]
* {igt@gem_ctx_persistence@legacy-engines-mixed-process@vebox}:
- shard-skl: [FAIL][39] ([i915#679]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl8/igt@gem_ctx_persistence@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl7/igt@gem_ctx_persistence@[email protected]
* {igt@gem_exec_schedule@implicit-write-read-bsd1}:
- shard-iclb: [SKIP][41] ([fdo#109276] / [i915#677]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb7/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb4/igt@[email protected]
* igt@gem_exec_schedule@pi-distinct-iova-bsd:
- shard-iclb: [SKIP][43] ([i915#677]) -> [PASS][44] +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [SKIP][45] ([fdo#112146]) -> [PASS][46] +3 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@promotion-bsd1:
- shard-iclb: [SKIP][47] ([fdo#109276]) -> [PASS][48] +12 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb4/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-apl: [FAIL][49] ([i915#644]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-apl1/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-apl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-size-change:
- shard-snb: [SKIP][51] ([fdo#109271]) -> [PASS][52] +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-snb4/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-snb5/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
- shard-hsw: [FAIL][53] ([i915#96]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-hsw8/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-hsw7/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [DMESG-WARN][55] ([i915#180]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-kbl1/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-kbl2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [FAIL][57] ([i915#79]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl5/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl6/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-hsw: [INCOMPLETE][59] ([i915#61]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-hsw2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-hsw1/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-rte:
- shard-tglb: [SKIP][61] ([i915#668]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-tglb5/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-tglb5/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-apl: [DMESG-WARN][63] ([i915#180]) -> [PASS][64] +3 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-apl1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-apl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [FAIL][65] ([fdo#108145]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl8/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl1/igt@[email protected]
* igt@kms_psr@no_drrs:
- shard-iclb: [FAIL][67] ([i915#173]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@kms_psr@no_drrs.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb7/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [SKIP][69] ([fdo#109441]) -> [PASS][70] +3 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb1/igt@kms_psr@psr2_sprite_mmap_gtt.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-skl: [INCOMPLETE][71] ([i915#69]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-skl3/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-skl10/igt@[email protected]
* igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend:
- shard-kbl: [INCOMPLETE][73] ([fdo#103665]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-kbl6/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-kbl7/igt@[email protected]
* igt@perf@short-reads:
- shard-kbl: [TIMEOUT][75] ([fdo#112271] / [i915#51]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-kbl6/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-kbl4/igt@[email protected]
* igt@perf_pmu@busy-no-semaphores-vcs1:
- shard-iclb: [SKIP][77] ([fdo#112080]) -> [PASS][78] +9 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb7/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb2/igt@[email protected]
* igt@prime_mmap_coherency@ioctl-errors:
- shard-hsw: [FAIL][79] ([i915#831]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-hsw2/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-hsw1/igt@[email protected]
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv-switch:
- shard-iclb: [SKIP][81] ([fdo#112080]) -> [FAIL][82] ([IGT#28])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-iclb7/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-iclb4/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-tglb: [FAIL][83] ([i915#454]) -> [SKIP][84] ([i915#468]) +1 similar issue
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7963/shard-tglb6/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16611/shard-tglb2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#28]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/28
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#111732]: https://bugs.freedesktop.org/show_bug.cgi?id=111732
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#1127]: https://gitlab.freedesktop.org/drm/intel/issues/1127
[i915#1233]: https://gitlab.freedesktop.org/drm/intel/issues/1233
[i915#1241]: https://gitlab.freedesktop.org/drm/intel/issues/1241
[i915#173]: https://gitlab.freedesktop.org/drm/intel/issues/173
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#468]: https://gitlab.freedesktop.org/drm/intel/issues/468
[i915#488]: https://gitlab.freedesktop.org/drm/intel/issues/488
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#51]: https://gitlab.freedesktop.org/drm/intel/issues/51
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#61]: https://gitlab.freedesktop.org/drm/intel/issues/61
[i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644
[i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#679]: https://gitlab.freedesktop.org/drm/intel/issues/679
[i915#69]: https://gitlab.freedesktop.org/drm/intel/issues/69
[i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#831]: https://gitlab.freedesktop.org/drm/intel/issues/831
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
[i915#96]: https://gitlab.freedesktop.org/drm/intel/issues/96
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7963 -> Patchwork_16611
CI-20190529: 20190529
CI_DRM_7963: e0d737598eb749378a5dc4ed3dfafc6f79d512cb @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5448: 116020b1f83c1b3994c76882df7f77b6731d78ba @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16611: 50bb392a051d3d642110516f74f2a22ab49e90b4 @ 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_16611/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx