Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915: Switch intel_usecs_to_scanlines() to 64bit maths

Dotclocks can reach ~1GHz these days, so intel_usecs_to_scanlines(),
with its 32bit maths, is currently limited to a few milliseconds.
I want bigger numbers in DSB selftests, so switch over to 64bit
maths.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240528185647.7765-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>

+2 -2
+2 -2
drivers/gpu/drm/i915/display/intel_crtc.c
··· 454 454 if (!adjusted_mode->crtc_htotal) 455 455 return 1; 456 456 457 - return DIV_ROUND_UP(usecs * adjusted_mode->crtc_clock, 458 - 1000 * adjusted_mode->crtc_htotal); 457 + return DIV_ROUND_UP_ULL(mul_u32_u32(usecs, adjusted_mode->crtc_clock), 458 + 1000 * adjusted_mode->crtc_htotal); 459 459 } 460 460 461 461 /**