Files
linux/drivers/gpu/drm/xe
Harish Chegondi 7276878b06 drm/xe: Fix conversion from clock ticks to milliseconds
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>
2025-11-25 11:53:34 -08:00
..
2025-09-17 20:23:47 -04:00
2024-05-09 21:28:25 +02:00
2025-01-09 17:58:09 +01:00
2025-10-15 22:48:54 -07:00
2025-09-15 09:53:25 -07:00
2025-06-27 14:52:31 -07:00
2025-07-01 13:58:50 -07:00
2025-09-02 22:23:08 -07:00
2024-05-13 21:36:50 +02:00
2025-11-25 11:53:28 -08:00
2025-06-27 14:52:31 -07:00
2025-09-17 20:23:47 -04:00
2025-06-27 14:52:31 -07:00
2024-05-22 12:03:55 +02:00
2025-09-15 13:11:40 -04:00
2025-09-09 06:02:35 -07:00
2024-09-19 10:15:40 +02:00
2024-05-07 12:03:49 +02:00
2025-08-14 10:30:53 -04:00
2025-01-27 08:54:06 -08:00
2025-02-03 11:51:26 -08:00
2024-05-13 21:36:52 +02:00
2025-06-27 14:52:31 -07:00
2025-07-28 10:22:28 -04:00
2025-01-17 00:01:58 +05:30
2025-09-15 17:51:07 +10:00