Skip to content

Commit

Permalink
drm/amd/display: add dmcub support check
Browse files Browse the repository at this point in the history
[Why & How]
For DCN harvest case, if there is no dmcub support, we should return false
to avoid bugcheck later.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Fudongwang <fudong.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Fudongwang authored and Alex Deucher committed Jul 23, 2024
1 parent 6d64d39 commit 323b19f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/dc/core/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5574,6 +5574,9 @@ void dc_mclk_switch_using_fw_based_vblank_stretch_shut_down(struct dc *dc)
*/
bool dc_is_dmub_outbox_supported(struct dc *dc)
{
if (!dc->caps.dmcub_support)
return false;

switch (dc->ctx->asic_id.chip_family) {

case FAMILY_YELLOW_CARP:
Expand Down

0 comments on commit 323b19f

Please sign in to comment.