drm/amd/display: Don't attempt to program missing register fields on DCE8
authorJordan Lazare <Jordan.Lazare@amd.com>
Tue, 14 Feb 2017 23:20:35 +0000 (18:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:15:06 +0000 (17:15 -0400)
commitbeed42b5bc68e9c37c4474393a2e3dbf6ed4c26b
treee7b9d48598330c63f830f9450c83f45e3188ffcd
parent4a9054dda6df8e94b6a54a181277e25d189198c4
drm/amd/display: Don't attempt to program missing register fields on DCE8

When moving to a common dce/ infrastructure for all asics, some register fields
do not exist in DCE8, and cause ASSERTS and debug spam.

Instead, check to see whether a register field mask is valid before attempting
to program the register field

Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c