mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 12:44:32 -04:00
drm/i915/guc: Update guc_err message to show outstanding g2h responses
Updating the guc_error message to show how many g2h responses are still outstanding, in order to help with future debugging. Signed-off-by: Jesus Narvaez <jesus.narvaez@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241213204720.3918056-1-jesus.narvaez@intel.com
This commit is contained in:
committed by
John Harrison
parent
7ed047da59
commit
f373ebec18
@@ -2046,6 +2046,8 @@ void intel_guc_submission_cancel_requests(struct intel_guc *guc)
|
||||
|
||||
void intel_guc_submission_reset_finish(struct intel_guc *guc)
|
||||
{
|
||||
int outstanding;
|
||||
|
||||
/* Reset called during driver load or during wedge? */
|
||||
if (unlikely(!guc_submission_initialized(guc) ||
|
||||
!intel_guc_is_fw_running(guc) ||
|
||||
@@ -2059,8 +2061,10 @@ void intel_guc_submission_reset_finish(struct intel_guc *guc)
|
||||
* see in CI if this happens frequently / a precursor to taking down the
|
||||
* machine.
|
||||
*/
|
||||
if (atomic_read(&guc->outstanding_submission_g2h))
|
||||
guc_err(guc, "Unexpected outstanding GuC to Host in reset finish\n");
|
||||
outstanding = atomic_read(&guc->outstanding_submission_g2h);
|
||||
if (outstanding)
|
||||
guc_err(guc, "Unexpected outstanding GuC to Host response(s) in reset finish: %d\n",
|
||||
outstanding);
|
||||
atomic_set(&guc->outstanding_submission_g2h, 0);
|
||||
|
||||
intel_guc_global_policies_update(guc);
|
||||
|
||||
Reference in New Issue
Block a user