drm/amd/display: skip opp blank or unblank if test pattern enabled
authorWenjing Liu <Wenjing.Liu@amd.com>
Mon, 23 Dec 2019 21:05:05 +0000 (16:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:17:08 +0000 (14:17 -0500)
commit31635887cb8d899584484620b597e401b2350a79
treeb84a9e3b7d07b33210c8e8cc4a3dfb02e07275e2
parentf7ce7d617033248428db49879b0d20595c46d4e6
drm/amd/display: skip opp blank or unblank if test pattern enabled

[why]
DPG is used to generate both blank and test automation test pattern.
When test automation is running the requested test pattern can be
overriden by the blank or unblank call because it is using the same
hardware.

[how]
When test pattern is requested, skip blank or unblank.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c