From: Raag Jadav <raag.jadav@intel.com>
To: "Kahola, Mika" <mika.kahola@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Sousa, Gustavo" <gustavo.sousa@intel.com>
Subject: Re: [PATCH v3] drm/i915/xe3lpd: Power request asserting/deasserting
Date: Wed, 30 Oct 2024 13:36:03 +0200 [thread overview]
Message-ID: <ZyIaI_CSjm1sH3M9@black.fi.intel.com> (raw)
In-Reply-To: <MW4PR11MB7054BD69AC2BB7C5D59D2565EF542@MW4PR11MB7054.namprd11.prod.outlook.com>
On Wed, Oct 30, 2024 at 04:52:20PM +0530, Kahola, Mika wrote:
...
> > > > +static void wa_14020908590(struct intel_display *display,
> > > > + bool enable)
> > > > +{
> > > > + bool error = false;
> > > > +
> > > > + /* check if mailbox is running busy */
> > > > + if (intel_de_wait_for_clear(display, TCSS_DISP_MAILBOX_IN_CMD,
> > > > + TCSS_DISP_MAILBOX_IN_CMD_RUN_BUSY,
> > 10)) {
> > > > + drm_dbg_kms(display->drm,
> > > > + "Timeout waiting for TCSS mailbox run/busy bit to
> > clear\n");
> > >
> > > Just do drm_WARN() with the message here.
> >
> > Rather,
> >
> > ret = intel_de_wait_for_clear();
> > if (drm_WARN(drm, ret, ...))
> > return;
> >
> > Cleaner?
>
> Maybe we could drop the drm_WARN_ON() completely? This is something that
> we are not really using elsewhere in the driver. Simply drm_dbg_kms() on
> timeouts has so far been enough. What do you think?
Right, WARN() is usually for cases that *should never happen* or have *serious
consequences*. Unless that's the case, I'm not sure if it'll be useful here.
Raag
next prev parent reply other threads:[~2024-10-30 11:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-29 14:00 [PATCH v3] drm/i915/xe3lpd: Power request asserting/deasserting Mika Kahola
2024-10-29 14:41 ` Jani Nikula
2024-10-29 17:02 ` Raag Jadav
2024-10-30 11:22 ` Kahola, Mika
2024-10-30 11:36 ` Raag Jadav [this message]
2024-10-29 16:56 ` Raag Jadav
2024-10-29 17:18 ` Gustavo Sousa
2024-10-30 11:23 ` Kahola, Mika
2024-10-29 21:23 ` ✓ Fi.CI.BAT: success for drm/i915/xe3lpd: Power request asserting/deasserting (rev2) Patchwork
2024-10-29 21:25 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2024-10-30 17:01 ` ✗ Fi.CI.IGT: 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=ZyIaI_CSjm1sH3M9@black.fi.intel.com \
--to=raag.jadav@intel.com \
--cc=gustavo.sousa@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=mika.kahola@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.