From: Jesse Barnes Date: Fri, 11 Sep 2009 19:25:56 +0000 (-0700) Subject: drm/i915: prevent FIFO calculation overflows on 32 bits with high dotclocks X-Git-Tag: v2.6.32-rc1~52^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d660467c3ff2a0b7413e1b7a51452b34ffb49e5f;p=pandora-kernel.git 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: Anton Khirnov Tested-by: Anton Khirnov Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed