diff options
| author | Ivan Lipski <ivan.lipski@amd.com> | 2026-10-28 11:11:11 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-11 15:53:14 -0500 |
| commit | d489c42c9bd542b3fbbda97b97dc9a0b07010eb3 (patch) | |
| tree | ce7779432dc0b935d7ba8fdaff5b665a8bfd9cab /scripts/Makefile.thinlto | |
| parent | 7475ea8b58616b33c04afb976cf0fbaad9dd63fb (diff) | |
drm/amd/display: Fix __udivdi3 link error in DCN6 DML2
[Why&How]
dchub_v2_get_sop_total_available_bandwidth_KBps() and
dchub_v2_is_qos_bandwidth_supported_by_sop() divide 64-bit integers
by 100. On 32-bit builds this emits a call to __udivdi3, which the
kernel does not link.
Use double-cast division instead.
Fixes: 7f7d7ea1fa51 ("drm/amd/display: Add new sources for DCN6")
Cc: Linlin Yang <yanglinlin@kylinos.cn>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 83e7c8cb33363f2a2f893758c630f9a805ac4573)
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
