Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2136523lqb; Mon, 27 May 2024 09:00:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2aMQq/nJKDruw/0zxsY/GWBgLSdoelg/otCTaQgIFmM5/oJuT1GvoTWr+z47pZjddTHLCCkYH19KFv6bWrl5HpfcI6KvLnX1IhuCSFQ== X-Google-Smtp-Source: AGHT+IHyFdb5pGtMKg55BAmulKGGHmG32dGnzOyxvHeSYFNQaf7LQt5FmYujFPLINqvJrlRFqlhT X-Received: by 2002:a17:902:c942:b0:1f4:b858:5fe7 with SMTP id d9443c01a7336-1f4b858616bmr14023615ad.61.1716825626301; Mon, 27 May 2024 09:00:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716825626; cv=pass; d=google.com; s=arc-20160816; b=uh1wP5cLj/es01OEITY8gXe7+IimhzOsZhLyG9otQeFNcmE2qWd5XGnOkWlYVfeme/ rNtLF69s3aQ5+WhlZa6rjSsA1+LAfr/q6B2oUIm+hzRbanRIVFBPWjbukV4m7r9F+0hU KQ9p8iqpSH5EOTeezTLG4+6fA3+CrgSoLzls1x6vCn9RizDeZeP8dmpebFlMuuG0owf5 Xm7rG9AOKF+qoABXwdJsd3bt+kKsRs9TCR9nI06FNU1Ri8tzaDzA7tMcwnJ3qYsXIXnT 8r00K2EVLAQJciEKXyvb3wzsaH8HH+NaG7FdxZRQtoPi/Icv+vLfh0+gn1OOElJDmF/0 6fGA== 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=NIjWJhoccKk/iFYy22ByAUg6sEUKmWT1DUvIQ0+ZAiY=; fh=KrCq+4ErYuC/XdWcZd2hQHIqvdaPaHGZ0QqeJZ48H54=; b=qkdBs4XI72QuvnT2a+2LJ6j9AqS2xSKUYquEeyxWZqfue8BBIlA+22yopgfbisE5zB n3i4gbr5zFuobAWnEYigeL3ZKTxiLCVehfCLDZcOEMd7A3nx8hkoXuN66ppU1f953Z7s NY9rs4/GsaeFTlPnWvAOxlEcwD3xvOd9q4EAqHdtvo0mx2tWTSPfq9wFVfezHWPy/KxW zXiAkemMWES02nNcVrE2SVfD8G3MigKj43bEGPsnqbOoaXB6fvyviQvb5obt4RAQ0rMz gJ7tx03DAUgqm9R6XIxVQ+onhfwtfyZ44eTCBbz7XTlox8Glli2DuD/PFqNqNhDPvXIS 7Taw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c1q6Q5Oj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191106-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191106-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 d9443c01a7336-1f48bd18d13si27564305ad.216.2024.05.27.09.00.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:00:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191106-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=c1q6Q5Oj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191106-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191106-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 16B02283A46 for ; Mon, 27 May 2024 15:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EB4B7346D; Mon, 27 May 2024 15:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c1q6Q5Oj" 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 C47C917E8E2; Mon, 27 May 2024 15:52:04 +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=1716825124; cv=none; b=bnFyprNavwWRPwv5AhRLjH7BSJ12RPPr3E48dXhCQqaCzZygd2eZ1tc+3d0xYHftZOeMpFUzgsr7rnMSsjmEifqkMMFNuMlINLcyok8lIxjc2f04eiRncIpUqw59LUq4yvN7rhUUK9dJ6Ku/RK2MIjH2vpKX/wkoW6darOI8B1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716825124; c=relaxed/simple; bh=ypB96dWGLy8iJdOom+0sKyOXUXvjUh7LdOWWwNomkhU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kp4Eqvk+3mA80absSV51IPqHFygGg09rRhF/BOGfEBK111+bmibnQJR/X5Svo/a7GNdvoQ7YXASOz5WrMK1Kosq+/vs8r2q+gkEvcYwoLXwF5+Dhz8QuSqdnTKlYjLBzfUSUnGsP6Pw4GjGcvQlLYo5RLU/OtqhzoHuFxOumTuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c1q6Q5Oj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFA1AC2BBFC; Mon, 27 May 2024 15:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716825124; bh=ypB96dWGLy8iJdOom+0sKyOXUXvjUh7LdOWWwNomkhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c1q6Q5OjK1vsT0wqFZozAZlZ+dDfHt9+4QrzpF1y2RPJCzlREzhr1upbPeJPvduun taJr9bt2U08novDYtyV7QDcfu/fpZzr2GB91N2KWZ/ArA7g0/RZFblV550U7ReUIfb 9IKAshtH9byDCHL3v55N+s2YcmcgwvIDQLQITgWTdCISKDFPwocKJGkLndhsOKbLb8 jn9d8fct2IK+z0EgbBIiYsWk/w7sygueMit/lEVhvLhaOajNkjow7SEu4y8yejGVUY EciQNazhb8gTjR37KVLt8Wg0xo9b0VzmxqVK99+GdwF0ZqdhHWvhlifXnffphGkZDj s/BEAPHonjsXQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Xi (Alex) Liu" , Daniel Miess , Nicholas Kazlauskas , Roman Li , 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, chiahsuan.chung@amd.com, charlene.liu@amd.com, sungjoon.kim@amd.com, duncan.ma@amd.com, allen.pan@amd.com, danny.wang@amd.com, alvin.lee2@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.9 07/23] drm/amd/display: add root clock control function pointer to fix display corruption Date: Mon, 27 May 2024 11:50:08 -0400 Message-ID: <20240527155123.3863983-7-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527155123.3863983-1-sashal@kernel.org> References: <20240527155123.3863983-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.9.2 Content-Transfer-Encoding: 8bit From: "Xi (Alex) Liu" [ Upstream commit de2d1105a3757742b45b0d8270b3c8734cd6b6f8 ] [Why and how] External display has corruption because no root clock control function. Add the function pointer to fix the issue. Reviewed-by: Daniel Miess Reviewed-by: Nicholas Kazlauskas Acked-by: Roman Li Signed-off-by: Xi (Alex) Liu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c index 670255c9bc822..4dca5c5a8318f 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn351/dcn351_init.c @@ -147,6 +147,7 @@ static const struct hwseq_private_funcs dcn351_private_funcs = { //.hubp_pg_control = dcn35_hubp_pg_control, .enable_power_gating_plane = dcn35_enable_power_gating_plane, .dpp_root_clock_control = dcn35_dpp_root_clock_control, + .dpstream_root_clock_control = dcn35_dpstream_root_clock_control, .program_all_writeback_pipes_in_tree = dcn30_program_all_writeback_pipes_in_tree, .update_odm = dcn35_update_odm, .set_hdr_multiplier = dcn10_set_hdr_multiplier, -- 2.43.0