All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.1.y 01/10] drm/amd/display: Handle virtual hardware detect
@ 2023-08-07  2:20 tiancyin
  2023-08-07  2:20 ` [PATCH 6.1.y 02/10] drm/amd/display: Add function for validate and update new stream tiancyin
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: tiancyin @ 2023-08-07  2:20 UTC (permalink / raw)
  To: stable
  Cc: Tianci Yin, Rodrigo Siqueira, Harry Wentland, Aurabindo Pillai,
	Alex Deucher

From: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>

If virtual hardware is detected, there is no reason to run the full
dc_commit_streams process, and DC can return true immediately.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Co-developed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 8f9c60ed6f8b..9b7ddd0e10a5 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/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.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread
* [PATCH 6.1.y 00/10] Fixups for some navi3x hangs
@ 2023-08-11 21:06 Mario Limonciello
  2023-08-11 21:06 ` [PATCH 6.1.y 01/10] drm/amd/display: Handle virtual hardware detect Mario Limonciello
  0 siblings, 1 reply; 12+ messages in thread
From: Mario Limonciello @ 2023-08-11 21:06 UTC (permalink / raw)
  To: stable; +Cc: Tianci.Yin, Richard.Gong, Aurabindo.Pillai

Hi,

Rico tried to send out some fixups recently for some navi3x hangs, but
made some process mistakes with the series.  It's an important series
as it has a variety of people indicating problems, even as recently as
6.1.45 that it confirms to fix.

Some of Rico's selected patches were already merged, so they're dropped
from the series.

Link: https://lore.kernel.org/stable/20230807022055.2798020-1-tianci.yin@amd.com/
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2760

Thanks!

Alex Deucher (1):
  drm/amd/display: fix the build when DRM_AMD_DC_DCN is not set

Alvin Lee (2):
  drm/amd/display: Disable phantom OTG after enable for plane disable
  drm/amd/display: Retain phantom plane/stream if validation fails

Aurabindo Pillai (1):
  drm/amd/display: trigger timing sync only if TG is running

Rodrigo Siqueira (6):
  drm/amd/display: Handle virtual hardware detect
  drm/amd/display: Add function for validate and update new stream
  drm/amd/display: Handle seamless boot stream
  drm/amd/display: Update OTG instance in the commit stream
  drm/amd/display: Avoid ABM when ODM combine is enabled for eDP
  drm/amd/display: Use update plane and stream routine for DCN32x

 drivers/gpu/drm/amd/display/dc/core/dc.c      |  74 +++++-
 .../gpu/drm/amd/display/dc/core/dc_resource.c | 234 +++++++++++++++++-
 drivers/gpu/drm/amd/display/dc/dc.h           |   6 +
 .../amd/display/dc/dcn10/dcn10_hw_sequencer.c |   6 +
 .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.c |   8 +
 .../drm/amd/display/dc/dcn32/dcn32_resource.c |  22 ++
 .../drm/amd/display/dc/dcn32/dcn32_resource.h |   3 +
 .../amd/display/dc/dcn321/dcn321_resource.c   |   1 +
 .../gpu/drm/amd/display/dc/inc/core_types.h   |   1 +
 .../amd/display/dc/inc/hw/timing_generator.h  |   1 +
 10 files changed, 341 insertions(+), 15 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-08-11 21:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07  2:20 [PATCH 6.1.y 01/10] drm/amd/display: Handle virtual hardware detect tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 02/10] drm/amd/display: Add function for validate and update new stream tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 03/10] drm/amd/display: Handle seamless boot stream tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 04/10] drm/amd/display: Update OTG instance in the commit stream tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 05/10] drm/amd/display: Avoid ABM when ODM combine is enabled for eDP tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 06/10] drm/amd/display: Use update plane and stream routine for DCN32x tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 07/10] Revert "Revert "drm/amdgpu: use dirty framebuffer helper"" tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 08/10] drm/amd/display: Disable phantom OTG after enable for plane disable tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 09/10] drm/amd/display: Retain phantom plane/stream if validation fails tiancyin
2023-08-07  2:20 ` [PATCH 6.1.y 10/10] Revert "drm/amd/display: Remove Phantom Pipe Check When Calculating K1 and K2" tiancyin
2023-08-07  5:51 ` [PATCH 6.1.y 01/10] drm/amd/display: Handle virtual hardware detect Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2023-08-11 21:06 [PATCH 6.1.y 00/10] Fixups for some navi3x hangs Mario Limonciello
2023-08-11 21:06 ` [PATCH 6.1.y 01/10] drm/amd/display: Handle virtual hardware detect Mario Limonciello

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.