Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5036629pxb; Mon, 15 Feb 2021 07:57:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQPEqKpwvdkQafOPY5SxLZxmQ6DxSa0gbeVUwJtB2cve9carLeSJkOv2jmjrqJZXVX5bOg X-Received: by 2002:a17:906:5611:: with SMTP id f17mr7404826ejq.135.1613404627352; Mon, 15 Feb 2021 07:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613404627; cv=none; d=google.com; s=arc-20160816; b=dAOCvC158gXznYdZqjJFKlzp0C7Can0sGWJ/H60cfmxvU9IoKtB8fAaaUXFaPXKowl qU4BcAzh1K+wcIYRdDH8tWBU1/35lgA5Kc4Or5cqLrxPw7oi17ATwW31ApJ48HUWg4+4 MUsg+Q+xZHbM/BhXRBo/tX2BVKcAWnr32KCPkhCRkO1fBCtRFrBZiOMMb9WRgNz78G5N KUAI5IL4OgGWT4sJtgG7ao0TYnhrXPN0FdiQwkkFg7em+B7zxtIqMwdXOALg/mQvwTkm 92UAfzajGyhPWQ9WLqUEUTI1V2Q3J0wlH0v6DYPRxIy8NnflGwVKKQ4hBqJQNy+l6Eon h9mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xK7EM/iPcXBO52Fqxpimvp10YSVg3oSsro7dy7G2T0o=; b=cqwB960Xca/1TvCQdDbXqyV/UbWDdae/a8AUjxvO3q6cRgyAITQTD2LC/drUapR+zS GW1Z/EPY2pqdhYvSwv2isLBs5VZaV+mVFn0YkHl/IXCpn3QibgdDeUuB1D/oNgmobnzF orlQSjVfX6dTHwFvPdJua2xb9UZlX1fm4Ke8NrFa/pPlp/ZjQuUnM9ifBCUL7pyltpeD Zz5mcIG5akYhVSn0I0uNPC8qkcMI74WjfvCZddHhJ+MBOBVrXGYrO/AZtORXpocRU7O1 L3dOWJ/nx6MiT9Ean62moy67JQgsPvDKNozxO09A7Vs6qaMuD3lNMjYsV8XOKbUAv8r5 06Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LiLU03yV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck13si12184155edb.505.2021.02.15.07.56.43; Mon, 15 Feb 2021 07:57:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LiLU03yV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232026AbhBOPzV (ORCPT + 99 others); Mon, 15 Feb 2021 10:55:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:46650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbhBOPcf (ORCPT ); Mon, 15 Feb 2021 10:32:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5E3064EA5; Mon, 15 Feb 2021 15:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613403001; bh=YEGS8lk8azlNq7lt88NrazHPZNuQUIzIJP3/v+i7dUM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LiLU03yVvDyTp51L8QnC6/NimC/thVaxFYxnQx1V1b3fo7RLm8NSzPdUJQrGH7LGr eI5Ghoe7RJimTORIGSoblGS8ly/TK50ltKbLlBP8oQJshef3NnWlFeyePA9VVRYlRd 8WhC7OBBh0zHTGtWeNQSj/Vkh0Gg8+6gXXrcwK9g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sung Lee , Tony Cheng , Anson Jacob , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 15/60] drm/amd/display: Add more Clock Sources to DCN2.1 Date: Mon, 15 Feb 2021 16:27:03 +0100 Message-Id: <20210215152715.866337273@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152715.401453874@linuxfoundation.org> References: <20210215152715.401453874@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sung Lee [ Upstream commit 1622711beebe887e4f0f8237fea1f09bb48e9a51 ] [WHY] When enabling HDMI on ComboPHY, there are not enough clock sources to complete display detection. [HOW] Initialize more clock sources. Signed-off-by: Sung Lee Reviewed-by: Tony Cheng Acked-by: Anson Jacob Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c index a6d5beada6634..f63cbbee7b337 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c @@ -826,6 +826,8 @@ enum dcn20_clk_src_array_id { DCN20_CLK_SRC_PLL0, DCN20_CLK_SRC_PLL1, DCN20_CLK_SRC_PLL2, + DCN20_CLK_SRC_PLL3, + DCN20_CLK_SRC_PLL4, DCN20_CLK_SRC_TOTAL_DCN21 }; @@ -1498,6 +1500,14 @@ static bool construct( dcn21_clock_source_create(ctx, ctx->dc_bios, CLOCK_SOURCE_COMBO_PHY_PLL2, &clk_src_regs[2], false); + pool->base.clock_sources[DCN20_CLK_SRC_PLL3] = + dcn21_clock_source_create(ctx, ctx->dc_bios, + CLOCK_SOURCE_COMBO_PHY_PLL3, + &clk_src_regs[3], false); + pool->base.clock_sources[DCN20_CLK_SRC_PLL4] = + dcn21_clock_source_create(ctx, ctx->dc_bios, + CLOCK_SOURCE_COMBO_PHY_PLL4, + &clk_src_regs[4], false); pool->base.clk_src_count = DCN20_CLK_SRC_TOTAL_DCN21; -- 2.27.0