OSDN Git Service

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)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Feb 2016 05:23:49 +0000 (15:23 +1000)
commita9ebb3e46c7ef6112c0da466ef0954673ad36832
tree95f3d296bbd4292d38388f1fb0b82360e253bc97
parent64566b5e767f9bc3161055ca1b443a51afb52aad
drm/dp/mst: Calculate MST PBN with 31.32 fixed point

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>
drivers/gpu/drm/drm_dp_mst_topology.c