Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: "Jouni Högander" <jouni.hogander@intel.com>
Subject: Re: [PATCH] drm/i915/bios: Remove unnecessary checks of PSR idle frames in VBT binary
Date: Mon, 01 Sep 2025 13:21:20 +0300	[thread overview]
Message-ID: <ffb7d264934868be9ca40d782cf496cac1d10a58@intel.com> (raw)
In-Reply-To: <20250901101033.4176277-1-jouni.hogander@intel.com>

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>

> ---
>  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

-- 
Jani Nikula, Intel

  reply	other threads:[~2025-09-01 10:21 UTC|newest]

Thread overview: 7+ 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 [this message]
2025-09-03 10:50   ` Hogander, Jouni
2025-09-01 11:26 ` ✓ CI.KUnit: success for " Patchwork
2025-09-01 12:01 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-01 14:50 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-03 10:13   ` 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=ffb7d264934868be9ca40d782cf496cac1d10a58@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jouni.hogander@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