Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d660467c authored by Jesse Barnes's avatar Jesse Barnes
Browse files

drm/i915: prevent FIFO calculation overflows on 32 bits with high dotclocks



A very high dotclock (e.g. 229500kHz as reported by Anton) can cause
the entries_required variable to overflow, potentially leading to a
FIFO watermark value that's too low to support the given mode.  Split
the division across the calculation to avoid this.

Cc: stable@kernel.org
Reported-by: default avatarAnton Khirnov <wyskas@gmail.com>
Tested-by: default avatarAnton Khirnov <wyskas@gmail.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent decbbcda
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment