Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp395850rdb; Mon, 22 Jan 2024 07:31:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQjnrqelpEZBc4uPFbgn4HMjWnQYxRtDCqL9p6hT7AqWoYar91jsjgyUzyAN4XMCEhyDz+ X-Received: by 2002:a05:6a21:3399:b0:19a:2af4:e36d with SMTP id yy25-20020a056a21339900b0019a2af4e36dmr6099383pzb.4.1705937519463; Mon, 22 Jan 2024 07:31:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705937519; cv=pass; d=google.com; s=arc-20160816; b=XKpIeoZrzNc/YfL1N1I5EyZ0dhFE+xJYZbC3zz/0cEw9DRUaVQLoHkCyGhPBrPkFqi fM+zXRtt7tLWTivjnd1ek4PSGij8PKnm8mcVb7QLg5a9Rc2rcXCBWMB5Z7a0hpBA0BKQ zkc2GfxqEio6IWZlPMWt1rTG7qe5CTQULxWKOpnyicEJMukdVcsRdCrwgQCtZlBzXUD/ nZIzPfvbXk6uApOEkaG30Wm/8Ott+N0jOxH0D8DAnYksGXftGoV7joHz2YuQyLM1SmGv vuiPYKsAFkG1oEjccFbSW4KZlQs4zoqrljoYxwckyHZOZ1zjOaz9h+ljIVlqE3kImWvb mt/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BkX0dHxk5dG7PLK9EHRu/jtIQMrxn/JNUebeXpps3lY=; fh=Sw1WTxlZSwwYSTf6szh9ZgDf1mVxmHq5BbC7cKWc98A=; b=FeBA11e0+1VSqstBDDVo21IQqjJYKK6iqrVqK+VZezAsi2IJH2sgC0Rs2PxbZ84O5B TRE2Mobv6/mipleso7sV0xnTwSSaFbOMcRHX0GSS88aNRmLomUKGCDQH1OCGvIsKgcVz EeSKMPhVR5EiQW3HN6muhMjrMTlBvBM8f2YtlCSn+yZoivfahIKBDa2/6TW/FwybWjfS OFnhpcgiBCMXVHy0Wk9UMudpm667pOJE9Fn+MrC0BLToWJR1QoE6QJRVOApNIesuUI+K mrvLuRfovGBAnOeWNm21t3HEKMWyE0TbjdXoAHRjSoIbBQCICPW1cQa+MFIMyR5e8rS+ Qhfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BUFrCnGn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s7-20020a6550c7000000b005c680fbab19si8142745pgp.513.2024.01.22.07.31.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:31:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BUFrCnGn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8FA5E28AC18 for ; Mon, 22 Jan 2024 15:25:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5C8D41227; Mon, 22 Jan 2024 15:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BUFrCnGn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17A355C90B; Mon, 22 Jan 2024 15:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935641; cv=none; b=TGf2IWwcvh0RyXVKlavIU97LNgC0TBlYQEM5dkOepbu18usuEhZnLiOpsoRRgTrzmpOfPCJhLhqgEe87sEkvRRIrQRZ5VdjfipbStbcHu8sCpm0/496KtZv7otSnH887rFGyGuLFOpUiuVzwG4ASYLWlizbNlOD5cErG+m0OfKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935641; c=relaxed/simple; bh=TUaHewwRDkOKCmO6wFsLmMkfHc9ooD1imeaxcYUU8qk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MX/vVdTYrVAfhQWRYLxk5Rksga866SijilxaDsuByrD+bOBItSU3qie3RdFvYKRB9t5ZBmMx//T+yEXSKtdT30rPT3mkPY5S/cKE2mNvqL08htvD6PGmSFy4gqlDLrVP9PB5KRylLxmjXPljHqi8OJWfmKPwVvopZ1nUwhj8cks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BUFrCnGn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11CF3C433F1; Mon, 22 Jan 2024 15:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705935640; bh=TUaHewwRDkOKCmO6wFsLmMkfHc9ooD1imeaxcYUU8qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BUFrCnGnpX4f9l6PiLAM5OheuDqT1sEBLqO68oqaq3nJgdIvqVS8iGzzMIcs0IWXO ff+fkFnzy8Exbc8R1uWb7liWT+wDCfaGvHgEOVQzuKD+jHV9FL2OExo+g4OAw8WOY3 b8YUP3AsSJ7lkNUUcXh4FoPalPq/iSTpIjlXiTmjvcCCwj43yARMft9f4vucrlvELC jpwk1N3XyzPvO1CdQ2rfQc4TWs8wt9XFKxAqDq6Chh7D/0hW2krY4dNH05D3H1U4TR 77/ZV5Ed4x1tYB2CtsDAWRhjdBOlIWBl0YeSspuwo2imyrF4dm3jOvd6rf6PaUQ4J6 zMC2XHnFh8CFQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Michael Strauss , Nicholas Kazlauskas , Charlene Liu , Wayne Lin , Daniel Wheeler , Alex Deucher , Sasha Levin , harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, Qingqing.Zhuo@amd.com, sungkim@amd.com, syed.hassan@amd.com, gabe.teeger@amd.com, dillon.varone@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.7 68/88] drm/amd/display: Fix lightup regression with DP2 single display configs Date: Mon, 22 Jan 2024 09:51:41 -0500 Message-ID: <20240122145608.990137-68-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122145608.990137-1-sashal@kernel.org> References: <20240122145608.990137-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.1 Content-Transfer-Encoding: 8bit From: Michael Strauss [ Upstream commit 5a82b8d6c05f9b30828ede1b103b9ee5cb5c912e ] [WHY] Previous fix for multiple displays downstream of DP2 MST hub caused regression [HOW] Match sink IDs instead of sink struct addresses Reviewed-by: Nicholas Kazlauskas Reviewed-by: Charlene Liu Acked-by: Wayne Lin Signed-off-by: Michael Strauss Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c b/drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c index 2498b8341199..d6a68484153c 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c @@ -157,6 +157,14 @@ bool is_dp2p0_output_encoder(const struct pipe_ctx *pipe_ctx) { /* If this assert is hit then we have a link encoder dynamic management issue */ ASSERT(pipe_ctx->stream_res.hpo_dp_stream_enc ? pipe_ctx->link_res.hpo_dp_link_enc != NULL : true); + /* Count MST hubs once by treating only 1st remote sink in topology as an encoder */ + if (pipe_ctx->stream->link && pipe_ctx->stream->link->remote_sinks[0]) { + return (pipe_ctx->stream_res.hpo_dp_stream_enc && + pipe_ctx->link_res.hpo_dp_link_enc && + dc_is_dp_signal(pipe_ctx->stream->signal) && + (pipe_ctx->stream->link->remote_sinks[0]->sink_id == pipe_ctx->stream->sink->sink_id)); + } + return (pipe_ctx->stream_res.hpo_dp_stream_enc && pipe_ctx->link_res.hpo_dp_link_enc && dc_is_dp_signal(pipe_ctx->stream->signal)); -- 2.43.0