Files
linux-stable-mirror/drivers/gpu/drm/xe
Harish Chegondi 15f4066889 drm/xe: Fix conversion from clock ticks to milliseconds
[ Upstream commit 7276878b06 ]

When tick counts are large and multiplication by MSEC_PER_SEC is larger
than 64 bits, the conversion from clock ticks to milliseconds can go bad.

Use mul_u64_u32_div() instead.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Suggested-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fixes: 49cc215aad ("drm/xe: Add xe_gt_clock_interval_to_ms helper")
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patch.msgid.link/1562f1b62d5be3fbaee100f09107f3cc49e40dd1.1763408584.git.harish.chegondi@intel.com
(cherry picked from commit 96b93ac214)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-07 06:24:55 +09:00
..
2025-07-10 16:05:04 +02:00
2025-07-10 16:05:04 +02:00
2025-07-10 16:05:09 +02:00
2025-07-10 16:05:09 +02:00
2025-05-29 11:02:27 +02:00
2025-05-29 11:02:27 +02:00
2025-06-04 14:43:53 +02:00