From: Matthew Brost <matthew.brost@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: "Cavitt, Jonathan" <jonathan.cavitt@intel.com>,
"Vivi, Rodrigo" <rodrigo.vivi@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Gupta, saurabhg" <saurabhg.gupta@intel.com>,
"Harrison, John C" <john.c.harrison@intel.com>,
"Summers, Stuart" <stuart.summers@intel.com>
Subject: Re: [PATCH] drm/xe/xe_gt_debugfs: Add synchronous gt reset debugfs
Date: Thu, 6 Jun 2024 17:37:58 +0000 [thread overview]
Message-ID: <ZmHz9p1EyCyxPlFG@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <b5huvz4dqw52xaj64uf4sgxumbn7avp3nm3tfe5rhwtxhf44xc@kq4abeay2rnc>
On Thu, Jun 06, 2024 at 12:35:42PM -0500, Lucas De Marchi wrote:
> On Thu, Jun 06, 2024 at 04:38:49PM GMT, Cavitt, Jonathan wrote:
> > -----Original Message-----
> > From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
> > Sent: Thursday, June 6, 2024 9:26 AM
> > To: Cavitt, Jonathan <jonathan.cavitt@intel.com>
> > Cc: intel-xe@lists.freedesktop.org; Gupta, saurabhg <saurabhg.gupta@intel.com>; Brost, Matthew <matthew.brost@intel.com>; Harrison, John C <john.c.harrison@intel.com>; Summers, Stuart <stuart.summers@intel.com>
> > Subject: Re: [PATCH] drm/xe/xe_gt_debugfs: Add synchronous gt reset debugfs
> > >
> > > On Thu, Jun 06, 2024 at 02:11:02PM +0000, Cavitt, Jonathan wrote:
> > > > -----Original Message-----
> > > > From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
> > > > Sent: Wednesday, June 5, 2024 3:10 PM
> > > > To: Cavitt, Jonathan <jonathan.cavitt@intel.com>
> > > > Cc: intel-xe@lists.freedesktop.org; Gupta, saurabhg <saurabhg.gupta@intel.com>; Brost, Matthew <matthew.brost@intel.com>; Harrison, John C <john.c.harrison@intel.com>; Summers, Stuart <stuart.summers@intel.com>
> > > > Subject: Re: [PATCH] drm/xe/xe_gt_debugfs: Add synchronous gt reset debugfs
> > > > >
> > > > > On Wed, Jun 05, 2024 at 08:08:28AM -0700, Jonathan Cavitt wrote:
> > > > > > We currently have debugfs support that allows the userspace to initiate
> > > > > > an asynchronous gt reset on command. However, userspace may also wish
> > > > > > to wait for the completion of the gt reset before performing any
> > > > > > additional work. To that end, add a version of the force_reset gt
> > > > > > debugfs function that operates synchronously.
> > > > > >
> > > > > > Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1068
> > > > >
> > > > > do we already have the igt changes that really closes this?
> > > >
> > > > The IGT change that closes this issue has not yet landed. It relies on
> > > > using the new debugfs, so if it landed first, we'd be attempting to call
> > > > a nonexistent debugfs function.
> > >
> > > Please provide the IGT and the kernel patch at the same time.
> > > you can copy patchwork or lore links in the one or the other cover letter
> > > to explain and justify each other.
> >
> > Here's the related IGT change:
> > https://patchwork.freedesktop.org/series/134509/
>
> great. Let's remove the Closes from this patch then.
> We can do that while applying, but...
>
I think Rodrigo just pushed these...
> > > > > > @@ -116,6 +116,17 @@ static int force_reset(struct xe_gt *gt, struct drm_printer *p)
> > > > > > return 0;
> > > > > > }
> > > > > >
> > > > > > +static int force_reset_sync(struct xe_gt *gt, struct drm_printer *p)
> > > > > > +{
> > > > > > + xe_pm_runtime_get(gt_to_xe(gt));
> > > > > > + xe_gt_reset_async(gt);
> > > > > > + xe_pm_runtime_put(gt_to_xe(gt));
> > > > > > +
>
> why aren't we just calling force_reset(gt, p); here?
>
Opps, I missed that in my review and agree what you suggest is better.
Given that Rodrigo just pushed this, let's do a quick follow up to fix?
Matt
> Lucas De Marchi
>
> > > > > > + flush_work(>->reset.worker);
> > > > > > +
> > > > > > + return 0;
> > > > > > +}
> > > > > > +
> > > > > > static int sa_info(struct xe_gt *gt, struct drm_printer *p)
> > > > > > {
> > > > > > struct xe_tile *tile = gt_to_tile(gt);
> > > > > > @@ -261,6 +272,7 @@ static int vecs_default_lrc(struct xe_gt *gt, struct drm_printer *p)
> > > > > > static const struct drm_info_list debugfs_list[] = {
> > > > > > {"hw_engines", .show = xe_gt_debugfs_simple_show, .data = hw_engines},
> > > > > > {"force_reset", .show = xe_gt_debugfs_simple_show, .data = force_reset},
> > > > > > + {"force_reset_sync", .show = xe_gt_debugfs_simple_show, .data = force_reset_sync},
> > > > > > {"sa_info", .show = xe_gt_debugfs_simple_show, .data = sa_info},
> > > > > > {"topology", .show = xe_gt_debugfs_simple_show, .data = topology},
> > > > > > {"steering", .show = xe_gt_debugfs_simple_show, .data = steering},
> > > > > > --
> > > > > > 2.25.1
> > > > > >
> > > > >
> > >
next prev parent reply other threads:[~2024-06-06 17:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 15:08 [PATCH] drm/xe/xe_gt_debugfs: Add synchronous gt reset debugfs Jonathan Cavitt
2024-06-05 15:28 ` ✓ CI.Patch_applied: success for " Patchwork
2024-06-05 15:28 ` ✓ CI.checkpatch: " Patchwork
2024-06-05 15:29 ` ✓ CI.KUnit: " Patchwork
2024-06-05 15:41 ` ✓ CI.Build: " Patchwork
2024-06-05 15:41 ` ✗ CI.Hooks: failure " Patchwork
2024-06-05 15:42 ` ✓ CI.checksparse: success " Patchwork
2024-06-05 16:19 ` [PATCH] " Matthew Brost
2024-06-05 16:26 ` ✓ CI.BAT: success for " Patchwork
2024-06-05 22:09 ` [PATCH] " Rodrigo Vivi
2024-06-06 14:11 ` Cavitt, Jonathan
2024-06-06 16:25 ` Rodrigo Vivi
2024-06-06 16:38 ` Cavitt, Jonathan
2024-06-06 17:33 ` Rodrigo Vivi
2024-06-06 17:35 ` Lucas De Marchi
2024-06-06 17:37 ` Matthew Brost [this message]
2024-06-06 17:45 ` Cavitt, Jonathan
2024-06-06 9:45 ` ✗ CI.FULL: failure for " 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=ZmHz9p1EyCyxPlFG@DUT025-TGLU.fm.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=john.c.harrison@intel.com \
--cc=jonathan.cavitt@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=saurabhg.gupta@intel.com \
--cc=stuart.summers@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