Non-interface changing GuC CTBs updates
Subsystems (2)
cover Non-interface changing GuC CTBs updates
As discussed in [1] we are breaking that large series into a several smaller ones. This series is the non-interface changing part of step #2
- it makes all the changes needed before updating the GuC firwmare to a new version without breaking any old interfaces.
A follow on series will be squashed into a single patch that updates the GuC firmware + the required interface changes.
Patch number #13 needs an Ack from Michal Wajdeczko. Patch number #6, #15 need reviews.
v2: Fix some checkpatch warnings, add patch number #6 to address CI failure [2] in first rev
[1] https://patchwork.freedesktop.org/series/89844/
[2] https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20192/shard-tglb3/igt@[email protected]
Daniele Ceraolo Spurio (3):
drm/i915/guc: skip disabling CTBs before sanitizing the GuC drm/i915/guc: use probe_error log for CT enablement failure drm/i915/guc: enable only the user interrupt when using GuC submission
Matthew Brost (2):
drm/i915/guc: Drop guc->interrupts.enabled drm/i915/guc: Ensure H2G buffer updates visible before tail update
Michal Wajdeczko (12):
drm/i915/guc: Keep strict GuC ABI definitions drm/i915/guc: Stop using fence/status from CTB descriptor drm/i915: Promote ptrdiff() to i915_utils.h drm/i915/guc: Only rely on own CTB size drm/i915/guc: Don't repeat CTB layout calculations drm/i915/guc: Replace CTB array with explicit members drm/i915/guc: Update sizes of CTB buffers drm/i915/guc: Relax CTB response timeout drm/i915/guc: Start protecting access to CTB descriptors drm/i915/guc: Stop using mutex while sending CTB messages drm/i915/guc: Don't receive all G2H messages in irq handler drm/i915/guc: Always copy CT message to new allocation
Rodrigo Vivi (1):
drm/i915/guc: Remove sample_forcewake h2g action
drivers/gpu/drm/i915/Kconfig.profile | 9 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 18 +- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 51 ++ .../gt/uc/abi/guc_communication_ctb_abi.h | 106 ++++ .../gt/uc/abi/guc_communication_mmio_abi.h | 52 ++ .../gpu/drm/i915/gt/uc/abi/guc_errors_abi.h | 14 + .../gpu/drm/i915/gt/uc/abi/guc_messages_abi.h | 21 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 43 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 - drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 527 ++++++++++-------- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 14 +- drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 207 +------ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 31 -- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 10 - drivers/gpu/drm/i915/i915_utils.h | 5 + drivers/gpu/drm/i915/i915_vma.h | 5 - 16 files changed, 605 insertions(+), 510 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_communication_mmio_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_errors_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_messages_abi.h
Signature · 1 line
2.28.0
PATCH 1/18 drm/i915/guc: skip disabling CTBs before sanitizing the GuC
From: Daniele Ceraolo Spurio <[email protected]>
If we're about to sanitize the GuC, something might have going wrong beforehand, so we should avoid trying to talk to it. Even if GuC is still running fine, the sanitize will reset its internal state and clear the CTB registration, so there is still no need to explicitly do so.
References: https://gitlab.freedesktop.org/drm/intel/-/issues/2469
--- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_uc.c +1 -7
@@ -504,7 +504,7 @@ static int __uc_init_hw(struct intel_uc *uc) ret =intel_guc_sample_forcewake (guc);if (ret) - goto err_communication; + goto err_log_capture;if (intel_uc_uses_guc_submission (uc))intel_guc_submission_enable (guc);
@@ -529,8 +529,6 @@ static int __uc_init_hw(struct intel_uc *uc)/* * We've failed to load the firmware :( */ -err_communication: -guc_disable_communication (guc); err_log_capture:__uc_capture_load_err_log (uc); err_out:
@@ -558,9 +556,6 @@ static void __uc_fini_hw(struct intel_uc *uc)if (intel_uc_uses_guc_submission (uc))intel_guc_submission_disable (guc); -if (guc_communication_enabled (guc)) -guc_disable_communication (guc); -__uc_sanitize (uc); }
@@ -577,7 +572,6 @@ void intel_uc_reset_prepare(struct intel_uc *uc)if (!intel_guc_is_ready (guc))return ; -guc_disable_communication (guc);__uc_sanitize (uc); }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/18 drm/i915/guc: use probe_error log for CT enablement failure
In reply to Matthew BrostFrom: Daniele Ceraolo Spurio <[email protected]>
We have a couple of failure injection points in the CT enablement path, so we need to use i915_probe_error() to select the appropriate log level. A new macro (CT_PROBE_ERROR) has been added to the set of CT logging macros to be used in this scenario and upcoming ones.
While adding the new macros, fix the underlying logging mechanics used by the existing ones (DRM_DEV_* -> drm_*) and move the inlines to before they're used inside the macros.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 48 ++++++++++++----------- 1 file changed, 25 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +25 -23
@@ -7,14 +7,36 @@#include "intel_guc_ct.h" #include "gt/intel_gt.h" +static inline struct intel_guc *ct_to_guc (struct intel_guc_ct *ct) +{ + return container_of(ct, struct intel_guc, ct); +} + +static inline struct intel_gt *ct_to_gt (struct intel_guc_ct *ct) +{ +return guc_to_gt (ct_to_guc (ct)); +} + +static inline struct drm_i915_private *ct_to_i915 (struct intel_guc_ct *ct) +{ +return ct_to_gt (ct)->i915; +} + +static inline struct drm_device *ct_to_drm (struct intel_guc_ct *ct) +{ +return &ct_to_i915 (ct)->drm; +} +#define CT_ERROR (_ct, _fmt, ...) \ - DRM_DEV_ERROR(ct_to_dev(_ct), "CT: " _fmt, ##__VA_ARGS__) + drm_err(ct_to_drm(_ct), "CT: " _fmt, ##__VA_ARGS__)#ifdef CONFIG_DRM_I915_DEBUG_GUC #define CT_DEBUG (_ct, _fmt, ...) \ - DRM_DEV_DEBUG_DRIVER(ct_to_dev(_ct), "CT: " _fmt, ##__VA_ARGS__) + drm_dbg(ct_to_drm(_ct), "CT: " _fmt, ##__VA_ARGS__)#else #define CT_DEBUG (...) do { } while (0)#endif +#define CT_PROBE_ERROR (_ct, _fmt, ...) \ + i915_probe_error(ct_to_i915(ct), "CT: " _fmt, ##__VA_ARGS__)struct ct_request {struct list_head link;
@@ -47,26 +69,6 @@ void intel_guc_ct_init_early(struct intel_guc_ct *ct)INIT_WORK (&ct->requests.worker, ct_incoming_request_worker_func); } -static inline struct intel_guc *ct_to_guc (struct intel_guc_ct *ct) -{ - return container_of(ct, struct intel_guc, ct); -} - -static inline struct intel_gt *ct_to_gt (struct intel_guc_ct *ct) -{ -return guc_to_gt (ct_to_guc (ct)); -} - -static inline struct drm_i915_private *ct_to_i915 (struct intel_guc_ct *ct) -{ -return ct_to_gt (ct)->i915; -} - -static inline struct device *ct_to_dev (struct intel_guc_ct *ct) -{ -return ct_to_i915 (ct)->drm.dev; -} -static inline const char *guc_ct_buffer_type_to_str (u32 type) {switch (type) {
@@ -264,7 +266,7 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct) err_deregister:ct_deregister_buffer (ct,INTEL_GUC_CT_BUFFER_TYPE_RECV ); err_out: -CT_ERROR (ct,"Failed to open open CT channel (err=%d)\n" , err); +CT_PROBE_ERROR (ct,"Failed to open channel (err=%d)\n" , err);return err; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/18 drm/i915/guc: enable only the user interrupt when using GuC submission
In reply to Matthew BrostFrom: Daniele Ceraolo Spurio <[email protected]>
In GuC submission mode the CS is owned by the GuC FW, so all CS status interrupts are handled by it. We only need the user interrupt as that signals request completion.
Since we're now starting the engines directly in GuC submission mode when selected, we can stop switching back and forth between the execlists and the GuC programming and select directly the correct interrupt mask.
--- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 18 ++++++----- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 31 ------------------- 2 files changed, 11 insertions(+), 38 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt_irq.c +11 -7
@@ -194,14 +194,18 @@ void gen11_gt_irq_reset(struct intel_gt *gt)void gen11_gt_irq_postinstall (struct intel_gt *gt) { -const u32 irqs = -GT_CS_MASTER_ERROR_INTERRUPT | -GT_RENDER_USER_INTERRUPT | -GT_CONTEXT_SWITCH_INTERRUPT | -GT_WAIT_SEMAPHORE_INTERRUPT ;struct intel_uncore *uncore = gt->uncore; -const u32 dmask = irqs <<16 | irqs; -const u32 smask = irqs <<16 ; +u32 irqs =GT_RENDER_USER_INTERRUPT ; +u32 dmask; +u32 smask; + +if (!intel_uc_wants_guc_submission (>->uc)) + irqs |=GT_CS_MASTER_ERROR_INTERRUPT | +GT_CONTEXT_SWITCH_INTERRUPT | +GT_WAIT_SEMAPHORE_INTERRUPT ; + + dmask = irqs <<16 | irqs; + smask = irqs <<16 ;BUILD_BUG_ON (irqs &0xffff0000 );
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +0 -31
@@ -432,32 +432,6 @@ void intel_guc_submission_fini(struct intel_guc *guc) } } -static void guc_interrupts_capture (struct intel_gt *gt) -{ -struct intel_uncore *uncore = gt->uncore; -u32 irqs =GT_CONTEXT_SWITCH_INTERRUPT ; -u32 dmask = irqs <<16 | irqs; - -GEM_BUG_ON (INTEL_GEN (gt->i915) <11 ); - -/* Don't handle the ctx switch interrupt in GuC submission mode */ -intel_uncore_rmw (uncore,GEN11_RENDER_COPY_INTR_ENABLE , dmask,0 ); -intel_uncore_rmw (uncore,GEN11_VCS_VECS_INTR_ENABLE , dmask,0 ); -} - -static void guc_interrupts_release (struct intel_gt *gt) -{ -struct intel_uncore *uncore = gt->uncore; -u32 irqs =GT_CONTEXT_SWITCH_INTERRUPT ; -u32 dmask = irqs <<16 | irqs; - -GEM_BUG_ON (INTEL_GEN (gt->i915) <11 ); - -/* Handle ctx switch interrupts again */ -intel_uncore_rmw (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 , dmask); -intel_uncore_rmw (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 , dmask); -} -static int guc_context_alloc (struct intel_context *ce) {return lrc_alloc (ce, ce->engine);
@@ -722,9 +696,6 @@ int intel_guc_submission_setup(struct intel_engine_cs *engine)void intel_guc_submission_enable (struct intel_guc *guc) {guc_stage_desc_init (guc); - -/* Take over from manual control of ELSP (execlists) */ -guc_interrupts_capture (guc_to_gt (guc)); }void intel_guc_submission_disable (struct intel_guc *guc)
@@ -735,8 +706,6 @@ void intel_guc_submission_disable(struct intel_guc *guc)/* Note: By the time we're here, GuC may have already been reset */ -guc_interrupts_release (gt); -guc_stage_desc_fini (guc); }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/18 drm/i915/guc: Remove sample_forcewake h2g action
In reply to Matthew BrostFrom: Rodrigo Vivi <[email protected]>
This action is no-op in the GuC side for a few versions already and it is getting entirely removed soon, in an upcoming version.
Time to remove before we face communication issues.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 16 ---------------- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 - drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 4 ---- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 4 ---- 4 files changed, 25 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +0 -16
@@ -469,22 +469,6 @@ int intel_guc_to_host_process_recv_msg(struct intel_guc *guc,return 0 ; } -int intel_guc_sample_forcewake (struct intel_guc *guc) -{ -struct drm_i915_private *dev_priv =guc_to_gt (guc)->i915; -u32 action[2 ]; - - action[0 ] =INTEL_GUC_ACTION_SAMPLE_FORCEWAKE ; -/* WaRsDisableCoarsePowerGating:skl,cnl */ -if (!HAS_RC6 (dev_priv) ||NEEDS_WaRsDisableCoarsePowerGating (dev_priv)) - action[1 ] =0 ; -else -/* bit 0 and 1 are for Render and Media domain separately */ - action[1 ] =GUC_FORCEWAKE_RENDER |GUC_FORCEWAKE_MEDIA ; - -return intel_guc_send (guc, action,ARRAY_SIZE (action)); -} -/** * intel_guc_auth_huc() - Send action to GuC to authenticate HuC ucode * @guc: intel_guc structure
drivers/gpu/drm/i915/gt/uc/intel_guc.h +0 -1
@@ -128,7 +128,6 @@ int intel_guc_send_mmio(struct intel_guc *guc, const u32 *action, u32 len, u32 *response_buf, u32 response_buf_size);int intel_guc_to_host_process_recv_msg (struct intel_guc *guc,const u32 *payload,u32 len); -int intel_guc_sample_forcewake (struct intel_guc *guc);int intel_guc_auth_huc (struct intel_guc *guc,u32 rsa_offset);int intel_guc_suspend (struct intel_guc *guc);int intel_guc_resume (struct intel_guc *guc);
drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h +0 -4
@@ -302,9 +302,6 @@ struct guc_ct_buffer_desc {#define GUC_CT_MSG_ACTION_SHIFT 16#define GUC_CT_MSG_ACTION_MASK 0xFFFF -#define GUC_FORCEWAKE_RENDER (1 << 0) -#define GUC_FORCEWAKE_MEDIA (1 << 1) -#define GUC_POWER_UNSPECIFIED 0#define GUC_POWER_D0 1#define GUC_POWER_D1 2
@@ -558,7 +555,6 @@ enum intel_guc_action {INTEL_GUC_ACTION_ENTER_S_STATE =0x501 ,INTEL_GUC_ACTION_EXIT_S_STATE =0x502 ,INTEL_GUC_ACTION_SLPC_REQUEST =0x3003 , -INTEL_GUC_ACTION_SAMPLE_FORCEWAKE =0x3005 ,INTEL_GUC_ACTION_AUTHENTICATE_HUC =0x4000 ,INTEL_GUC_ACTION_REGISTER_COMMAND_TRANSPORT_BUFFER =0x4505 , INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER = 0x4506,
drivers/gpu/drm/i915/gt/uc/intel_uc.c +0 -4
@@ -502,10 +502,6 @@ static int __uc_init_hw(struct intel_uc *uc)intel_huc_auth (huc); - ret =intel_guc_sample_forcewake (guc); -if (ret) - goto err_log_capture; -if (intel_uc_uses_guc_submission (uc))intel_guc_submission_enable (guc);
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/18 drm/i915/guc: Keep strict GuC ABI definitions
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
Our fwif.h file is now mix of strict firmware ABI definitions and set of our helpers. In anticipation of upcoming changes to the GuC interface try to keep them separate in smaller maintainable files.
--- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 51 +++++ .../gt/uc/abi/guc_communication_ctb_abi.h | 106 +++++++++ .../gt/uc/abi/guc_communication_mmio_abi.h | 52 +++++ .../gpu/drm/i915/gt/uc/abi/guc_errors_abi.h | 14 ++ .../gpu/drm/i915/gt/uc/abi/guc_messages_abi.h | 21 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 203 +----------------- 6 files changed, 250 insertions(+), 197 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_communication_mmio_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_errors_abi.h create mode 100644 drivers/gpu/drm/i915/gt/uc/abi/guc_messages_abi.h
drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h new file +51 -0
@@ -0,0 +1,51 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2014-2021 Intel Corporation +*/ + +#ifndef _ABI_GUC_ACTIONS_ABI_H +#define _ABI_GUC_ACTIONS_ABI_H + +enum intel_guc_action { +INTEL_GUC_ACTION_DEFAULT =0x0 , +INTEL_GUC_ACTION_REQUEST_PREEMPTION =0x2 , +INTEL_GUC_ACTION_REQUEST_ENGINE_RESET =0x3 , +INTEL_GUC_ACTION_ALLOCATE_DOORBELL =0x10 , +INTEL_GUC_ACTION_DEALLOCATE_DOORBELL =0x20 , +INTEL_GUC_ACTION_LOG_BUFFER_FILE_FLUSH_COMPLETE =0x30 , +INTEL_GUC_ACTION_UK_LOG_ENABLE_LOGGING =0x40 , +INTEL_GUC_ACTION_FORCE_LOG_BUFFER_FLUSH =0x302 , +INTEL_GUC_ACTION_ENTER_S_STATE =0x501 , +INTEL_GUC_ACTION_EXIT_S_STATE =0x502 , +INTEL_GUC_ACTION_SLPC_REQUEST =0x3003 , +INTEL_GUC_ACTION_AUTHENTICATE_HUC =0x4000 , +INTEL_GUC_ACTION_REGISTER_COMMAND_TRANSPORT_BUFFER =0x4505 , +INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER =0x4506 , +INTEL_GUC_ACTION_LIMIT +}; + +enum intel_guc_preempt_options { +INTEL_GUC_PREEMPT_OPTION_DROP_WORK_Q =0x4 , +INTEL_GUC_PREEMPT_OPTION_DROP_SUBMIT_Q =0x8 , +}; + +enum intel_guc_report_status { +INTEL_GUC_REPORT_STATUS_UNKNOWN =0x0 , +INTEL_GUC_REPORT_STATUS_ACKED =0x1 , +INTEL_GUC_REPORT_STATUS_ERROR =0x2 , +INTEL_GUC_REPORT_STATUS_COMPLETE =0x4 , +}; + +enum intel_guc_sleep_state_status { +INTEL_GUC_SLEEP_STATE_SUCCESS =0x1 , +INTEL_GUC_SLEEP_STATE_PREEMPT_TO_IDLE_FAILED =0x2 , + INTEL_GUC_SLEEP_STATE_ENGINE_RESET_FAILED = 0x3 +#define INTEL_GUC_SLEEP_STATE_INVALID_MASK 0x80000000 +}; + +#define GUC_LOG_CONTROL_LOGGING_ENABLED (1 << 0) +#define GUC_LOG_CONTROL_VERBOSITY_SHIFT 4 +#define GUC_LOG_CONTROL_VERBOSITY_MASK (0xF << GUC_LOG_CONTROL_VERBOSITY_SHIFT) +#define GUC_LOG_CONTROL_DEFAULT_LOGGING (1 << 8) + +#endif /* _ABI_GUC_ACTIONS_ABI_H */
drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h new file +106 -0
106 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/abi/guc_communication_mmio_abi.h new file +52 -0
52 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/abi/guc_errors_abi.h new file +14 -0
@@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2014-2021 Intel Corporation +*/ + +#ifndef _ABI_GUC_ERRORS_ABI_H +#define _ABI_GUC_ERRORS_ABI_H + +enum intel_guc_response_status { +INTEL_GUC_RESPONSE_STATUS_SUCCESS =0x0 , +INTEL_GUC_RESPONSE_STATUS_GENERIC_FAIL =0xF000 , +}; + +#endif /* _ABI_GUC_ERRORS_ABI_H */
drivers/gpu/drm/i915/gt/uc/abi/guc_messages_abi.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2014-2021 Intel Corporation +*/ + +#ifndef _ABI_GUC_MESSAGES_ABI_H +#define _ABI_GUC_MESSAGES_ABI_H + +#define INTEL_GUC_MSG_TYPE_SHIFT 28 +#define INTEL_GUC_MSG_TYPE_MASK (0xF << INTEL_GUC_MSG_TYPE_SHIFT) +#define INTEL_GUC_MSG_DATA_SHIFT 16 +#define INTEL_GUC_MSG_DATA_MASK (0xFFF << INTEL_GUC_MSG_DATA_SHIFT) +#define INTEL_GUC_MSG_CODE_SHIFT 0 +#define INTEL_GUC_MSG_CODE_MASK (0xFFFF << INTEL_GUC_MSG_CODE_SHIFT) + +enum intel_guc_msg_type { +INTEL_GUC_MSG_TYPE_REQUEST =0x0 , +INTEL_GUC_MSG_TYPE_RESPONSE =0xF , +}; + +#endif /* _ABI_GUC_MESSAGES_ABI_H */
drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h +6 -197
232 lines not on this page · raw message
Signature · 1 line
2.28.0
PATCH 6/18 drm/i915/guc: Drop guc->interrupts.enabled
In reply to Matthew BrostDrop the variable guc->interrupts.enabled as this variable is just leading to bugs creeping into the code.
e.g. A full GPU reset disables the GuC interrupts but forgot to clear guc->interrupts.enabled, guc->interrupts.enabled being true suppresses interrupts from getting re-enabled and now we are broken.
It is harmless to enable interrupt while already enabled so let's just delete this variable to avoid bugs like this going forward.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 27 +++++++++----------------- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 - 2 files changed, 9 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +9 -18
@@ -96,12 +96,9 @@ static void gen9_enable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (>->irq_lock); -if (!guc->interrupts.enabled) { -WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & - gt->pm_guc_events); - guc->interrupts.enabled = true; -gen6_gt_pm_enable_irq (gt, gt->pm_guc_events); - } +WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & + gt->pm_guc_events); +gen6_gt_pm_enable_irq (gt, gt->pm_guc_events);spin_unlock_irq (>->irq_lock); }
@@ -112,7 +109,6 @@ static void gen9_disable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (>->irq_lock); - guc->interrupts.enabled = false;gen6_gt_pm_disable_irq (gt, gt->pm_guc_events);
@@ -134,18 +130,14 @@ static void gen11_reset_guc_interrupts(struct intel_guc *guc)static void gen11_enable_guc_interrupts (struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); +u32 events =REG_FIELD_PREP (ENGINE1_MASK ,GUC_INTR_GUC2HOST );spin_lock_irq (>->irq_lock); -if (!guc->interrupts.enabled) { -u32 events =REG_FIELD_PREP (ENGINE1_MASK ,GUC_INTR_GUC2HOST ); - -WARN_ON_ONCE (gen11_gt_reset_one_iir (gt,0 ,GEN11_GUC )); -intel_uncore_write (gt->uncore, -GEN11_GUC_SG_INTR_ENABLE , events); -intel_uncore_write (gt->uncore, -GEN11_GUC_SG_INTR_MASK , ~events); - guc->interrupts.enabled = true; - } +WARN_ON_ONCE (gen11_gt_reset_one_iir (gt,0 ,GEN11_GUC )); +intel_uncore_write (gt->uncore, +GEN11_GUC_SG_INTR_ENABLE , events); +intel_uncore_write (gt->uncore, +GEN11_GUC_SG_INTR_MASK , ~events);spin_unlock_irq (>->irq_lock); }
@@ -154,7 +146,6 @@ static void gen11_disable_guc_interrupts(struct intel_guc *guc)struct intel_gt *gt =guc_to_gt (guc);spin_lock_irq (>->irq_lock); - guc->interrupts.enabled = false;intel_uncore_write (gt->uncore,GEN11_GUC_SG_INTR_MASK , ~0 );intel_uncore_write (gt->uncore,GEN11_GUC_SG_INTR_ENABLE ,0 );
drivers/gpu/drm/i915/gt/uc/intel_guc.h +0 -1
@@ -33,7 +33,6 @@ struct intel_guc {unsigned int msg_enabled_mask;struct { -bool enabled;void (*reset)(struct intel_guc *guc);void (*enable)(struct intel_guc *guc);void (*disable)(struct intel_guc *guc);
Signature · 1 line
2.28.0
Re: [Intel-gfx] [PATCH 06/18] drm/i915/guc: Drop guc->interrupts.enabled
Quoted 9 lines · Matthew Brost
Drop the variable
guc->interrupts.enabledas this variable is just leading to bugs creeping into the code.e.g. A full GPU reset disables the GuC interrupts but forgot to clear
guc->interrupts.enabled,guc->interrupts.enabledbeing true suppresses interrupts from getting re-enabled and now we are broken.It is harmless to enable interrupt while already enabled so let's just delete this variable to avoid bugs like this going forward.
Is it worth leaving the enabled flag in place but only using it to trip a WARN to catch such cases in a less catastrophic manner? Or are there valid reasons for calling enable when already enabled?
Either way, it seems like a plausible change and CI is happy with it, so:
John.
Quoted 79 lines
Signed-off-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 27 +++++++++----------------- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 - 2 files changed, 9 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc.c +9
-18@@ -96,12 +96,9 @@ static void gen9_enable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (>->irq_lock); -if (!guc->interrupts.enabled) { -WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & - gt->pm_guc_events); - guc->interrupts.enabled = true; -gen6_gt_pm_enable_irq (gt, gt->pm_guc_events); - } +WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & + gt->pm_guc_events); +gen6_gt_pm_enable_irq (gt, gt->pm_guc_events);spin_unlock_irq (>->irq_lock); }@@ -112,7 +109,6 @@ static void gen9_disable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (>->irq_lock); - guc->interrupts.enabled = false;gen6_gt_pm_disable_irq (gt, gt->pm_guc_events);@@ -134,18 +130,14 @@ static void gen11_reset_guc_interrupts(struct intel_guc *guc)static void gen11_enable_guc_interrupts (struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); +u32 events =REG_FIELD_PREP (ENGINE1_MASK ,GUC_INTR_GUC2HOST );spin_lock_irq (>->irq_lock); -if (!guc->interrupts.enabled) { -u32 events =REG_FIELD_PREP (ENGINE1_MASK ,GUC_INTR_GUC2HOST ); - -WARN_ON_ONCE (gen11_gt_reset_one_iir (gt,0 ,GEN11_GUC )); -intel_uncore_write (gt->uncore, -GEN11_GUC_SG_INTR_ENABLE , events); -intel_uncore_write (gt->uncore, -GEN11_GUC_SG_INTR_MASK , ~events); - guc->interrupts.enabled = true; - } +WARN_ON_ONCE (gen11_gt_reset_one_iir (gt,0 ,GEN11_GUC )); +intel_uncore_write (gt->uncore, +GEN11_GUC_SG_INTR_ENABLE , events); +intel_uncore_write (gt->uncore, +GEN11_GUC_SG_INTR_MASK , ~events);spin_unlock_irq (>->irq_lock); }@@ -154,7 +146,6 @@ static void gen11_disable_guc_interrupts(struct intel_guc *guc)struct intel_gt *gt =guc_to_gt (guc);spin_lock_irq (>->irq_lock); - guc->interrupts.enabled = false;intel_uncore_write (gt->uncore,GEN11_GUC_SG_INTR_MASK , ~0 );intel_uncore_write (gt->uncore,GEN11_GUC_SG_INTR_ENABLE ,0 );drivers/gpu/drm/i915/gt/uc/intel_guc.h +0
-1@@ -33,7 +33,6 @@ struct intel_guc {unsigned int msg_enabled_mask;struct { -bool enabled;void (*reset)(struct intel_guc *guc);void (*enable)(struct intel_guc *guc);void (*disable)(struct intel_guc *guc);
Re: [Intel-gfx] [PATCH 06/18] drm/i915/guc: Drop guc->interrupts.enabled
Quoted 8 lines · John Harrison
Quoted 7 lines · Matthew Brost
Drop the variable
guc->interrupts.enabledas this variable is just leading to bugs creeping into the code.e.g. A full GPU reset disables the GuC interrupts but forgot to clear
guc->interrupts.enabled,guc->interrupts.enabledbeing true suppresses interrupts from getting re-enabled and now we are broken.
Quoted 6 lines
Quoted 2 lines
It is harmless to enable interrupt while already enabled so let's just delete this variable to avoid bugs like this going forward.
Is it worth leaving the enabled flag in place but only using it to trip a WARN to catch such cases in a less catastrophic manner? Or are there valid reasons for calling enable when already enabled?
I don't think so as mentioned above a reset disables these interrupts and if we didn't clear this field the WARN_ON would be triggered making CI unhappy. Yes, the bug would less catastrophic but we'd still have to waste time and energy chasing it.
Matt
Quoted 75 lines
Either way, it seems like a plausible change and CI is happy with it, so:
Reviewed-by John Harrison <[email protected]>John.
Quoted 69 lines
Signed-off-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 27 +++++++++----------------- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 - 2 files changed, 9 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc.c +9
-18@@ -96,12 +96,9 @@ static void gen9_enable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (>->irq_lock); -if (!guc->interrupts.enabled) { -WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & - gt->pm_guc_events); - guc->interrupts.enabled = true; -gen6_gt_pm_enable_irq (gt, gt->pm_guc_events); - } +WARN_ON_ONCE (intel_uncore_read (gt->uncore,GEN8_GT_IIR (2 )) & + gt->pm_guc_events); +gen6_gt_pm_enable_irq (gt, gt->pm_guc_events);spin_unlock_irq (>->irq_lock); }@@ -112,7 +109,6 @@ static void gen9_disable_guc_interrupts(struct intel_guc *guc)assert_rpm_wakelock_held (>->i915->runtime_pm);spin_lock_irq (>->irq_lock); - guc->interrupts.enabled = false;gen6_gt_pm_disable_irq (gt, gt->pm_guc_events);@@ -134,18 +130,14 @@ static void gen11_reset_guc_interrupts(struct intel_guc *guc)static void gen11_enable_guc_interrupts (struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); +u32 events =REG_FIELD_PREP (ENGINE1_MASK ,GUC_INTR_GUC2HOST );spin_lock_irq (>->irq_lock); -if (!guc->interrupts.enabled) { -u32 events =REG_FIELD_PREP (ENGINE1_MASK ,GUC_INTR_GUC2HOST ); - -WARN_ON_ONCE (gen11_gt_reset_one_iir (gt,0 ,GEN11_GUC )); -intel_uncore_write (gt->uncore, -GEN11_GUC_SG_INTR_ENABLE , events); -intel_uncore_write (gt->uncore, -GEN11_GUC_SG_INTR_MASK , ~events); - guc->interrupts.enabled = true; - } +WARN_ON_ONCE (gen11_gt_reset_one_iir (gt,0 ,GEN11_GUC )); +intel_uncore_write (gt->uncore, +GEN11_GUC_SG_INTR_ENABLE , events); +intel_uncore_write (gt->uncore, +GEN11_GUC_SG_INTR_MASK , ~events);spin_unlock_irq (>->irq_lock); }@@ -154,7 +146,6 @@ static void gen11_disable_guc_interrupts(struct intel_guc *guc)struct intel_gt *gt =guc_to_gt (guc);spin_lock_irq (>->irq_lock); - guc->interrupts.enabled = false;intel_uncore_write (gt->uncore,GEN11_GUC_SG_INTR_MASK , ~0 );intel_uncore_write (gt->uncore,GEN11_GUC_SG_INTR_ENABLE ,0 );drivers/gpu/drm/i915/gt/uc/intel_guc.h +0
-1@@ -33,7 +33,6 @@ struct intel_guc {unsigned int msg_enabled_mask;struct { -bool enabled;void (*reset)(struct intel_guc *guc);void (*enable)(struct intel_guc *guc);void (*disable)(struct intel_guc *guc);
PATCH 7/18 drm/i915/guc: Stop using fence/status from CTB descriptor
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
Stop using fence/status from CTB descriptor as future GuC ABI will no longer support replies over CTB descriptor.
--- .../gt/uc/abi/guc_communication_ctb_abi.h | 4 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 72 ++----------------- 2 files changed, 6 insertions(+), 70 deletions(-)
drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.h +2 -2
@@ -71,8 +71,8 @@ struct guc_ct_buffer_desc {u32 head;/* offset updated by GuC*/ u32 tail;/* offset updated by owner */ u32 is_in_error;/* error indicator */ -u32 fence;/* fence updated by GuC */ -u32 status;/* status updated by GuC */ +u32 reserved1; +u32 reserved2;u32 owner;/* id of the channel owner */ u32 owner_sub_id;/* owner-defined field for extra tracking */ u32 reserved[5 ];
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4 -68
113 lines not on this page · raw message
Signature · 1 line
2.28.0
PATCH 8/18 drm/i915: Promote ptrdiff() to i915_utils.h
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
Generic helpers should be placed in i915_utils.h.
--- drivers/gpu/drm/i915/i915_utils.h | 5 +++++ drivers/gpu/drm/i915/i915_vma.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_utils.h +5 -0
@@ -201,6 +201,11 @@ __check_struct_size(size_t base, size_t arr, size_t count, size_t *size) __T; \ }) +static __always_inline ptrdiff_t ptrdiff(const void *a, const void *b) +{ +return a - b; +} +/* * container_of_user: Extract the superclass from a pointer to a member. *
drivers/gpu/drm/i915/i915_vma.h +0 -5
@@ -151,11 +151,6 @@ static inline void i915_vma_put(struct i915_vma *vma)i915_gem_object_put (vma->obj); } -static __always_inline ptrdiff_t ptrdiff(const void *a, const void *b) -{ -return a - b; -} - static inline long i915_vma_compare(struct i915_vma *vma, struct i915_address_space *vm,
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/18 drm/i915/guc: Only rely on own CTB size
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
In upcoming GuC firmware, CTB size will be removed from the CTB descriptor so we must keep it locally for any calculations.
While around, improve some debug messages and helpers.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 55 +++++++++++++++++------ drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 2 + 2 files changed, 43 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +41 -14
@@ -90,6 +90,24 @@ static void guc_ct_buffer_desc_init(struct guc_ct_buffer_desc *desc, desc->owner =CTB_OWNER_HOST ; } +static void guc_ct_buffer_reset (struct intel_guc_ct_buffer *ctb,u32 cmds_addr) +{ +guc_ct_buffer_desc_init (ctb->desc, cmds_addr, ctb->size); +} + +static void guc_ct_buffer_init (struct intel_guc_ct_buffer *ctb, +struct guc_ct_buffer_desc *desc, +u32 *cmds,u32 size) +{ +GEM_BUG_ON (size %4 ); + + ctb->desc = desc; + ctb->cmds = cmds; + ctb->size = size; + +guc_ct_buffer_reset (ctb,0 ); +} +static int guc_action_register_ct_buffer (struct intel_guc *guc,u32 desc_addr,u32 type)
@@ -148,7 +166,10 @@ static int ct_deregister_buffer(struct intel_guc_ct *ct, u32 type)int intel_guc_ct_init (struct intel_guc_ct *ct) {struct intel_guc *guc =ct_to_guc (ct); +struct guc_ct_buffer_desc *desc; +u32 blob_size;void *blob; +u32 *cmds;int err;int i;
@@ -176,19 +197,24 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)* other code will need updating as well. */ - err =intel_guc_allocate_and_map_vma (guc,PAGE_SIZE , &ct->vma, &blob); + blob_size =PAGE_SIZE ; + err =intel_guc_allocate_and_map_vma (guc, blob_size, &ct->vma, &blob);if (unlikely (err)) { -CT_ERROR (ct,"Failed to allocate CT channel (err=%d)\n" , err); +CT_PROBE_ERROR (ct,"Failed to allocate %u for CTB data (%pe)\n" , + blob_size,ERR_PTR (err));return err; } -CT_DEBUG (ct,"vma base=%#x\n" ,intel_guc_ggtt_offset (guc, ct->vma)); +CT_DEBUG (ct,"base=%#x size=%u\n" ,intel_guc_ggtt_offset (guc, ct->vma), blob_size);/* store pointers to desc and cmds */ for (i =0 ; i <ARRAY_SIZE (ct->ctbs); i++) {GEM_BUG_ON ((i !=CTB_SEND ) && (i !=CTB_RECV )); - ct->ctbs[i].desc = blob +PAGE_SIZE /4 * i; - ct->ctbs[i].cmds = blob +PAGE_SIZE /4 * i +PAGE_SIZE /2 ; + + desc = blob +PAGE_SIZE /4 * i; + cmds = blob +PAGE_SIZE /4 * i +PAGE_SIZE /2 ; + +guc_ct_buffer_init (&ct->ctbs[i], desc, cmds,PAGE_SIZE /4 ); }return 0 ;
@@ -217,7 +243,7 @@ void intel_guc_ct_fini(struct intel_guc_ct *ct)int intel_guc_ct_enable (struct intel_guc_ct *ct) {struct intel_guc *guc =ct_to_guc (ct); -u32 base, cmds, size; +u32 base, cmds;int err;int i;
@@ -232,10 +258,11 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)*/ for (i =0 ; i <ARRAY_SIZE (ct->ctbs); i++) {GEM_BUG_ON ((i !=CTB_SEND ) && (i !=CTB_RECV )); + cmds = base +PAGE_SIZE /4 * i +PAGE_SIZE /2 ; - size =PAGE_SIZE /4 ; -CT_DEBUG (ct,"%d: addr=%#x size=%u\n" , i, cmds, size); -guc_ct_buffer_desc_init (ct->ctbs[i].desc, cmds, size); +CT_DEBUG (ct,"%d: cmds addr=%#x\n" , i, cmds); + +guc_ct_buffer_reset (&ct->ctbs[i], cmds); }/*
@@ -259,7 +286,7 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct) err_deregister:ct_deregister_buffer (ct,INTEL_GUC_CT_BUFFER_TYPE_RECV ); err_out: -CT_PROBE_ERROR (ct,"Failed to open channel (err=%d)\n" , err); +CT_PROBE_ERROR (ct,"Failed to enable CTB (%pe)\n" ,ERR_PTR (err));return err; }
@@ -314,7 +341,7 @@ static int ct_write(struct intel_guc_ct *ct,struct guc_ct_buffer_desc *desc = ctb->desc;u32 head = desc->head;u32 tail = desc->tail; -u32 size = desc->size; +u32 size = ctb->size;u32 used;u32 header;u32 *cmds = ctb->cmds;
@@ -323,7 +350,7 @@ static int ct_write(struct intel_guc_ct *ct,if (unlikely (desc->is_in_error))return -EPIPE ; -if (unlikely (!IS_ALIGNED (head | tail | size,4 ) || +if (unlikely (!IS_ALIGNED (head | tail,4 ) || (tail | head) >= size)) goto corrupted;
@@ -530,7 +557,7 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)struct guc_ct_buffer_desc *desc = ctb->desc;u32 head = desc->head;u32 tail = desc->tail; -u32 size = desc->size; +u32 size = ctb->size;u32 *cmds = ctb->cmds;s32 available;unsigned int len;
@@ -539,7 +566,7 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)if (unlikely (desc->is_in_error))return -EPIPE ; -if (unlikely (!IS_ALIGNED (head | tail | size,4 ) || +if (unlikely (!IS_ALIGNED (head | tail,4 ) || (tail | head) >= size)) goto corrupted;
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h +2 -0
@@ -29,10 +29,12 @@ struct intel_guc;* * @desc: pointer to the buffer descriptor * @cmds: pointer to the commands buffer +* @size: size of the commands buffer */ struct intel_guc_ct_buffer {struct guc_ct_buffer_desc *desc;u32 *cmds; +u32 size; };
Signature · 1 line
2.28.0
PATCH 10/18 drm/i915/guc: Don't repeat CTB layout calculations
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
We can retrieve offsets to cmds buffers and descriptor from actual pointers that we already keep locally.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +10 -6
@@ -244,6 +244,7 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct) {struct intel_guc *guc =ct_to_guc (ct);u32 base, cmds; +void *blob;int err;int i;
@@ -251,15 +252,18 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)/* vma should be already allocated and map'ed */ GEM_BUG_ON (!ct->vma); +GEM_BUG_ON (!i915_gem_object_has_pinned_pages (ct->vma->obj)); base =intel_guc_ggtt_offset (guc, ct->vma); -/* (re)initialize descriptors -* cmds buffers are in the second half of the blob page -*/ +/* blob should start with send descriptor */ + blob =__px_vaddr (ct->vma->obj); +GEM_BUG_ON (blob != ct->ctbs[CTB_SEND ].desc); + +/* (re)initialize descriptors */ for (i =0 ; i <ARRAY_SIZE (ct->ctbs); i++) {GEM_BUG_ON ((i !=CTB_SEND ) && (i !=CTB_RECV )); - cmds = base +PAGE_SIZE /4 * i +PAGE_SIZE /2 ; + cmds = base +ptrdiff (ct->ctbs[i].cmds, blob);CT_DEBUG (ct,"%d: cmds addr=%#x\n" , i, cmds);guc_ct_buffer_reset (&ct->ctbs[i], cmds);
@@ -269,12 +273,12 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)* Register both CT buffers starting with RECV buffer. * Descriptors are in first half of the blob. */ - err =ct_register_buffer (ct, base +PAGE_SIZE /4 *CTB_RECV , + err =ct_register_buffer (ct, base +ptrdiff (ct->ctbs[CTB_RECV ].desc, blob),INTEL_GUC_CT_BUFFER_TYPE_RECV );if (unlikely (err)) goto err_out; - err =ct_register_buffer (ct, base +PAGE_SIZE /4 *CTB_SEND , + err =ct_register_buffer (ct, base +ptrdiff (ct->ctbs[CTB_SEND ].desc, blob),INTEL_GUC_CT_BUFFER_TYPE_SEND );if (unlikely (err)) goto err_deregister;
Signature · 1 line
2.28.0
PATCH 11/18 drm/i915/guc: Replace CTB array with explicit members
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
Upcoming GuC firmware will always require just two CTBs and we also plan to configure them with different sizes, so definining them as array is no longer suitable.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 46 ++++++++++++----------- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 7 +++- 2 files changed, 30 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +25 -21
@@ -168,10 +168,10 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)struct intel_guc *guc =ct_to_guc (ct);struct guc_ct_buffer_desc *desc;u32 blob_size; +u32 cmds_size;void *blob;u32 *cmds;int err; -int i;GEM_BUG_ON (ct->vma);
@@ -207,15 +207,23 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)CT_DEBUG (ct,"base=%#x size=%u\n" ,intel_guc_ggtt_offset (guc, ct->vma), blob_size); -/* store pointers to desc and cmds */ -for (i =0 ; i <ARRAY_SIZE (ct->ctbs); i++) { -GEM_BUG_ON ((i !=CTB_SEND ) && (i !=CTB_RECV )); +/* store pointers to desc and cmds for send ctb */ + desc = blob; + cmds = blob +PAGE_SIZE /2 ; + cmds_size =PAGE_SIZE /4 ; +CT_DEBUG (ct,"%s desc %#lx cmds %#lx size %u\n" ,"send" , +ptrdiff (desc, blob),ptrdiff (cmds, blob), cmds_size); - desc = blob +PAGE_SIZE /4 * i; - cmds = blob +PAGE_SIZE /4 * i +PAGE_SIZE /2 ; +guc_ct_buffer_init (&ct->ctbs.send, desc, cmds, cmds_size); -guc_ct_buffer_init (&ct->ctbs[i], desc, cmds,PAGE_SIZE /4 ); - } +/* store pointers to desc and cmds for recv ctb */ + desc = blob +PAGE_SIZE /4 ; + cmds = blob +PAGE_SIZE /4 +PAGE_SIZE /2 ; + cmds_size =PAGE_SIZE /4 ; +CT_DEBUG (ct,"%s desc %#lx cmds %#lx size %u\n" ,"recv" , +ptrdiff (desc, blob),ptrdiff (cmds, blob), cmds_size); + +guc_ct_buffer_init (&ct->ctbs.recv, desc, cmds, cmds_size);return 0 ; }
@@ -246,7 +254,6 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)u32 base, cmds;void *blob;int err; -int i;GEM_BUG_ON (ct->enabled);
@@ -257,28 +264,25 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)/* blob should start with send descriptor */ blob =__px_vaddr (ct->vma->obj); -GEM_BUG_ON (blob != ct->ctbs[CTB_SEND ].desc); +GEM_BUG_ON (blob != ct->ctbs.send.desc);/* (re)initialize descriptors */ -for (i =0 ; i <ARRAY_SIZE (ct->ctbs); i++) { -GEM_BUG_ON ((i !=CTB_SEND ) && (i !=CTB_RECV )); + cmds = base +ptrdiff (ct->ctbs.send.cmds, blob); +guc_ct_buffer_reset (&ct->ctbs.send, cmds); - cmds = base +ptrdiff (ct->ctbs[i].cmds, blob); -CT_DEBUG (ct,"%d: cmds addr=%#x\n" , i, cmds); - -guc_ct_buffer_reset (&ct->ctbs[i], cmds); - } + cmds = base +ptrdiff (ct->ctbs.recv.cmds, blob); +guc_ct_buffer_reset (&ct->ctbs.recv, cmds);/* * Register both CT buffers starting with RECV buffer. * Descriptors are in first half of the blob. */ - err =ct_register_buffer (ct, base +ptrdiff (ct->ctbs[CTB_RECV ].desc, blob), + err =ct_register_buffer (ct, base +ptrdiff (ct->ctbs.recv.desc, blob),INTEL_GUC_CT_BUFFER_TYPE_RECV );if (unlikely (err)) goto err_out; - err =ct_register_buffer (ct, base +ptrdiff (ct->ctbs[CTB_SEND ].desc, blob), + err =ct_register_buffer (ct, base +ptrdiff (ct->ctbs.send.desc, blob),INTEL_GUC_CT_BUFFER_TYPE_SEND );if (unlikely (err)) goto err_deregister;
@@ -341,7 +345,7 @@ static int ct_write(struct intel_guc_ct *ct, u32 len /* in dwords */, u32 fence) { -struct intel_guc_ct_buffer *ctb = &ct->ctbs[CTB_SEND ]; +struct intel_guc_ct_buffer *ctb = &ct->ctbs.send;struct guc_ct_buffer_desc *desc = ctb->desc;u32 head = desc->head;u32 tail = desc->tail;
@@ -557,7 +561,7 @@ static inline bool ct_header_is_response(u32 header)static int ct_read (struct intel_guc_ct *ct,u32 *data) { -struct intel_guc_ct_buffer *ctb = &ct->ctbs[CTB_RECV ]; +struct intel_guc_ct_buffer *ctb = &ct->ctbs.recv;struct guc_ct_buffer_desc *desc = ctb->desc;u32 head = desc->head;u32 tail = desc->tail;
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h +5 -2
@@ -47,8 +47,11 @@ struct intel_guc_ct {struct i915_vma *vma;bool enabled; -/* buffers for sending(0) and receiving(1) commands */ -struct intel_guc_ct_buffer ctbs[2 ]; +/* buffers for sending and receiving commands */ +struct { +struct intel_guc_ct_buffer send; +struct intel_guc_ct_buffer recv; + } ctbs;struct {u32 last_fence;/* last fence used to send request */
Signature · 1 line
2.28.0
PATCH 12/18 drm/i915/guc: Update sizes of CTB buffers
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
Future GuC will require CTB buffers sizes to be multiple of 4K. Make these changes now as this shouldn't impact us too much.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 60 ++++++++++++----------- 1 file changed, 32 insertions(+), 28 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +32 -28
@@ -38,6 +38,32 @@ static inline struct drm_device *ct_to_drm(struct intel_guc_ct *ct)#define CT_PROBE_ERROR (_ct, _fmt, ...) \ i915_probe_error(ct_to_i915(ct), "CT: " _fmt, ##__VA_ARGS__) +/** +* DOC: CTB Blob +* +* We allocate single blob to hold both CTB descriptors and buffers: +* +* +--------+-----------------------------------------------+------+ +* | offset | contents | size | +* +========+===============================================+======+ +* | 0x0000 | H2G `CTB Descriptor`_ (send) | | +* +--------+-----------------------------------------------+ 4K | +* | 0x0800 | G2H `CTB Descriptor`_ (recv) | | +* +--------+-----------------------------------------------+------+ +* | 0x1000 | H2G `CT Buffer`_ (send) | n*4K | +* | | | | +* +--------+-----------------------------------------------+------+ +* | 0x1000 | G2H `CT Buffer`_ (recv) | m*4K | +* | + n*4K | | | +* +--------+-----------------------------------------------+------+ +* +* Size of each `CT Buffer`_ must be multiple of 4K. +* As we don't expect too many messages, for now use minimum sizes. +*/ +#define CTB_DESC_SIZE ALIGN(sizeof(struct guc_ct_buffer_desc), SZ_2K) +#define CTB_H2G_BUFFER_SIZE (SZ_4K) +#define CTB_G2H_BUFFER_SIZE (SZ_4K) +struct ct_request {struct list_head link;u32 fence;
@@ -175,29 +201,7 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)GEM_BUG_ON (ct->vma); -/* We allocate 1 page to hold both descriptors and both buffers. -* ___________..................... -* |desc (SEND)| : -* |___________| PAGE/4 -* :___________....................: -* |desc (RECV)| : -* |___________| PAGE/4 -* :_______________________________: -* |cmds (SEND) | -* | PAGE/4 -* |_______________________________| -* |cmds (RECV) | -* | PAGE/4 -* |_______________________________| -* -* Each message can use a maximum of 32 dwords and we don't expect to -* have more than 1 in flight at any time, so we have enough space. -* Some logic further ahead will rely on the fact that there is only 1 -* page and that it is always mapped, so if the size is changed the -* other code will need updating as well. -*/ - - blob_size =PAGE_SIZE ; + blob_size =2 *CTB_DESC_SIZE +CTB_H2G_BUFFER_SIZE +CTB_G2H_BUFFER_SIZE ; err =intel_guc_allocate_and_map_vma (guc, blob_size, &ct->vma, &blob);if (unlikely (err)) { CT_PROBE_ERROR(ct, "Failed to allocate %u for CTB data (%pe)\n",
@@ -209,17 +213,17 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)/* store pointers to desc and cmds for send ctb */ desc = blob; - cmds = blob +PAGE_SIZE /2 ; - cmds_size =PAGE_SIZE /4 ; + cmds = blob +2 *CTB_DESC_SIZE ; + cmds_size =CTB_H2G_BUFFER_SIZE ;CT_DEBUG (ct,"%s desc %#lx cmds %#lx size %u\n" ,"send" ,ptrdiff (desc, blob),ptrdiff (cmds, blob), cmds_size);guc_ct_buffer_init (&ct->ctbs.send, desc, cmds, cmds_size);/* store pointers to desc and cmds for recv ctb */ - desc = blob +PAGE_SIZE /4 ; - cmds = blob +PAGE_SIZE /4 +PAGE_SIZE /2 ; - cmds_size =PAGE_SIZE /4 ; + desc = blob +CTB_DESC_SIZE ; + cmds = blob +2 *CTB_DESC_SIZE +CTB_H2G_BUFFER_SIZE ; + cmds_size =CTB_G2H_BUFFER_SIZE ;CT_DEBUG (ct,"%s desc %#lx cmds %#lx size %u\n" ,"recv" ,ptrdiff (desc, blob),ptrdiff (cmds, blob), cmds_size);
Signature · 1 line
2.28.0
PATCH 13/18 drm/i915/guc: Relax CTB response timeout
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
In upcoming patch we will allow more CTB requests to be sent in parallel to the GuC for processing, so we shouldn't assume any more that GuC will always reply without 10ms.
Use bigger value from CONFIG_DRM_I915_GUC_CTB_TIMEOUT instead.
v2: Add CONFIG_DRM_I915_GUC_CTB_TIMEOUT config option
--- drivers/gpu/drm/i915/Kconfig.profile | 9 +++++++++ drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/Kconfig.profile +9 -0
@@ -38,6 +38,15 @@ config DRM_I915_USERFAULT_AUTOSUSPEND May be 0 to disable the extra delay and solely use the device level runtime pm autosuspend delay tunable. +config DRM_I915_GUC_CTB_TIMEOUT + int "How long to wait for the GuC to make forward progress on CTBs (ms)" + default 1500 # milliseconds + help + Configures the default timeout waiting for GuC the to make forward + progress on CTBs. e.g. Waiting for a response to requeset. + + A minimum value of 10 ms is allowed. + config DRM_I915_HEARTBEAT_INTERVAL int "Interval between heartbeat pulses (ms)" default 2500 # milliseconds
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4 -1
@@ -436,6 +436,7 @@ static int ct_write(struct intel_guc_ct *ct,*/ static int wait_for_ct_request_update (struct ct_request *req,u32 *status) { +long timeout;int err;/*
@@ -443,10 +444,12 @@ static int wait_for_ct_request_update(struct ct_request *req, u32 *status)* up to that length of time, then switch to a slower sleep-wait loop. * No GuC command should ever take longer than 10ms. */ + timeout =max (10 ,CONFIG_DRM_I915_GUC_CTB_TIMEOUT ); +#define done INTEL_GUC_MSG_IS_RESPONSE(READ_ONCE(req->status)) err =wait_for_us (done,10 );if (err) - err =wait_for (done,10 ); + err =wait_for (done, timeout);#undef doneif (unlikely (err))
Signature · 1 line
2.28.0
Re: [PATCH 13/18] drm/i915/guc: Relax CTB response timeout
Quoted 23 lines · Matthew Brost
From: Michal Wajdeczko <[email protected]>
In upcoming patch we will allow more CTB requests to be sent in parallel to the GuC for processing, so we shouldn't assume any more that GuC will always reply without 10ms.
Use bigger value from
CONFIG_DRM_I915_GUC_CTB_TIMEOUTinstead.v2: Add
CONFIG_DRM_I915_GUC_CTB_TIMEOUTconfig optionSigned-off-by Michal Wajdeczko <[email protected]>Signed-off-by Matthew Brost <[email protected]>Reviewed-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/Kconfig.profile | 9 +++++++++ drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/Kconfig.profile +0
-0
drivers/gpu/drm/i915/Kconfig.profile config DRM_I915_USERFAULT_AUTOSUSPEND · line 42
Quoted 5 lines
drivers/gpu/drm/i915/Kconfig.profile +2
-0@@ -38,6 +38,15 @@ config DRM_I915_USERFAULT_AUTOSUSPEND May be 0 to disable the extra delay and solely use the device level runtime pm autosuspend delay tunable. +config DRM_I915_GUC_CTB_TIMEOUT + int "How long to wait for the GuC to make forward progress on CTBs (ms)"
maybe worth to provide here explicit allowed range:
range 10 60000
and then we can skip runtime adjustment for minimum 10ms timeout
drivers/gpu/drm/i915/Kconfig.profile config DRM_I915_USERFAULT_AUTOSUSPEND · line 46
Quoted 4 lines
drivers/gpu/drm/i915/Kconfig.profile +4
-0+ default 1500 # milliseconds + help + Configures the default timeout waiting for GuC the to make forward + progress on CTBs. e.g. Waiting for a response to requeset.
typo
Quoted 33 lines
drivers/gpu/drm/i915/Kconfig.profile +3
-0+ + A minimum value of 10 ms is allowed. + config DRM_I915_HEARTBEAT_INTERVAL int "Interval between heartbeat pulses (ms)" default 2500 # millisecondsdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4
-1@@ -436,6 +436,7 @@ static int ct_write(struct intel_guc_ct *ct,*/ static int wait_for_ct_request_update (struct ct_request *req,u32 *status) { +long timeout;int err;/* @@ -443,10 +444,12 @@ static int wait_for_ct_request_update(struct ct_request *req, u32 *status)* up to that length of time, then switch to a slower sleep-wait loop. * No GuC command should ever take longer than 10ms. */ + timeout =max (10 ,CONFIG_DRM_I915_GUC_CTB_TIMEOUT ); +#define done INTEL_GUC_MSG_IS_RESPONSE(READ_ONCE(req->status)) err =wait_for_us (done,10 );if (err) - err =wait_for (done,10 ); + err =wait_for (done, timeout);#undef doneif (unlikely (err))
Re: [PATCH 13/18] drm/i915/guc: Relax CTB response timeout
Quoted 29 lines · Michal Wajdeczko
Quoted 26 lines · Matthew Brost
From: Michal Wajdeczko <[email protected]>
In upcoming patch we will allow more CTB requests to be sent in parallel to the GuC for processing, so we shouldn't assume any more that GuC will always reply without 10ms.
Use bigger value from
CONFIG_DRM_I915_GUC_CTB_TIMEOUTinstead.v2: Add
CONFIG_DRM_I915_GUC_CTB_TIMEOUTconfig optionSigned-off-by Michal Wajdeczko <[email protected]>Signed-off-by Matthew Brost <[email protected]>Reviewed-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/Kconfig.profile | 9 +++++++++ drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/Kconfig.profile +0
-0@@ -38,6 +38,15 @@ config DRM_I915_USERFAULT_AUTOSUSPEND May be 0 to disable the extra delay and solely use the device level runtime pm autosuspend delay tunable.
Quoted 8 lines
drivers/gpu/drm/i915/Kconfig.profile config DRM_I915_USERFAULT_AUTOSUSPEND · line 42
Quoted 2 lines
drivers/gpu/drm/i915/Kconfig.profile +2
-0+config DRM_I915_GUC_CTB_TIMEOUT + int "How long to wait for the GuC to make forward progress on CTBs (ms)"maybe worth to provide here explicit allowed range:
range 10 60000and then we can skip runtime adjustment for minimum 10ms timeout
Didn't know this option, done.
Quoted 8 lines
drivers/gpu/drm/i915/Kconfig.profile config DRM_I915_USERFAULT_AUTOSUSPEND · line 46
Quoted 5 lines
drivers/gpu/drm/i915/Kconfig.profile +4
-0+ default 1500 # milliseconds + help + Configures the default timeout waiting for GuC the to make forward + progress on CTBs. e.g. Waiting for a response to requeset.typo
Fixed.
Matt
Quoted 31 lines
Quoted 31 lines
drivers/gpu/drm/i915/Kconfig.profile +3
-0+ + A minimum value of 10 ms is allowed. + config DRM_I915_HEARTBEAT_INTERVAL int "Interval between heartbeat pulses (ms)" default 2500 # millisecondsdrivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4
-1@@ -436,6 +436,7 @@ static int ct_write(struct intel_guc_ct *ct,*/ static int wait_for_ct_request_update (struct ct_request *req,u32 *status) { +long timeout;int err;/* @@ -443,10 +444,12 @@ static int wait_for_ct_request_update(struct ct_request *req, u32 *status)* up to that length of time, then switch to a slower sleep-wait loop. * No GuC command should ever take longer than 10ms. */ + timeout =max (10 ,CONFIG_DRM_I915_GUC_CTB_TIMEOUT ); +#define done INTEL_GUC_MSG_IS_RESPONSE(READ_ONCE(req->status)) err =wait_for_us (done,10 );if (err) - err =wait_for (done,10 ); + err =wait_for (done, timeout);#undef done
Quoted 2 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static int wait_for_ct_request_update(struct ct_request *req, u32 *status) · line 455
Quoted 2 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0
-0if (unlikely (err))
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 14/18 drm/i915/guc: Start protecting access to CTB descriptors
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
We want to stop using guc.send_mutex while sending CTB messages so we have to start protecting access to CTB send descriptor.
For completeness protect also CTB receive descriptor.
Add spinlock to struct intel_guc_ct_buffer and start using it.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 14 ++++++++++++-- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 2 ++ 2 files changed, 14 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +12 -2
@@ -89,6 +89,8 @@ static void ct_incoming_request_worker_func(struct work_struct *w);*/ void intel_guc_ct_init_early (struct intel_guc_ct *ct) { +spin_lock_init (&ct->ctbs.send.lock); +spin_lock_init (&ct->ctbs.recv.lock);spin_lock_init (&ct->requests.lock);INIT_LIST_HEAD (&ct->requests.pending);INIT_LIST_HEAD (&ct->requests.incoming);
@@ -476,17 +478,22 @@ static int ct_send(struct intel_guc_ct *ct,GEM_BUG_ON (len & ~GUC_CT_MSG_LEN_MASK );GEM_BUG_ON (!response_buf && response_buf_size); +spin_lock_irqsave (&ct->ctbs.send.lock, flags); + fence =ct_get_next_fence (ct); request.fence = fence; request.status =0 ; request.response_len = response_buf_size; request.response_buf = response_buf; -spin_lock_irqsave (&ct->requests.lock, flags); +spin_lock (&ct->requests.lock);list_add_tail (&request.link, &ct->requests.pending); -spin_unlock_irqrestore (&ct->requests.lock, flags); +spin_unlock (&ct->requests.lock); err =ct_write (ct, action, len, fence); + +spin_unlock_irqrestore (&ct->ctbs.send.lock, flags); +if (unlikely (err)) goto unlink;
@@ -822,6 +829,7 @@ static int ct_handle_request(struct intel_guc_ct *ct, const u32 *msg)void intel_guc_ct_event_handler (struct intel_guc_ct *ct) {u32 msg[GUC_CT_MSG_LEN_MASK +1 ];/* one extra dw for the header */ +unsigned long flags;int err =0 ;if (unlikely (!ct->enabled)) {
@@ -830,7 +838,9 @@ void intel_guc_ct_event_handler(struct intel_guc_ct *ct) } do { + spin_lock_irqsave(&ct->ctbs.recv.lock, flags); err = ct_read(ct, msg); + spin_unlock_irqrestore(&ct->ctbs.recv.lock, flags); if (err) break;
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h +2 -0
@@ -27,11 +27,13 @@ struct intel_guc;* record (command transport buffer descriptor) and the actual buffer which * holds the commands. * +* @lock: protects access to the commands buffer and buffer descriptor * @desc: pointer to the buffer descriptor * @cmds: pointer to the commands buffer * @size: size of the commands buffer */ struct intel_guc_ct_buffer { +spinlock_t lock;struct guc_ct_buffer_desc *desc;u32 *cmds;u32 size;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 15/18 drm/i915/guc: Ensure H2G buffer updates visible before tail update
In reply to Matthew BrostEnsure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple wmb() for SMEM and is register write for LMEM. This is needed if more than 1 H2G can be inflight at once.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +18 -0
@@ -328,6 +328,18 @@ static u32 ct_get_next_fence(struct intel_guc_ct *ct)return ++ct->requests.last_fence; } +static void write_barrier (struct intel_guc_ct *ct) { +struct intel_guc *guc =ct_to_guc (ct); +struct intel_gt *gt =guc_to_gt (guc); + +if (i915_gem_object_is_lmem (guc->ct.vma->obj)) { +GEM_BUG_ON (guc->send_regs.fw_domains); +intel_uncore_write_fw (gt->uncore,GEN11_SOFT_SCRATCH (0 ),0 ); + }else { +wmb (); + } +} +/** * DOC: CTB Host to GuC request *
@@ -411,6 +423,12 @@ static int ct_write(struct intel_guc_ct *ct, }GEM_BUG_ON (tail > size); +/* +* make sure H2G buffer update and LRC tail update (if this triggering a +* submission) are visible before updating the descriptor tail +*/ +write_barrier (ct); +/* now update desc tail (back in bytes) */ desc->tail = tail *4 ;return 0 ;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 15/18] drm/i915/guc: Ensure H2G buffer updates visible before tail update
Quoted 16 lines · Matthew Brost
Ensure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple
wmb()for SMEM and is register write for LMEM. This is needed if more than 1 H2G can be inflight at once.Signed-off-by Matthew Brost <[email protected]>Cc Michal Wajdeczko <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0
-0
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static u32 ct_get_next_fence(struct intel_guc_ct *ct) · line 337
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +7
-0@@ -328,6 +328,18 @@ static u32 ct_get_next_fence(struct intel_guc_ct *ct)return ++ct->requests.last_fence; } +static void write_barrier (struct intel_guc_ct *ct) { +struct intel_guc *guc =ct_to_guc (ct); +struct intel_gt *gt =guc_to_gt (guc); + +if (i915_gem_object_is_lmem (guc->ct.vma->obj)) { +GEM_BUG_ON (guc->send_regs.fw_domains); +intel_uncore_write_fw (gt->uncore,GEN11_SOFT_SCRATCH (0 ),0 );
hmm, as this is one of the GuC scratch registers used for H2G MMIO communication, writing 0 there might be interpreted by the GuC as new request with action=0 and might results in extra processing/logging on GuC side, and, since from here we don't protect access to this register by send_mutex, we can corrupt other MMIO message being prepared from different thread, ... can't we use other register ?
Quoted 12 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +5
-0+ }else { +wmb (); + } +} +/** * DOC: CTB Host to GuC request * @@ -411,6 +423,12 @@ static int ct_write(struct intel_guc_ct *ct, }GEM_BUG_ON (tail > size);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static int ct_write(struct intel_guc_ct *ct, · line 434
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +6
-0+/* +* make sure H2G buffer update and LRC tail update (if this triggering a +* submission) are visible before updating the descriptor tail +*/ +write_barrier (ct); +/* now update desc tail (back in bytes) */ desc->tail = tail *4 ;return 0 ;
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 15/18] drm/i915/guc: Ensure H2G buffer updates visible before tail update
Quoted 22 lines · Michal Wajdeczko
Quoted 19 lines · Matthew Brost
Ensure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple
wmb()for SMEM and is register write for LMEM. This is needed if more than 1 H2G can be inflight at once.Signed-off-by Matthew Brost <[email protected]>Cc Michal Wajdeczko <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0
-0@@ -328,6 +328,18 @@ static u32 ct_get_next_fence(struct intel_guc_ct *ct)return ++ct->requests.last_fence; }
Quoted 15 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static u32 ct_get_next_fence(struct intel_guc_ct *ct) · line 337
Quoted 7 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +7
-0+static void write_barrier (struct intel_guc_ct *ct) { +struct intel_guc *guc =ct_to_guc (ct); +struct intel_gt *gt =guc_to_gt (guc); + +if (i915_gem_object_is_lmem (guc->ct.vma->obj)) { +GEM_BUG_ON (guc->send_regs.fw_domains); +intel_uncore_write_fw (gt->uncore,GEN11_SOFT_SCRATCH (0 ),0 );hmm, as this is one of the GuC scratch registers used for H2G MMIO communication, writing 0 there might be interpreted by the GuC as new request with action=0 and might results in extra processing/logging on GuC side, and, since from here we don't protect access to this register by
send_mutex, we can corrupt other MMIO message being prepared from different thread, ... can't we use other register ?
Hmm, this code has been internal for a long time and we haven't seen an issues. MMIOs are always attempted to be processed each interrupt and then CTBs are processed next. A value a 0 in scratch0 results in no MMIOs being processed as a value of 0 is a reserved action which translates to a NOP.
Also in the current i915 once CTBs are enabled MMIOs are never used. That being said, I think once we transition to the new interface + enable suspend on a VF MMIOs might be used.
With that I purpose that we merge this as is with a comment saying if we ever mix CTBs and MMIOs we need to find another MMIO register. I don't changing this now is worth delaying upstreaming this and also any change we make now will make us lose confidence in code that has been thoroughly tested.
Matt
Quoted 22 lines
Quoted 22 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +11
-0+ }else { +wmb (); + } +} +/** * DOC: CTB Host to GuC request * @@ -411,6 +423,12 @@ static int ct_write(struct intel_guc_ct *ct, }GEM_BUG_ON (tail > size); +/* +* make sure H2G buffer update and LRC tail update (if this triggering a +* submission) are visible before updating the descriptor tail +*/ +write_barrier (ct); +/* now update desc tail (back in bytes) */ desc->tail = tail *4 ;return 0 ;
John Harrison
Reviewed-byRe: [Intel-gfx] [PATCH 15/18] drm/i915/guc: Ensure H2G buffer updates visible before tail update
Quoted 45 lines · Matthew Brost
Quoted 20 lines · Michal Wajdeczko
Quoted 19 lines · Matthew Brost
Ensure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple
wmb()for SMEM and is register write for LMEM. This is needed if more than 1 H2G can be inflight at once.Signed-off-by Matthew Brost <[email protected]>Cc Michal Wajdeczko <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0
-0@@ -328,6 +328,18 @@ static u32 ct_get_next_fence(struct intel_guc_ct *ct)return ++ct->requests.last_fence; }Quoted 14 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static u32 ct_get_next_fence(struct intel_guc_ct *ct) · line 337
Quoted 7 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +7
-0+static void write_barrier (struct intel_guc_ct *ct) { +struct intel_guc *guc =ct_to_guc (ct); +struct intel_gt *gt =guc_to_gt (guc); + +if (i915_gem_object_is_lmem (guc->ct.vma->obj)) { +GEM_BUG_ON (guc->send_regs.fw_domains); +intel_uncore_write_fw (gt->uncore,GEN11_SOFT_SCRATCH (0 ),0 );hmm, as this is one of the GuC scratch registers used for H2G MMIO communication, writing 0 there might be interpreted by the GuC as new request with action=0 and might results in extra processing/logging on GuC side, and, since from here we don't protect access to this register by
send_mutex, we can corrupt other MMIO message being prepared from different thread, ... can't we use other register ?Hmm, this code has been internal for a long time and we haven't seen an issues. MMIOs are always attempted to be processed each interrupt and then CTBs are processed next. A value a 0 in scratch0 results in no MMIOs being processed as a value of 0 is a reserved action which translates to a NOP.
Also in the current i915 once CTBs are enabled MMIOs are never used. That being said, I think once we transition to the new interface + enable suspend on a VF MMIOs might be used.
Quoted 7 lines
With that I purpose that we merge this as is with a comment saying if we ever mix CTBs and MMIOs we need to find another MMIO register. I don't changing this now is worth delaying upstreaming this and also any change we make now will make us lose confidence in code that has been thoroughly tested.
Matt
This was discussed in chat while inspecting the GuC firmware code. Writing zero to the scratch does indeed not trigger any extra processing of spurious MMIO H2Gs. The register is indeed always checked when the host triggers a CTB H2G, but zero counts as invalid and thus will be skipped.
So with a comment about not mixing CTB and MMIOs, I think we are good for now. It seems unlikely that MMIOs & CTB would be mixed. MMIOs are only used for initialisation operations and should not be necessary once the CTBs are up and running. If mixing does occur in the future, it sounds like something that should be addressed at the GuC architecture level!
With the comment added:
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +5
-0+ }else { +wmb (); + } +} +/** * DOC: CTB Host to GuC request * @@ -411,6 +423,12 @@ static int ct_write(struct intel_guc_ct *ct, }GEM_BUG_ON (tail > size);
Quoted 14 lines
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static int ct_write(struct intel_guc_ct *ct, · line 434
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +6
-0+/* +* make sure H2G buffer update and LRC tail update (if this triggering a +* submission) are visible before updating the descriptor tail +*/ +write_barrier (ct); +/* now update desc tail (back in bytes) */ desc->tail = tail *4 ;return 0 ;_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 15/18] drm/i915/guc: Ensure H2G buffer updates visible before tail update
Quoted 61 lines · John Harrison
Quoted 47 lines · Matthew Brost
Quoted 27 lines · Michal Wajdeczko
Quoted 26 lines · Matthew Brost
Ensure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple
wmb()for SMEM and is register write for LMEM. This is
needed if more than 1 H2G can be inflight at once.Signed-off-by Matthew Brost <[email protected]>Cc Michal Wajdeczko <[email protected]>---
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c| 18 ++++++++++++++++++1 file changed, 18 insertions(+)drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4
-0@@ -328,6 +328,18 @@ static u32 ct_get_next_fence(struct intel_guc_ct *ct) return ++ct->requests.last_fence; } +static void write_barrier(struct intel_guc_ct *ct) { + struct intel_guc *guc = ct_to_guc(ct); + struct intel_gt *gt = guc_to_gt(guc); + + if (i915_gem_object_is_lmem(guc->ct.vma->obj)) {Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static u32 ct_get_next_fence(struct intel_guc_ct *ct) · line 337
Quoted 2 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +2
-0+ GEM_BUG_ON(guc->send_regs.fw_domains); + intel_uncore_write_fw(gt->uncore, GEN11_SOFT_SCRATCH(0), 0);hmm, as this is one of the GuC scratch registers used for H2G MMIO communication, writing 0 there might be interpreted by the GuC as new request with action=0 and might results in extra processing/logging on GuC side, and, since from here we don't protect access to this register by
send_mutex, we can corrupt other MMIO message being prepared from different thread, ... can't we use other register ?Hmm, this code has been internal for a long time and we haven't seen an issues. MMIOs are always attempted to be processed each interrupt and then CTBs are processed next. A value a 0 in scratch0 results in no MMIOs being processed as a value of 0 is a reserved action which translates to a NOP.
Also in the current i915 once CTBs are enabled MMIOs are never used. That being said, I think once we transition to the new interface + enable suspend on a VF MMIOs might be used.
Quoted 7 lines
With that I purpose that we merge this as is with a comment saying if we ever mix CTBs and MMIOs we need to find another MMIO register. I don't changing this now is worth delaying upstreaming this and also any change we make now will make us lose confidence in code that has been thoroughly tested.
Matt
This was discussed in chat while inspecting the GuC firmware code. Writing zero to the scratch does indeed not trigger any extra processing of spurious MMIO H2Gs. The register is indeed always checked when the host triggers a CTB H2G, but zero counts as invalid and thus will be skipped.
Quoted 6 lines
So with a comment about not mixing CTB and MMIOs, I think we are good for now. It seems unlikely that MMIOs & CTB would be mixed. MMIOs are only used for initialisation operations and should not be necessary once the CTBs are up and running. If mixing does occur in the future, it sounds like something that should be addressed at the GuC architecture level!
well, unlikely is not the same as not possible...
especially that on MMIO path we are protecting access to this register, so maybe, to try capture any unexpected scenarios, we should at least add something like:
GEM_WARN_ON(mutex_is_locked(&guc->send_mutex))
and since you already check for send_regs.fw_domains actual register offset should be taken from send_regs.base ?
alternatively, since I doubt that we have to use this specific send register, we could define i915 level function for the purpose of triggering write barrier (or maybe we already have one?) that is using register that is not conflicting with guc MMIO communication...
note, in case you can't find any other safe register to write, maybe better option to use is SOFT_SCRATCH(0xc180) that is still available on Gen11, but it is not used by GuC any more for MMIO communication, and on Gen9 we don't have lmem so no conflict at all, which we can check with:
GEM_BUG_ON(send_regs.base == SOFT_SCRATCH)
and then we should be safe for sure, not just "unlikely"
Michal
Quoted 33 lines
With the comment added:
Reviewed-by John Harrison <[email protected]>Quoted 27 lines
Quoted 14 lines
Quoted 14 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +5
-0+ } else { + wmb(); + } +} + /*** DOC: CTB Host to GuC request *
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0
-0@@ -411,6 +423,12 @@ static int ct_write(struct intel_guc_ct *ct, } GEM_BUG_ON(tail > size);+ /*
+ * make sure H2G buffer update and LRC tail update (if this triggering aQuoted 8 lines
Quoted 8 lines
+ * submission) are visible before updating the descriptor tail + */
+write_barrier(ct);
+
/* now update desc tail (back in bytes) */desc->tail= tail * 4;
return 0;_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 16/18 drm/i915/guc: Stop using mutex while sending CTB messages
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
We are no longer using descriptor to hold G2H replies and we are protecting access to the descriptor and command buffer by the separate spinlock, so we can stop using mutex.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +0 -4
@@ -552,7 +552,6 @@ static int ct_send(struct intel_guc_ct *ct,int intel_guc_ct_send (struct intel_guc_ct *ct,const u32 *action,u32 len,u32 *response_buf,u32 response_buf_size) { -struct intel_guc *guc =ct_to_guc (ct);u32 status = ~0 ;/* undefined */ int ret;
@@ -561,8 +560,6 @@ int intel_guc_ct_send(struct intel_guc_ct *ct, const u32 *action, u32 len,return -ENODEV ; } -mutex_lock (&guc->send_mutex); - ret =ct_send (ct, action, len, response_buf, response_buf_size, &status);if (unlikely (ret <0 )) { CT_ERROR(ct, "Sending action %#x failed (err=%d status=%#X)\n",
@@ -572,7 +569,6 @@ int intel_guc_ct_send(struct intel_guc_ct *ct, const u32 *action, u32 len, action[0], ret, ret); } -mutex_unlock (&guc->send_mutex);return ret; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 17/18 drm/i915/guc: Don't receive all G2H messages in irq handler
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
In irq handler try to receive just single G2H message, let other messages to be received from tasklet.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 67 ++++++++++++++++------- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 3 + 2 files changed, 50 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +47 -20
@@ -81,6 +81,7 @@ enum { CTB_SEND = 0, CTB_RECV = 1 };enum {CTB_OWNER_HOST =0 }; +static void ct_receive_tasklet_func (struct tasklet_struct *t);static void ct_incoming_request_worker_func (struct work_struct *w);/**
@@ -95,6 +96,7 @@ void intel_guc_ct_init_early(struct intel_guc_ct *ct)INIT_LIST_HEAD (&ct->requests.pending);INIT_LIST_HEAD (&ct->requests.incoming);INIT_WORK (&ct->requests.worker, ct_incoming_request_worker_func); +tasklet_setup (&ct->receive_tasklet, ct_receive_tasklet_func); }static inline const char *guc_ct_buffer_type_to_str (u32 type)
@@ -244,6 +246,7 @@ void intel_guc_ct_fini(struct intel_guc_ct *ct) {GEM_BUG_ON (ct->enabled); +tasklet_kill (&ct->receive_tasklet);i915_vma_unpin_and_release (&ct->vma,I915_VMA_RELEASE_MAP );memset (ct,0 ,sizeof (*ct)); }
@@ -644,7 +647,7 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)CT_DEBUG (ct,"received %*ph\n" ,4 * len, data); desc->head = head *4 ; -return 0 ; +return available - len; corrupted: CT_ERROR(ct, "Corrupted descriptor addr=%#x head=%u tail=%u size=%u\n",
@@ -680,10 +683,10 @@ static int ct_handle_response(struct intel_guc_ct *ct, const u32 *msg)u32 status;u32 datalen;struct ct_request *req; +unsigned long flags;bool found = false;GEM_BUG_ON (!ct_header_is_response (header)); -GEM_BUG_ON (!in_irq ());/* Response payload shall at least include fence and status */ if (unlikely (len <2 )) {
@@ -703,7 +706,7 @@ static int ct_handle_response(struct intel_guc_ct *ct, const u32 *msg)CT_DEBUG (ct,"response fence %u status %#x\n" , fence, status); -spin_lock (&ct->requests.lock); +spin_lock_irqsave (&ct->requests.lock, flags);list_for_each_entry (req, &ct->requests.pending, link) {if (unlikely (fence != req->fence)) { CT_DEBUG(ct, "request %u awaits response\n",
@@ -722,7 +725,7 @@ static int ct_handle_response(struct intel_guc_ct *ct, const u32 *msg) found = true;break ; } -spin_unlock (&ct->requests.lock); +spin_unlock_irqrestore (&ct->requests.lock, flags);if (!found)CT_ERROR (ct,"Unsolicited response %*ph\n" , msgsize, msg);
@@ -836,31 +839,55 @@ static int ct_handle_request(struct intel_guc_ct *ct, const u32 *msg)return 0 ; } +static int ct_receive (struct intel_guc_ct *ct) +{ +u32 msg[GUC_CT_MSG_LEN_MASK +1 ];/* one extra dw for the header */ +unsigned long flags; +int ret; + +spin_lock_irqsave (&ct->ctbs.recv.lock, flags); + ret =ct_read (ct, msg); +spin_unlock_irqrestore (&ct->ctbs.recv.lock, flags); +if (ret <0 ) +return ret; + +if (ct_header_is_response (msg[0 ])) +ct_handle_response (ct, msg); +else +ct_handle_request (ct, msg); + +return ret; +} + +static void ct_try_receive_message (struct intel_guc_ct *ct) +{ +int ret; + +if (GEM_WARN_ON (!ct->enabled)) +return ; + + ret =ct_receive (ct); +if (ret >0 ) +tasklet_hi_schedule (&ct->receive_tasklet); +} + +static void ct_receive_tasklet_func (struct tasklet_struct *t) +{ +struct intel_guc_ct *ct =from_tasklet (ct, t, receive_tasklet); + +ct_try_receive_message (ct); +} +/* * When we're communicating with the GuC over CT, GuC uses events * to notify us about new messages being posted on the RECV buffer. */ void intel_guc_ct_event_handler (struct intel_guc_ct *ct) { -u32 msg[GUC_CT_MSG_LEN_MASK +1 ];/* one extra dw for the header */ -unsigned long flags; -int err =0 ; -if (unlikely (!ct->enabled)) {WARN (1 ,"Unexpected GuC event received while CT disabled!\n" );return ; } -do { -spin_lock_irqsave (&ct->ctbs.recv.lock, flags); - err =ct_read (ct, msg); -spin_unlock_irqrestore (&ct->ctbs.recv.lock, flags); -if (err) -break ; - -if (ct_header_is_response (msg[0 ])) - err =ct_handle_response (ct, msg); -else - err =ct_handle_request (ct, msg); - }while (!err); +ct_try_receive_message (ct); }
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h +3 -0
@@ -6,6 +6,7 @@#ifndef _INTEL_GUC_CT_H_#define _INTEL_GUC_CT_H_ +#include <linux/interrupt.h> #include <linux/spinlock.h> #include <linux/workqueue.h>
@@ -55,6 +56,8 @@ struct intel_guc_ct {struct intel_guc_ct_buffer recv; } ctbs; +struct tasklet_struct receive_tasklet; +struct {u32 last_fence;/* last fence used to send request */
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 18/18 drm/i915/guc: Always copy CT message to new allocation
In reply to Matthew BrostFrom: Michal Wajdeczko <[email protected]>
Since most of future CT traffic will be based on G2H requests, instead of copying incoming CT message to static buffer and then create new allocation for such request, always copy incoming CT message to new allocation. Also by doing it while reading CT header, we can safely fallback if that atomic allocation fails.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 180 ++++++++++++++-------- 1 file changed, 120 insertions(+), 60 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +120 -60
@@ -72,8 +72,9 @@ struct ct_request {u32 *response_buf; }; -struct ct_incoming_request { +struct ct_incoming_msg {struct list_head link; +u32 size;u32 msg[]; };
@@ -590,7 +591,26 @@ static inline bool ct_header_is_response(u32 header)return !!(header &GUC_CT_MSG_IS_RESPONSE ); } -static int ct_read (struct intel_guc_ct *ct,u32 *data) +static struct ct_incoming_msg *ct_alloc_msg (u32 num_dwords) +{ +struct ct_incoming_msg *msg; + + msg =kmalloc (sizeof (*msg) +sizeof (u32) * num_dwords,GFP_ATOMIC ); +if (msg) + msg->size = num_dwords; +return msg; +} + +static void ct_free_msg (struct ct_incoming_msg *msg) +{ +kfree (msg); +} + +/* +* Return: number available remaining dwords to read (0 if empty) +* or a negative error code on failure +*/ +static int ct_read (struct intel_guc_ct *ct,struct ct_incoming_msg **msg) {struct intel_guc_ct_buffer *ctb = &ct->ctbs.recv;struct guc_ct_buffer_desc *desc = ctb->desc;
@@ -601,6 +621,7 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)s32 available;unsigned int len;unsigned int i; +u32 header;if (unlikely (desc->is_in_error))return -EPIPE ;
@@ -616,8 +637,10 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)/* tail == head condition indicates empty */ available = tail - head; -if (unlikely (available ==0 )) -return -ENODATA ; +if (unlikely (available ==0 )) { + *msg =NULL ; +return 0 ; + }/* beware of buffer wrap case */ if (unlikely (available <0 ))
@@ -625,14 +648,14 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)CT_DEBUG (ct,"available %d (%u:%u)\n" , available, head, tail);GEM_BUG_ON (available <0 ); - data[0 ] = cmds[head]; + header = cmds[head]; head = (head +1 ) % size;/* message len with header */ - len =ct_header_get_len (data[0 ]) +1 ; + len =ct_header_get_len (header) +1 ;if (unlikely (len > (u32 )available)) { CT_ERROR(ct, "Incomplete message %*ph %*ph %*ph\n", - 4, data, + 4, &header, 4 * (head + available - 1 > size ? size - head : available - 1), &cmds[head], 4 * (head + available - 1 > size ?
@@ -640,11 +663,24 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data) goto corrupted; } + *msg =ct_alloc_msg (len); +if (!*msg) { +CT_ERROR (ct,"No memory for message %*ph %*ph %*ph\n" , +4 , &header, +4 * (head + available -1 > size ? + size - head : available -1 ), &cmds[head], +4 * (head + available -1 > size ? + available -1 - size + head :0 ), &cmds[0 ]); +return available; + } + + (*msg)->msg[0 ] = header; +for (i =1 ; i < len; i++) { - data[i] = cmds[head]; + (*msg)->msg[i] = cmds[head]; head = (head +1 ) % size; } -CT_DEBUG (ct,"received %*ph\n" ,4 * len, data); +CT_DEBUG (ct,"received %*ph\n" ,4 * len, (*msg)->msg); desc->head = head *4 ;return available - len;
@@ -674,33 +710,33 @@ static int ct_read(struct intel_guc_ct *ct, u32 *data)* ^-----------------------len-----------------------^ */ -static int ct_handle_response (struct intel_guc_ct *ct,const u32 *msg) +static int ct_handle_response (struct intel_guc_ct *ct,struct ct_incoming_msg *response) { -u32 header = msg[0 ]; +u32 header = response->msg[0 ];u32 len =ct_header_get_len (header); -u32 msgsize = (len +1 ) *sizeof (u32);/* msg size in bytes w/header */ u32 fence;u32 status;u32 datalen;struct ct_request *req;unsigned long flags;bool found = false; +int err =0 ;GEM_BUG_ON (!ct_header_is_response (header));/* Response payload shall at least include fence and status */ if (unlikely (len <2 )) { -CT_ERROR (ct,"Corrupted response %*ph\n" , msgsize, msg); +CT_ERROR (ct,"Corrupted response (len %u)\n" , len);return -EPROTO ; } - fence = msg[1 ]; - status = msg[2 ]; + fence = response->msg[1 ]; + status = response->msg[2 ]; datalen = len -2 ;/* Format of the status follows RESPONSE message */ if (unlikely (!INTEL_GUC_MSG_IS_RESPONSE (status))) { -CT_ERROR (ct,"Corrupted response %*ph\n" , msgsize, msg); +CT_ERROR (ct,"Corrupted response (status %#x)\n" , status);return -EPROTO ; }
@@ -714,12 +750,13 @@ static int ct_handle_response(struct intel_guc_ct *ct, const u32 *msg)continue ; }if (unlikely (datalen > req->response_len)) { -CT_ERROR (ct,"Response for %u is too long %*ph\n" , - req->fence, msgsize, msg); - datalen =0 ; +CT_ERROR (ct,"Response %u too long (datalen %u > %u)\n" , + req->fence, datalen, req->response_len); + datalen =min (datalen, req->response_len); + err = -EMSGSIZE ; }if (datalen) -memcpy (req->response_buf, msg +3 ,4 * datalen); +memcpy (req->response_buf, response->msg +3 ,4 * datalen); req->response_len = datalen;WRITE_ONCE (req->status, status); found = true;
@@ -727,45 +764,61 @@ static int ct_handle_response(struct intel_guc_ct *ct, const u32 *msg) }spin_unlock_irqrestore (&ct->requests.lock, flags); -if (!found) -CT_ERROR (ct,"Unsolicited response %*ph\n" , msgsize, msg); +if (!found) { +CT_ERROR (ct,"Unsolicited response (fence %u)\n" , fence); +return -ENOKEY ; + } + +if (unlikely (err)) +return err; + +ct_free_msg (response);return 0 ; } -static void ct_process_request (struct intel_guc_ct *ct, -u32 action,u32 len,const u32 *payload) +static int ct_process_request (struct intel_guc_ct *ct,struct ct_incoming_msg *request) {struct intel_guc *guc =ct_to_guc (ct); +u32 header, action, len; +const u32 *payload;int ret; + header = request->msg[0 ]; + payload = &request->msg[1 ]; + action =ct_header_get_action (header); + len =ct_header_get_len (header); +CT_DEBUG (ct,"request %x %*ph\n" , action,4 * len, payload);switch (action) {case INTEL_GUC_ACTION_DEFAULT : ret =intel_guc_to_host_process_recv_msg (guc, payload, len); -if (unlikely (ret)) - goto fail_unexpected;break ; -default : -fail_unexpected: -CT_ERROR (ct,"Unexpected request %x %*ph\n" , - action,4 * len, payload); + ret = -EOPNOTSUPP ;break ; } + +if (unlikely (ret)) { +CT_ERROR (ct,"Failed to process request %04x (%pe)\n" , + action,ERR_PTR (ret)); +return ret; + } + +ct_free_msg (request); +return 0 ; }static bool ct_process_incoming_requests (struct intel_guc_ct *ct) {unsigned long flags; -struct ct_incoming_request *request; -u32 header; -u32 *payload; +struct ct_incoming_msg *request;bool done; +int err;spin_lock_irqsave (&ct->requests.lock, flags); request =list_first_entry_or_null (&ct->requests.incoming, - struct ct_incoming_request, link); + struct ct_incoming_msg, link);if (request)list_del (&request->link); done = !!list_empty (&ct->requests.incoming);
@@ -774,14 +827,13 @@ static bool ct_process_incoming_requests(struct intel_guc_ct *ct)if (!request)return true; - header = request->msg[0 ]; - payload = &request->msg[1 ]; -ct_process_request (ct, -ct_header_get_action (header), -ct_header_get_len (header), - payload); + err =ct_process_request (ct, request); +if (unlikely (err)) { +CT_ERROR (ct,"Failed to process CT message (%pe) %*ph\n" , +ERR_PTR (err),4 * request->size, request->msg); +ct_free_msg (request); + } -kfree (request);return done; }
@@ -814,22 +866,11 @@ static void ct_incoming_request_worker_func(struct work_struct *w)* ^-----------------------len-----------------------^ */ -static int ct_handle_request (struct intel_guc_ct *ct,const u32 *msg) +static int ct_handle_request (struct intel_guc_ct *ct,struct ct_incoming_msg *request) { -u32 header = msg[0 ]; -u32 len =ct_header_get_len (header); -u32 msgsize = (len +1 ) *sizeof (u32);/* msg size in bytes w/header */ -struct ct_incoming_request *request;unsigned long flags; -GEM_BUG_ON (ct_header_is_response (header)); - - request =kmalloc (sizeof (*request) + msgsize,GFP_ATOMIC ); -if (unlikely (!request)) { -CT_ERROR (ct,"Dropping request %*ph\n" , msgsize, msg); -return 0 ;/* XXX: -ENOMEM ? */ - } -memcpy (request->msg, msg, msgsize); +GEM_BUG_ON (ct_header_is_response (request->msg[0 ]));spin_lock_irqsave (&ct->requests.lock, flags);list_add_tail (&request->link, &ct->requests.incoming);
@@ -839,22 +880,41 @@ static int ct_handle_request(struct intel_guc_ct *ct, const u32 *msg)return 0 ; } +static void ct_handle_msg (struct intel_guc_ct *ct,struct ct_incoming_msg *msg) +{ +u32 header = msg->msg[0 ]; +int err; + +if (ct_header_is_response (header)) + err =ct_handle_response (ct, msg); +else + err =ct_handle_request (ct, msg); + +if (unlikely (err)) { +CT_ERROR (ct,"Failed to process CT message (%pe) %*ph\n" , +ERR_PTR (err),4 * msg->size, msg->msg); +ct_free_msg (msg); + } +} + +/* +* Return: number available remaining dwords to read (0 if empty) +* or a negative error code on failure +*/ static int ct_receive (struct intel_guc_ct *ct) { -u32 msg[GUC_CT_MSG_LEN_MASK +1 ];/* one extra dw for the header */ +struct ct_incoming_msg *msg =NULL ;unsigned long flags;int ret;spin_lock_irqsave (&ct->ctbs.recv.lock, flags); - ret =ct_read (ct, msg); + ret =ct_read (ct, &msg);spin_unlock_irqrestore (&ct->ctbs.recv.lock, flags);if (ret <0 )return ret; -if (ct_header_is_response (msg[0 ])) -ct_handle_response (ct, msg); -else -ct_handle_request (ct, msg); +if (msg) +ct_handle_msg (ct, msg);return ret; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Non-interface changing GuC CTBs updates (rev2)
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 6b6bffd59ced drm/i915/guc: skip disabling CTBs before sanitizing the GuC 3f9bbaddbf9d drm/i915/guc: use probe_error log for CT enablement failure 866285dad8d0 drm/i915/guc: enable only the user interrupt when using GuC submission eafc57f85f6f drm/i915/guc: Remove sample_forcewake h2g action cb62a7f50e3b drm/i915/guc: Keep strict GuC ABI definitions -:18: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #18: new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 476 lines checked 28e9b20a7873 drm/i915/guc: Drop guc->interrupts.enabled 190975af8c9f drm/i915/guc: Stop using fence/status from CTB descriptor 15a068ac5b1e drm/i915: Promote ptrdiff() to i915_utils.h e3a6d58106c2 drm/i915/guc: Only rely on own CTB size aaa8781a008e drm/i915/guc: Don't repeat CTB layout calculations b065023c038e drm/i915/guc: Replace CTB array with explicit members 9f1ec21626ae drm/i915/guc: Update sizes of CTB buffers 7a0e05be601b drm/i915/guc: Relax CTB response timeout 11573d2c3987 drm/i915/guc: Start protecting access to CTB descriptors -:87: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #87: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h:36:
+ spinlock_t lock;
total: 0 errors, 0 warnings, 1 checks, 61 lines checkedf32e4faa422e drm/i915/guc: Ensure H2G buffer updates visible before tail update -:23: ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line #23: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:331:
+static void write_barrier(struct intel_guc_ct *ct) {
-:31: WARNING:MEMORY_BARRIER: memory barrier without comment #31: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:339:
+ wmb();
total: 1 errors, 1 warnings, 0 checks, 30 lines checked 6feab437948e drm/i915/guc: Stop using mutex while sending CTB messages a44bbeef3e75 drm/i915/guc: Don't receive all G2H messages in irq handler 41650b9fd9e5 drm/i915/guc: Always copy CT message to new allocation
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Non-interface changing GuC CTBs updates (rev2)
Quoted 40 lines · Patchwork
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : warning== Summary ==
$ dim checkpatch origin/drm-tip 6b6bffd59ced drm/i915/guc: skip disabling CTBs before sanitizing the GuC 3f9bbaddbf9d drm/i915/guc: use probe_error log for CT enablement failure 866285dad8d0 drm/i915/guc: enable only the user interrupt when using GuC submission eafc57f85f6f drm/i915/guc: Remove sample_forcewake h2g action cb62a7f50e3b drm/i915/guc: Keep strict GuC ABI definitions -:18: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #18: new file mode 100644total: 0 errors, 1 warnings, 0 checks, 476 lines checked
28e9b20a7873drm/i915/guc: Dropguc->interrupts.enabled190975af8c9fdrm/i915/guc: Stop using fence/status from CTB descriptor15a068ac5b1edrm/i915: Promoteptrdiff()toi915_utils.he3a6d58106c2drm/i915/guc: Only rely on own CTB sizeaaa8781a008edrm/i915/guc: Don't repeat CTB layout calculationsb065023c038edrm/i915/guc: Replace CTB array with explicit members9f1ec21626aedrm/i915/guc: Update sizes of CTB buffers7a0e05be601bdrm/i915/guc: Relax CTB response timeout11573d2c3987drm/i915/guc: Start protecting access to CTB descriptors -:87: CHECK:UNCOMMENTED_DEFINITION:spinlock_tdefinition without comment #87: FILE:drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h:36:(quoted diff) +1
-0+ spinlock_t lock;total: 0 errors, 0 warnings, 1 checks, 61 lines checked
f32e4faa422edrm/i915/guc: Ensure H2G buffer updates visible before tail update -:23: ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line #23: FILE:drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:331:
+static voidwrite_barrier(struct intel_guc_ct *ct){-:31: WARNING:MEMORY_BARRIER: memory barrier without comment #31: FILE:
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:339:
Review
Quoted 1 line
(quoted diff) +1
-0+ wmb();
These three warnings should be fixed.
John.
Quoted 10 lines
total: 1 errors, 1 warnings, 0 checks, 30 lines checked
6feab437948edrm/i915/guc: Stop using mutex while sending CTB messagesa44bbeef3e75drm/i915/guc: Don't receive all G2H messages in irq handler41650b9fd9e5drm/i915/guc: Always copy CT message to new allocation_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Non-interface changing GuC CTBs updates (rev2)
Quoted 39 lines · John Harrison
Quoted 38 lines · Patchwork
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : warning== Summary ==
$ dim checkpatch origin/drm-tip 6b6bffd59ced drm/i915/guc: skip disabling CTBs before sanitizing the GuC 3f9bbaddbf9d drm/i915/guc: use probe_error log for CT enablement failure 866285dad8d0 drm/i915/guc: enable only the user interrupt when using GuC submission eafc57f85f6f drm/i915/guc: Remove sample_forcewake h2g action cb62a7f50e3b drm/i915/guc: Keep strict GuC ABI definitions -:18: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #18: new file mode 100644total: 0 errors, 1 warnings, 0 checks, 476 lines checked
28e9b20a7873drm/i915/guc: Dropguc->interrupts.enabled190975af8c9fdrm/i915/guc: Stop using fence/status from CTB descriptor15a068ac5b1edrm/i915: Promoteptrdiff()toi915_utils.he3a6d58106c2drm/i915/guc: Only rely on own CTB sizeaaa8781a008edrm/i915/guc: Don't repeat CTB layout calculationsb065023c038edrm/i915/guc: Replace CTB array with explicit members9f1ec21626aedrm/i915/guc: Update sizes of CTB buffers7a0e05be601bdrm/i915/guc: Relax CTB response timeout11573d2c3987drm/i915/guc: Start protecting access to CTB descriptors -:87: CHECK:UNCOMMENTED_DEFINITION:spinlock_tdefinition without comment #87: FILE:drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h:36:(quoted diff) +1
-0+ spinlock_t lock;total: 0 errors, 0 warnings, 1 checks, 61 lines checked
f32e4faa422edrm/i915/guc: Ensure H2G buffer updates visible before tail update -:23: ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line #23: FILE:drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:331:
+static voidwrite_barrier(struct intel_guc_ct *ct){
Quoted 5 lines
Review
Quoted 3 lines
-:31: WARNING:MEMORY_BARRIER: memory barrier without comment #31: FILE:
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:339:(quoted diff) +1
-0+ wmb();These three warnings should be fixed.
Will do. But it seems odd to require comments for these.
Quoted 13 lines
John.
Quoted 10 lines
total: 1 errors, 1 warnings, 0 checks, 30 lines checked
6feab437948edrm/i915/guc: Stop using mutex while sending CTB messagesa44bbeef3e75drm/i915/guc: Don't receive all G2H messages in irq handler41650b9fd9e5drm/i915/guc: Always copy CT message to new allocation_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Non-interface changing GuC CTBs updates (rev2)
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +drivers/gpu/drm/i915/display/intel_display.c:1887:21: expected struct i915_vma *[assigned] vma +drivers/gpu/drm/i915/display/intel_display.c:1887:21: got void [noderef] __iomem *[assigned] iomem +drivers/gpu/drm/i915/display/intel_display.c:1887:21: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_reset.c:1328:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_ring_submission.c:1207:24: warning: Using plain integer as NULL pointer +drivers/gpu/drm/i915/i915_perf.c:1434:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1488:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/intel_wakeref.c:137:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock +drivers/gpu/drm/i915/selftests/i915_syncmap.c:80:54: warning: dubious: x | !y +./include/asm-generic/bitops/find.h:112:45: warning: shift count is negative (-262080) +./include/asm-generic/bitops/find.h:32:31: warning: shift count is negative (-262080) +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Non-interface changing GuC CTBs updates (rev2)
AFAICT, none of these warnings are related to this patch set.
John.
Quoted 66 lines · Patchwork
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : warning== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.(quoted diff) +52
-1- +drivers/gpu/drm/i915/display/intel_display.c:1887:21: expected struct i915_vma *[assigned] vma +drivers/gpu/drm/i915/display/intel_display.c:1887:21: got void [noderef] __iomem *[assigned] iomem +drivers/gpu/drm/i915/display/intel_display.c:1887:21: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_reset.c:1328:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_ring_submission.c:1207:24: warning: Using plain integer as NULL pointer +drivers/gpu/drm/i915/i915_perf.c:1434:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1488:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/intel_wakeref.c:137:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock +drivers/gpu/drm/i915/selftests/i915_syncmap.c:80:54: warning: dubious: x | !y +./include/asm-generic/bitops/find.h:112:45: warning: shift count is negative (-262080) +./include/asm-generic/bitops/find.h:32:31: warning: shift count is negative (-262080) +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Non-interface changing GuC CTBs updates (rev2)
Quoted 2 lines · John Harrison
AFAICT, none of these warnings are related to this patch set.
Yep, other series submitted around the same time as this had the same warnings.
Quoted 70 lines
John.
Quoted 66 lines · Patchwork
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : warning== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.(quoted diff) +52
-1- +drivers/gpu/drm/i915/display/intel_display.c:1887:21: expected struct i915_vma *[assigned] vma +drivers/gpu/drm/i915/display/intel_display.c:1887:21: got void [noderef] __iomem *[assigned] iomem +drivers/gpu/drm/i915/display/intel_display.c:1887:21: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_reset.c:1328:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_ring_submission.c:1207:24: warning: Using plain integer as NULL pointer +drivers/gpu/drm/i915/i915_perf.c:1434:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1488:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/intel_wakeref.c:137:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock +drivers/gpu/drm/i915/selftests/i915_syncmap.c:80:54: warning: dubious: x | !y +./include/asm-generic/bitops/find.h:112:45: warning: shift count is negative (-262080) +./include/asm-generic/bitops/find.h:32:31: warning: shift count is negative (-262080) +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block
Quoted 5 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Non-interface changing GuC CTBs updates (rev2)
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10133 -> Patchwork_20196
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/index.html
Known issues
------------
Here are the changes found in Patchwork_20196 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@core_hotunplug@unbind-rebind:
- fi-bdw-5557u: NOTRUN -> [WARN][1] ([i915#2283])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-bdw-5557u/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bdw-5557u: NOTRUN -> [DMESG-FAIL][2] ([i915#3462])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-bdw-5557u/igt@i915_selftest@[email protected]
* igt@kms_psr@cursor_plane_move:
- fi-bdw-5557u: NOTRUN -> [SKIP][3] ([fdo#109271]) +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-bdw-5557u/igt@kms_psr@cursor_plane_move.html
#### Possible fixes ####
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u2: [FAIL][4] ([i915#49]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/fi-icl-u2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-icl-u2/igt@[email protected]
#### Warnings ####
* igt@runner@aborted:
- fi-bdw-5557u: [FAIL][6] ([i915#1602] / [i915#2029]) -> [FAIL][7] ([i915#2426] / [i915#3462])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/fi-bdw-5557u/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-bdw-5557u/igt@[email protected]
- fi-kbl-soraka: [FAIL][8] ([i915#1436] / [i915#2426] / [i915#3363]) -> [FAIL][9] ([i915#1436] / [i915#3363])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/fi-kbl-soraka/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-kbl-soraka/igt@[email protected]
- fi-kbl-guc: [FAIL][10] ([i915#1436] / [i915#2426] / [i915#3363]) -> [FAIL][11] ([i915#1436] / [i915#3363])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/fi-kbl-guc/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-kbl-guc/igt@[email protected]
- fi-cml-u2: [FAIL][12] ([i915#2082] / [i915#2426] / [i915#3363] / [i915#3462]) -> [FAIL][13] ([i915#3363] / [i915#3462])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/fi-cml-u2/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/fi-cml-u2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2082]: https://gitlab.freedesktop.org/drm/intel/issues/2082
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2283]: https://gitlab.freedesktop.org/drm/intel/issues/2283
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3276]: https://gitlab.freedesktop.org/drm/intel/issues/3276
[i915#3277]: https://gitlab.freedesktop.org/drm/intel/issues/3277
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3283]: https://gitlab.freedesktop.org/drm/intel/issues/3283
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3363]: https://gitlab.freedesktop.org/drm/intel/issues/3363
[i915#3462]: https://gitlab.freedesktop.org/drm/intel/issues/3462
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Participating hosts (45 -> 41)
------------------------------
Additional (1): fi-rkl-11500t
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_10133 -> Patchwork_20196
CI-20190529: 20190529
CI_DRM_10133: 79cace2bbe3bb9cbff1aa14428adea42072b56b0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6092: d87087c321da07035d4f96d98c34e451b3ccb809 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_20196: 41650b9fd9e5fc9371ddb127eb32fe7ffbb3894e @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
41650b9fd9e5 drm/i915/guc: Always copy CT message to new allocation a44bbeef3e75 drm/i915/guc: Don't receive all G2H messages in irq handler 6feab437948e drm/i915/guc: Stop using mutex while sending CTB messages f32e4faa422e drm/i915/guc: Ensure H2G buffer updates visible before tail update 11573d2c3987 drm/i915/guc: Start protecting access to CTB descriptors 7a0e05be601b drm/i915/guc: Relax CTB response timeout9f1ec21626ae drm/i915/guc: Update sizes of CTB buffersb065023c038e drm/i915/guc: Replace CTB array with explicit members aaa8781a008e drm/i915/guc: Don't repeat CTB layout calculations e3a6d58106c2 drm/i915/guc: Only rely on own CTB size15a068ac5b1e drm/i915: Promote ptrdiff() to i915_utils.h190975af8c9f drm/i915/guc: Stop using fence/status from CTB descriptor 28e9b20a7873 drm/i915/guc: Drop guc->interrupts.enabledcb62a7f50e3b drm/i915/guc: Keep strict GuC ABI definitions eafc57f85f6f drm/i915/guc: Remove sample_forcewake h2g action 866285dad8d0 drm/i915/guc: enable only the user interrupt when using GuC submission 3f9bbaddbf9d drm/i915/guc: use probe_error log for CT enablement failure 6b6bffd59ced drm/i915/guc: skip disabling CTBs before sanitizing the GuC
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for Non-interface changing GuC CTBs updates (rev2)
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: Non-interface changing GuC CTBs updates (rev2)
URL : https://patchwork.freedesktop.org/series/90552/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10133_full -> Patchwork_20196_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_20196_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-massive:
- shard-snb: NOTRUN -> [DMESG-WARN][1] ([i915#3002])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-snb7/igt@[email protected]
- shard-apl: NOTRUN -> [DMESG-WARN][2] ([i915#3002])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl1/igt@[email protected]
* igt@gem_ctx_persistence@clone:
- shard-snb: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#1099]) +7 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-snb7/igt@[email protected]
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-glk: [PASS][4] -> [FAIL][5] ([i915#2842])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk7/igt@gem_exec_fair@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-tglb: [PASS][6] -> [FAIL][7] ([i915#2842])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-tglb6/igt@gem_exec_fair@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-kbl: [PASS][8] -> [SKIP][9] ([fdo#109271]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_suspend@basic-s3:
- shard-kbl: NOTRUN -> [DMESG-WARN][10] ([i915#180]) +1 similar issue
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl2/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [PASS][11] -> [SKIP][12] ([i915#2190])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-tglb8/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][13] ([fdo#109271] / [i915#2190])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl1/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy:
- shard-tglb: [PASS][14] -> [INCOMPLETE][15] ([i915#3468])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-tglb6/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb2/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-odd:
- shard-iclb: [PASS][16] -> [INCOMPLETE][17] ([i915#2910] / [i915#3468])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb5/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb3/igt@[email protected]
- shard-skl: NOTRUN -> [INCOMPLETE][18] ([i915#198] / [i915#2910] / [i915#3468])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl10/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-xy:
- shard-kbl: [PASS][19] -> [INCOMPLETE][20] ([i915#3468])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl3/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy-xy:
- shard-iclb: [PASS][21] -> [INCOMPLETE][22] ([i915#3468]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb1/igt@[email protected]
* igt@gem_mmap_gtt@fault-concurrent-y:
- shard-skl: NOTRUN -> [INCOMPLETE][23] ([i915#3468])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl3/igt@[email protected]
- shard-apl: NOTRUN -> [INCOMPLETE][24] ([i915#3468]) +1 similar issue
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl3/igt@[email protected]
* igt@gem_mmap_gtt@medium-copy-xy:
- shard-kbl: [PASS][25] -> [INCOMPLETE][26] ([i915#2502] / [i915#3468])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl4/igt@[email protected]
* igt@gem_mmap_offset@clear:
- shard-glk: [PASS][27] -> [FAIL][28] ([i915#1888] / [i915#3160])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk9/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk1/igt@[email protected]
* igt@gem_render_copy@x-tiled-to-vebox-yf-tiled:
- shard-iclb: NOTRUN -> [SKIP][29] ([i915#768])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb4/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-snb: NOTRUN -> [FAIL][30] ([i915#2724])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-snb7/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][31] ([i915#3318])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl2/igt@[email protected]
* igt@gen7_exec_parse@basic-offset:
- shard-apl: NOTRUN -> [SKIP][32] ([fdo#109271]) +288 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl8/igt@[email protected]
* igt@gen9_exec_parse@batch-invalid-length:
- shard-snb: NOTRUN -> [SKIP][33] ([fdo#109271]) +487 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-snb5/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][34] ([fdo#109271] / [i915#1937])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl2/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_rpm@gem-execbuf-stress:
- shard-glk: [PASS][35] -> [DMESG-WARN][36] ([i915#118] / [i915#95])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk8/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk1/igt@[email protected]
* igt@i915_selftest@live@execlists:
- shard-tglb: NOTRUN -> [DMESG-FAIL][37] ([i915#3462])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb1/igt@i915_selftest@[email protected]
- shard-glk: NOTRUN -> [DMESG-FAIL][38] ([i915#3462])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk9/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gt_lrc:
- shard-tglb: NOTRUN -> [DMESG-FAIL][39] ([i915#2373])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb1/igt@i915_selftest@live@gt_lrc.html
* igt@i915_selftest@live@gt_pm:
- shard-tglb: NOTRUN -> [DMESG-FAIL][40] ([i915#1759] / [i915#2291])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb1/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@hangcheck:
- shard-snb: NOTRUN -> [INCOMPLETE][41] ([i915#2782])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-snb7/igt@i915_selftest@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [PASS][42] -> [FAIL][43] ([i915#2521])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl10/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@[email protected]
* igt@kms_chamelium@dp-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][44] ([fdo#109271] / [fdo#111827]) +21 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl2/igt@[email protected]
* igt@kms_chamelium@vga-hpd-after-suspend:
- shard-skl: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +3 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl2/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][46] ([fdo#109271] / [fdo#111827]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk6/igt@[email protected]
* igt@kms_chamelium@vga-hpd-without-ddc:
- shard-snb: NOTRUN -> [SKIP][47] ([fdo#109271] / [fdo#111827]) +24 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-snb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-limited-range:
- shard-kbl: NOTRUN -> [SKIP][48] ([fdo#109271] / [fdo#111827]) +1 similar issue
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl2/igt@[email protected]
* igt@kms_content_protection@atomic-dpms:
- shard-apl: NOTRUN -> [TIMEOUT][49] ([i915#1319]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][50] -> [DMESG-WARN][51] ([i915#180])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl7/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl4/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-skl: [PASS][52] -> [FAIL][53] ([i915#2346])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl10/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-torture-move:
- shard-skl: NOTRUN -> [SKIP][54] ([fdo#109271]) +68 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl2/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-skl: [PASS][55] -> [INCOMPLETE][56] ([i915#198])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl6/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl2/igt@[email protected]
* igt@kms_flip@2x-modeset-vs-vblank-race-interruptible:
- shard-iclb: NOTRUN -> [SKIP][57] ([fdo#109274]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb4/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: [PASS][58] -> [FAIL][59] ([i915#79]) +1 similar issue
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl9/igt@kms_flip@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-apl: [PASS][60] -> [DMESG-WARN][61] ([i915#180])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-apl2/igt@kms_flip@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@a-dp1:
- shard-apl: NOTRUN -> [DMESG-WARN][62] ([i915#180]) +1 similar issue
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible@a-edp1:
- shard-skl: [PASS][63] -> [FAIL][64] ([i915#2122])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl7/igt@kms_flip@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-skl: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#2672])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl10/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-apl: NOTRUN -> [SKIP][66] ([fdo#109271] / [i915#2642])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-wc:
- shard-kbl: NOTRUN -> [SKIP][67] ([fdo#109271]) +11 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl3/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-pwrite:
- shard-iclb: NOTRUN -> [SKIP][68] ([fdo#109280])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-render:
- shard-skl: [PASS][69] -> [FAIL][70] ([i915#49])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl5/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-render.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-render:
- shard-skl: NOTRUN -> [FAIL][71] ([i915#49])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl2/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-shrfb-msflip-blt:
- shard-glk: NOTRUN -> [SKIP][72] ([fdo#109271]) +25 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk6/igt@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [PASS][73] -> [FAIL][74] ([i915#1188])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl3/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl10/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d-frame-sequence:
- shard-apl: NOTRUN -> [SKIP][75] ([fdo#109271] / [i915#533]) +3 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-glk: NOTRUN -> [FAIL][76] ([fdo#108145] / [i915#265])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk6/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][77] ([fdo#108145] / [i915#265])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][78] ([fdo#108145] / [i915#265]) +4 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [PASS][79] -> [FAIL][80] ([fdo#108145] / [i915#265])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl3/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl10/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][81] ([i915#265])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl2/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#658]) +7 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl8/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-skl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#658])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl10/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][84] -> [SKIP][85] ([fdo#109441]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb1/igt@kms_psr@psr2_cursor_render.html
* igt@kms_sysfs_edid_timing:
- shard-apl: NOTRUN -> [FAIL][86] ([IGT#2])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl7/igt@kms_sysfs_edid_timing.html
* igt@kms_tv_load_detect@load-detect:
- shard-iclb: NOTRUN -> [SKIP][87] ([fdo#109309])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb4/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [PASS][88] -> [DMESG-WARN][89] ([i915#180] / [i915#295])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl3/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl4/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-apl: NOTRUN -> [SKIP][90] ([fdo#109271] / [i915#2437]) +1 similar issue
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl1/igt@[email protected]
* igt@perf@mi-rpc:
- shard-skl: [PASS][91] -> [DMESG-WARN][92] ([i915#1982])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl7/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl4/igt@[email protected]
* igt@perf_pmu@module-unload:
- shard-skl: [PASS][93] -> [DMESG-WARN][94] ([i915#1982] / [i915#262])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl9/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@[email protected]
* igt@sysfs_clients@fair-7:
- shard-apl: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#2994]) +4 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl8/igt@[email protected]
* igt@sysfs_clients@sema-25:
- shard-skl: NOTRUN -> [SKIP][96] ([fdo#109271] / [i915#2994]) +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl4/igt@[email protected]
#### Possible fixes ####
* igt@feature_discovery@psr2:
- shard-iclb: [SKIP][97] ([i915#658]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb3/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb2/igt@[email protected]
* igt@gem_eio@in-flight-suspend:
- shard-skl: [INCOMPLETE][99] ([i915#146] / [i915#198]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl10/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl4/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [FAIL][101] ([i915#2842]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb6/igt@gem_exec_fair@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][103] ([i915#2842]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk6/igt@gem_exec_fair@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk8/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy:
- shard-glk: [INCOMPLETE][105] ([i915#2055] / [i915#3468]) -> [PASS][106] +1 similar issue
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk5/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk6/igt@[email protected]
- shard-skl: [INCOMPLETE][107] ([i915#198] / [i915#3468]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl10/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl2/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-xy:
- shard-tglb: [INCOMPLETE][109] ([i915#3468]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-tglb6/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-tglb1/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-xy:
- shard-iclb: [FAIL][111] ([i915#307]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb3/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb8/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy-xy:
- shard-apl: [INCOMPLETE][113] ([i915#3468]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-apl1/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-apl8/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-glk: [FAIL][115] ([i915#644]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk1/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk8/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [FAIL][117] ([i915#72]) -> [PASS][118]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-glk5/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-glk3/igt@[email protected]
* igt@kms_flip@flip-vs-rmfb@a-edp1:
- shard-skl: [DMESG-WARN][119] ([i915#1982]) -> [PASS][120] +1 similar issue
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl1/igt@kms_flip@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl6/igt@kms_flip@[email protected]
* {igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes}:
- shard-kbl: [DMESG-WARN][121] ([i915#180]) -> [PASS][122] +3 similar issues
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@kms_plane@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl2/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][123] ([fdo#108145] / [i915#265]) -> [PASS][124] +2 similar issues
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl5/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@[email protected]
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][125] ([fdo#109441]) -> [PASS][126] +4 similar issues
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb3/igt@kms_psr@psr2_no_drrs.html
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
* igt@perf@polling-parameterized:
- shard-skl: [FAIL][127] ([i915#1542]) -> [PASS][128]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-skl9/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-skl9/igt@[email protected]
#### Warnings ####
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [SKIP][129] ([fdo#109271]) -> [FAIL][130] ([i915#2842])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@gem_exec_fair@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-kbl3/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy-odd:
- shard-iclb: [FAIL][131] ([i915#307]) -> [FAIL][132] ([i915#2428])
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb6/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb8/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][133] ([i915#2684]) -> [WARN][134] ([i915#1804] / [i915#2684])
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb1/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb3/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][135] ([i915#1804] / [i915#2684]) -> [WARN][136] ([i915#2684])
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb6/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-iclb: [SKIP][137] ([i915#658]) -> [SKIP][138] ([i915#2920])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb3/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-3:
- shard-iclb: [SKIP][139] ([i915#2920]) -> [SKIP][140] ([i915#658]) +2 similar issues
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-iclb2/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/shard-iclb4/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][141], [FAIL][142], [FAIL][143], [FAIL][144], [FAIL][145], [FAIL][146], [FAIL][147], [FAIL][148], [FAIL][149], [FAIL][150], [FAIL][151], [FAIL][152], [FAIL][153], [FAIL][154]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#2722] / [i915#3002] / [i915#3363]) -> ([FAIL][155], [FAIL][156], [FAIL][157], [FAIL][158], [FAIL][159], [FAIL][160], [FAIL][161], [FAIL][162], [FAIL][163], [FAIL][164], [FAIL][165], [FAIL][166], [FAIL][167], [FAIL][168], [FAIL][169], [FAIL][170]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#2722] / [i915#3002] / [i915#3363] / [i915#602])
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl2/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl1/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl7/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl4/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10133/shard-kbl2/igt@[email protected]
[149]: https://i
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20196/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx