public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: dri-devel@lists.freedesktop.org
Cc: saurabhg.gupta@intel.com, alex.zuo@intel.com,
	jonathan.cavitt@intel.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com,
	simona@ffwll.ch, linux-kernel@vger.kernel.org
Subject: [PATCH] drm/edid: Simplify min_pixel_clock_rate calculation
Date: Wed, 29 Apr 2026 00:02:10 +0800	[thread overview]
Message-ID: <20260428160210.2537326-1-jonathan.cavitt@intel.com> (raw)

In calculate_ovt_min_htotal, we compute min_pixel_clock_rate as
max_vrate * min_htotal * min_vtotal.  However, we already calculated the
value of max_vrate * min_vtotal as min_line_rate.  So, just use that as
part of the calculation.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
---
 drivers/gpu/drm/drm_edid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 63814af7f1c1..9f9c9c65296f 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -5513,7 +5513,7 @@ static u32 calculate_ovt_min_htotal(const struct cta_rid *rid,
 
 	min_htotal = rid->hactive + max(OVT_MIN_HBLANK_444, *min_hblank);
 
-	min_pixel_clock_rate = max_vrate * min_htotal * min_vtotal;
+	min_pixel_clock_rate = min_line_rate * min_htotal;
 
 	htotal_granularity_chunk =
 		roundup_pow_of_two(DIV64_U64_ROUND_UP(min_pixel_clock_rate,
-- 
2.53.0


                 reply	other threads:[~2026-04-28 16:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20260428160210.2537326-1-jonathan.cavitt@intel.com \
    --to=jonathan.cavitt@intel.com \
    --cc=airlied@gmail.com \
    --cc=alex.zuo@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=saurabhg.gupta@intel.com \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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