Skip to content
Snippets Groups Projects
Commit 5b34ab52 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/modes: Switch to 64bit maths to avoid integer overflow


The new >8k CEA modes have dotclocks reaching 5.94 GHz, which
means our clock*1000 will now overflow the 32bit unsigned
integer. Switch to 64bit maths to avoid it.

Cc: stable@vger.kernel.org
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201022194256.30978-1-ville.syrjala@linux.intel.com


Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 625f8fb5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment