OSDN Git Service

drm/amd/display: work around fp code being emitted outside of DC_FP_START/END
authorDaniel Kolesa <daniel@octaforge.org>
Wed, 29 Apr 2020 15:02:36 +0000 (17:02 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 May 2020 13:24:40 +0000 (09:24 -0400)
commit59dfb0c64d3853d20dc84f4561f28d4f5a2ddc7d
tree664bd3e0839e973eb83178b331fc13a692f6d989
parentf33a6dec4e12fda128fde8f6b2fcc2252b4b59d1
drm/amd/display: work around fp code being emitted outside of DC_FP_START/END

The dcn20_validate_bandwidth function would have code touching the
incorrect registers emitted outside of the boundaries of the
DC_FP_START/END macros, at least on ppc64le. Work around the
problem by wrapping the whole function instead.

Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.6.x
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c