]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix dml2_0 narrowing boundaries
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Thu, 9 Apr 2026 14:50:11 +0000 (10:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:16 +0000 (15:41 -0400)
commit11236ac905e70c217d76e333f8d4fdbcab6f05b4
treed4e9345b98d1983385b8ca8114485f9ab9253fdc
parenta4702db211806757fdd53fc79b753f30439a2f49
drm/amd/display: Fix dml2_0 narrowing boundaries

[Why] drm/amd/display dml2_0 code had implicit narrowing conversions reported by
a warning in timing, watermark, and translation paths.

[How] Apply explicit boundary casts for intentional narrowing, preserve wider
intermediate math, and use wider timing intermediates where required for safe
range handling.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_policy.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c