From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"jani.nikula@linux.intel.com" <jani.nikula@linux.intel.com>
Subject: Re: [PATCH] drm/i915/bios: Remove unnecessary checks of PSR idle frames in VBT binary
Date: Wed, 3 Sep 2025 10:50:26 +0000 [thread overview]
Message-ID: <bf6dfda9da4b82e5bf2913d74cf712abfa9a3495.camel@intel.com> (raw)
In-Reply-To: <ffb7d264934868be9ca40d782cf496cac1d10a58@intel.com>
On Mon, 2025-09-01 at 13:21 +0300, Jani Nikula wrote:
> On Mon, 01 Sep 2025, Jouni Högander <jouni.hogander@intel.com> wrote:
> > PSR idle frames in VBT binary is a 4 bits wide bitfield. Checking
> > if it's
> > below 0 or over 15 doesn't make sense. Remove these checks.
> >
> > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
>
> Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Thank you for checking my patch. This is now pushed to drm-intel-next.
BR,
Jouni Högander
>
> > ---
> > drivers/gpu/drm/i915/display/intel_bios.c | 5 +----
> > 1 file changed, 1 insertion(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_bios.c
> > b/drivers/gpu/drm/i915/display/intel_bios.c
> > index 7d7193a05d88..3596dce84c28 100644
> > --- a/drivers/gpu/drm/i915/display/intel_bios.c
> > +++ b/drivers/gpu/drm/i915/display/intel_bios.c
> > @@ -1567,10 +1567,7 @@ parse_psr(struct intel_display *display,
> >
> > panel->vbt.psr.full_link = psr_table->full_link;
> > panel->vbt.psr.require_aux_wakeup = psr_table-
> > >require_aux_to_wakeup;
> > -
> > - /* Allowed VBT values goes from 0 to 15 */
> > - panel->vbt.psr.idle_frames = psr_table->idle_frames < 0 ?
> > 0 :
> > - psr_table->idle_frames > 15 ? 15 : psr_table-
> > >idle_frames;
> > + panel->vbt.psr.idle_frames = psr_table->idle_frames;
> >
> > /*
> > * New psr options 0=500us, 1=100us, 2=2500us, 3=0us
>
next prev parent reply other threads:[~2025-09-03 10:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-01 10:10 [PATCH] drm/i915/bios: Remove unnecessary checks of PSR idle frames in VBT binary Jouni Högander
2025-09-01 10:21 ` Jani Nikula
2025-09-03 10:50 ` Hogander, Jouni [this message]
2025-09-01 12:51 ` ✓ i915.CI.BAT: success for " Patchwork
2025-09-01 17:54 ` ✗ i915.CI.Full: failure " Patchwork
2025-09-03 10:23 ` Hogander, Jouni
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=bf6dfda9da4b82e5bf2913d74cf712abfa9a3495.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.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;
as well as URLs for NNTP newsgroup(s).