diff options
author | Jesse Barnes <[email protected]> | 2009-09-11 12:25:56 -0700 |
---|---|---|
committer | Jesse Barnes <[email protected]> | 2009-09-17 14:46:48 -0700 |
commit | d660467c3ff2a0b7413e1b7a51452b34ffb49e5f (patch) | |
tree | 39c562957364ba7c23c7d91b99b5e3041dcefc32 /scripts/basic/docproc.c | |
parent | decbbcda2965fadb9fbaaf4f9e057ae554aa3cfe (diff) |
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: [email protected]
Reported-by: Anton Khirnov <[email protected]>
Tested-by: Anton Khirnov <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions