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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:20 +0000 (15:07 -0800)
commit6cd43e68d937462d063fae86be892ec10125e545
treee1c1a68660b4f6e174d34af81a8ef3af87837fe7
parentb870070037823bea90709ea6b4b8a2c8ffcdc5f5
drm/dp/mst: Calculate MST PBN with 31.32 fixed point

commit a9ebb3e46c7ef6112c0da466ef0954673ad36832 upstream.

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>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_dp_mst_topology.c