drm/amd/display: Skip querying caps when DMCUB emulation is in use
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 22 Jun 2023 20:14:22 +0000 (16:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:14:08 +0000 (11:14 -0400)
commita243e38e699f03b7d73b156564cfd67b78448368
tree384e7bf59b9d9c86feaa626670355e76e9349de9
parentbf27f5defe92d310099d2f621a5276104d7db093
drm/amd/display: Skip querying caps when DMCUB emulation is in use

[Why]
Workaround to avoid accessing DMCUB state too early if the emulator
is in use - we don't support any of the features the caps are querying
with emulation anyway.

[How]
Guard the query if emulation is in use.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c