]> git.itanic.dy.fi Git - linux-stable/commit
drm/dp/mst: Calculate MST PBN with 31.32 fixed point
authorHarry Wentland <harry.wentland@amd.com>
Fri, 22 Jan 2016 22:07:26 +0000 (17:07 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Feb 2016 20:42:41 +0000 (15:42 -0500)
commitef1490f71c14368553365d15abcaefc84771c590
treef3ec7600bb22a169c6f9b3b56d31ba75e0399687
parent038f2c042154abf141209a632befcaf8006c10dd
drm/dp/mst: Calculate MST PBN with 31.32 fixed point

[ Upstream commit a9ebb3e46c7ef6112c0da466ef0954673ad36832 ]

Our PBN value overflows the 20 bits integer part of the 20.12
fixed point. We need to use 31.32 fixed point to avoid this.

This happens with display clocks larger than 293122 (at 24 bpp),
which we see with the Sharp (and similar) 4k tiled displays.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/drm_dp_mst_topology.c