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:45:35 +0000 (15:45 -0500)
commit95b098789dd20a09885c288fe8db200c26490c18
tree325ac499f28fb173b8c39d8ad3c6e212070e642c
parentbd31f0f4dfa04f1afe2ac88b32a745dad80718e2
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