Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Add missing runtime reference to wedged upon gt_reset
Date: Thu, 29 Aug 2024 22:35:18 +0000	[thread overview]
Message-ID: <ZtD3pnQGG/Rg2QDH@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <b54629d9-44ed-4bda-8b54-f53eaee85bc4@intel.com>

On Thu, Aug 29, 2024 at 12:01:01AM +0530, Ghimiray, Himal Prasad wrote:
> 
> 
> On 28-08-2024 23:02, Rodrigo Vivi wrote:
> > Fixes this missed case:
> > 
> > xe 0000:00:02.0: [drm] Missing outer runtime PM protection
> > WARNING: CPU: 99 PID: 1455 at drivers/gpu/drm/xe/xe_pm.c:564 xe_pm_runtime_get_noresume+0x48/0x60 [xe]
> > Call Trace:
> > <TASK>
> > ? show_regs+0x67/0x70
> > ? __warn+0x94/0x1b0
> > ? xe_pm_runtime_get_noresume+0x48/0x60 [xe]
> > ? report_bug+0x1b7/0x1d0
> > ? handle_bug+0x46/0x80
> > ? exc_invalid_op+0x19/0x70
> > ? asm_exc_invalid_op+0x1b/0x20
> > ? xe_pm_runtime_get_noresume+0x48/0x60 [xe]
> > xe_device_declare_wedged+0x91/0x280 [xe]
> > gt_reset_worker+0xa2/0x250 [xe]
> > 
> > Fixes: da4b21f402c6 ("drm/xe: Add missing runtime reference to wedged upon gt_reset")
> 
> Hi Rodrigo,
> 
> fixes tag looks wrong, "drm/xe: Add missing runtime reference to wedged upon
> gt_reset" is this patch.
> 
> 
> > Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > ---
> >   drivers/gpu/drm/xe/xe_gt.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
> > index 224c137967c3..a895704bf64f 100644
> > --- a/drivers/gpu/drm/xe/xe_gt.c
> > +++ b/drivers/gpu/drm/xe/xe_gt.c
> > @@ -794,11 +794,11 @@ static int gt_reset(struct xe_gt *gt)
> >   	XE_WARN_ON(xe_force_wake_put(gt_to_fw(gt), XE_FORCEWAKE_ALL));
> >   err_msg:
> >   	XE_WARN_ON(xe_uc_start(&gt->uc));
> > -	xe_pm_runtime_put(gt_to_xe(gt));
> >   err_fail:
> >   	xe_gt_err(gt, "reset failed (%pe)\n", ERR_PTR(err));
> >   	xe_device_declare_wedged(gt_to_xe(gt));
> > +	xe_pm_runtime_put(gt_to_xe(gt));
> 
> 
> AFAIU, this looks incomplete, xe_pm_runtime_get() should also move before if
> (xe_fault_inject_gt_reset()).
> 

Agree with Himal.

Matt

> Thanks
> 
> >   	return err;
> >   }

  reply	other threads:[~2024-08-29 22:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-28 17:32 [PATCH] drm/xe: Add missing runtime reference to wedged upon gt_reset Rodrigo Vivi
2024-08-28 18:18 ` ✓ CI.Patch_applied: success for " Patchwork
2024-08-28 18:19 ` ✗ CI.checkpatch: warning " Patchwork
2024-08-28 18:20 ` ✓ CI.KUnit: success " Patchwork
2024-08-28 18:31 ` [PATCH] " Ghimiray, Himal Prasad
2024-08-29 22:35   ` Matthew Brost [this message]
2024-08-28 18:32 ` ✓ CI.Build: success for " Patchwork
2024-08-28 18:34 ` ✓ CI.Hooks: " Patchwork
2024-08-28 18:36 ` ✓ CI.checksparse: " Patchwork
2024-08-28 18:55 ` ✓ CI.BAT: " Patchwork
2024-08-29  6:35 ` ✗ CI.FULL: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZtD3pnQGG/Rg2QDH@DUT025-TGLU.fm.intel.com \
    --to=matthew.brost@intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox