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>
Thu, 30 Apr 2020 20:48:50 +0000 (16:48 -0400)
commit8b91fd8bb1920a73b2c3a990a12d886fc62e1eef
tree752b8dec95f6e66d5decd26d517042d2b9a895ff
parentff6772b0fbdd160250c28c52962ed8fd51573fa9
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>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c