From e2757bbea4823f62650d7c064cf1c56777c193f3 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 17 Aug 2023 03:56:38 +0000 Subject: [PATCH] drm/amd/display: Handle virtual hardware detect From Rodrigo Siqueira 60334c0cba2f7741252960994b1e9b1d6b668d07 in linux-6.1.y/6.1.46 987b96eb860036ab79051fb271f7fbdc01c9daf5 in mainline linux --- sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c index 8f9c60ed6f8..9b7ddd0e10a 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c +++ b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c @@ -1942,6 +1942,9 @@ enum dc_status dc_commit_streams(struct dc *dc, struct pipe_ctx *pipe; bool handle_exit_odm2to1 = false; + if (dc->ctx->dce_environment == DCE_ENV_VIRTUAL_HW) + return res; + if (!streams_changed(dc, streams, stream_count)) return res; -- 2.20.1