[PATCH 06/13] drm/amd/display: Remove redundant macro of refresh rate
Pillai, Aurabindo
Aurabindo.Pillai at amd.com
Wed Jun 18 15:58:03 UTC 2025
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Jerry,
Please fix the Author/committer name.
--
Regards,
Jay
________________________________
From: Fangzhi Zuo <Jerry.Zuo at amd.com>
Sent: Wednesday, June 18, 2025 11:33 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Wentland, Harry <Harry.Wentland at amd.com>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Pillai, Aurabindo <Aurabindo.Pillai at amd.com>; Li, Roman <Roman.Li at amd.com>; Lin, Wayne <Wayne.Lin at amd.com>; Chung, ChiaHsuan (Tom) <ChiaHsuan.Chung at amd.com>; Zuo, Jerry <Jerry.Zuo at amd.com>; Wheeler, Daniel <Daniel.Wheeler at amd.com>; Wu, Ray <Ray.Wu at amd.com>; Hung, Alex <Alex.Hung at amd.com>; Li, Allen <Allen.Li at amd.com>; Chen, Robin <robin.chen at amd.com>
Subject: [PATCH 06/13] drm/amd/display: Remove redundant macro of refresh rate
From: weiguali <wei-guang.li at amd.com>
[Why&How]
Found that we add redundant macro on refresh rate when calculating vtotal,
so we remove it.
Reviewed-by: Robin Chen <robin.chen at amd.com>
Signed-off-by: Weiguang Li <wei-guang.li at amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo at amd.com>
---
drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
index 3ba9b62ba70b..6a939f2f2fb9 100644
--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
@@ -147,7 +147,7 @@ unsigned int mod_freesync_calc_v_total_from_refresh(
((unsigned int)(div64_u64((1000000000ULL * 1000000),
refresh_in_uhz)));
- if (MICRO_HZ_TO_HZ(refresh_in_uhz) <= stream->timing.min_refresh_in_uhz) {
+ if (refresh_in_uhz <= stream->timing.min_refresh_in_uhz) {
/* When the target refresh rate is the minimum panel refresh rate,
* round down the vtotal value to avoid stretching vblank over
* panel's vtotal boundary.
--
2.43.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20250618/c0635206/attachment.htm>
More information about the amd-gfx
mailing list