All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raag Jadav <raag.jadav@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: lucas.demarchi@intel.com, rodrigo.vivi@intel.com,
	intel-xe@lists.freedesktop.org, riana.tauro@intel.com,
	matthew.brost@intel.com, michal.wajdeczko@intel.com
Subject: Re: [PATCH v4 2/2] drm/xe/gt: Introduce runtime suspend/resume
Date: Sat, 4 Oct 2025 08:39:38 +0200	[thread overview]
Message-ID: <aODBKmSDEBPHPNCl@black.igk.intel.com> (raw)
In-Reply-To: <23a6bff4-a2c3-4d5c-8937-f3e97588f422@intel.com>

On Thu, Oct 02, 2025 at 09:53:21AM -0700, Daniele Ceraolo Spurio wrote:
> <snip>
> > > > +	xe_guc_ct_runtime_suspend(&guc->ct);
> > > > +}
> > > > +
> > > > +/**
> > > > + * xe_guc_runtime_resume() - GuC runtime resume
> > > > + * @guc: The GuC object
> > > > + *
> > > > + * Runtime resume GuC CT and allow further runs of submission tasks on
> > > > + * given GuC.
> > > > + */
> > > > +void xe_guc_runtime_resume(struct xe_guc *guc)
> > > > +{
> > > > +	guc_enable_irq(guc);
> > > I don't think that this is a valid function to call in a VF (but will leave
> > > the final judgement to Michal).
> > I think commit 14fcd7361ed1 covers those cases?
> 
> I'm not familiar with the PM subsystem, so apologies if this is a dumb
> question, but what is the exact consequence of that patch?
> 
> 1 - runtime suspend/resume functions for VFs are not called at all for VFs,
> even when the PF runtime suspends.
> or
> 2 - runtime suspend/resume functions for VFs are called only when the PF
> runtime suspends.
> 
> If it is #1, are we saying that on VF it is fine to not call
> xe_guc_runtime_suspend/resume? and if so, why is this required on native/PF?
> None of the operations done in those functions are PF-specific, apart from
> the irq stuff.
> If it is #2, then you still have the problem of not being able to call
> guc_enable_irq on VFs.
> 
> Or am I misunderstanding something?

I remember reading somewhere that our VFs reflect power state of their
associated PF, and what commit 14fcd7361ed1 essentially does is prevents
runtime PM from being enabled for VFs so that runtime_suspend/resume()
handles don't execute at all for VFs.

But this is my limited understanding and perhaps Michal can confirm this.

Raag

  reply	other threads:[~2025-10-04  6:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-04  9:14 [PATCH v4 0/2] Introduce GT runtime suspend/resume Raag Jadav
2025-09-04  9:14 ` [PATCH v4 1/2] drm/xe/guc: Split xe_guc_ct_enable() Raag Jadav
2025-09-10 16:51   ` Rodrigo Vivi
2025-09-04  9:14 ` [PATCH v4 2/2] drm/xe/gt: Introduce runtime suspend/resume Raag Jadav
2025-10-01 16:46   ` Daniele Ceraolo Spurio
2025-10-02 16:22     ` Raag Jadav
2025-10-02 16:53       ` Daniele Ceraolo Spurio
2025-10-04  6:39         ` Raag Jadav [this message]
2025-09-04  9:31 ` ✗ CI.checkpatch: warning for Introduce GT " Patchwork
2025-09-04  9:32 ` ✓ CI.KUnit: success " Patchwork
2025-09-04 10:08 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-04 21:01 ` ✗ Xe.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=aODBKmSDEBPHPNCl@black.igk.intel.com \
    --to=raag.jadav@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=riana.tauro@intel.com \
    --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 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.