From: Raag Jadav <raag.jadav@intel.com>
To: "Gote, Nitin R" <nitin.r.gote@intel.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Brost, Matthew" <matthew.brost@intel.com>,
"Auld, Matthew" <matthew.auld@intel.com>
Subject: Re: [PATCH] drm/xe/pm: do not warn about missing runtime PM protection after hot-unplug
Date: Thu, 30 Jul 2026 14:31:05 +0200 [thread overview]
Message-ID: <amtECTK2qry7RVzR@black.igk.intel.com> (raw)
In-Reply-To: <SA3PR11MB81184728764B0494D31F1036D0C92@SA3PR11MB8118.namprd11.prod.outlook.com>
On Thu, Jul 30, 2026 at 05:35:26PM +0530, Gote, Nitin R wrote:
> > From: Jadav, Raag <raag.jadav@intel.com>
> > On Thu, Jul 30, 2026 at 11:06:36AM +0530, Nitin Gote wrote:
> > > After hot-unplug, device_del() disables runtime PM. A deferred fd
> > > close can still run later during process exit and destroy remaining
> > > exec queues, which may call xe_pm_runtime_get_noresume().
> >
> > This sounds like could cause many other side effects. Why not make sure the exec
> > queues are taken care of as part of hot-unplug path?
> >
>
> Here In igt@core_hotunplug@hotreplug-with-load and igt@core_hotunplug@hotunplug-rescan-with-load subtests,
> the workload keeps the DRM fd open while the device is pci hot-unplugged. Later, fd close reaches
> guc_exec_queue_destroy() -> guc_exec_queue_add_msg() -> xe_pm_runtime_get_noresume(),
> after pci_remove/device_del() path has already called pm_runtime_disable() during pci hot-unplug.
>
> So the WARN is a false-positive for the already-unplugged device case.
> I will update the commit message to make this scope clearer.
I guess my question was, is it safe have the exec queues lying around until
fd close? Wouldn't it be more appropriate to have them cleaned up as part
of hot-unplug itself?
Raag
next prev parent reply other threads:[~2026-07-30 12:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 5:36 [PATCH] drm/xe/pm: do not warn about missing runtime PM protection after hot-unplug Nitin Gote
2026-07-30 5:06 ` ✓ CI.KUnit: success for " Patchwork
2026-07-30 5:45 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-30 5:59 ` [PATCH] " Raag Jadav
2026-07-30 12:05 ` Gote, Nitin R
2026-07-30 12:31 ` Raag Jadav [this message]
2026-07-30 6:39 ` ✓ Xe.CI.FULL: success for " Patchwork
2026-07-30 12:35 ` [PATCH] " Matthew Auld
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=amtECTK2qry7RVzR@black.igk.intel.com \
--to=raag.jadav@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--cc=matthew.brost@intel.com \
--cc=nitin.r.gote@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.