Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1876808rwb; Fri, 19 Aug 2022 10:54:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RK0miSgqSMYMZGs2SYJZDoa7g8xMMMLs7IjX2Ea98foQ3+VapbxDO426jOkooEjsWVZNq X-Received: by 2002:a05:6402:2792:b0:43f:6873:7497 with SMTP id b18-20020a056402279200b0043f68737497mr7311155ede.175.1660931666661; Fri, 19 Aug 2022 10:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660931666; cv=none; d=google.com; s=arc-20160816; b=lX0lpiPq4pdlvovKTxSsyqhdyh6EbrCfCPPh0UV7hK7JMO7mhr44x1OtBoSv2tvpIT 8GoAzMvMPSyp5W7tdeUMNugk2ePdixV33AzixZ3NV+AcC2PQEEoUC9UY7D0JM5icPE8g aF1L3xh9tF/5FtOve9BtYESjfAkf5Wm9TD1uSK9d+FoQrBKjkoWMs4X++jsWz1C1fhCc QL/Ta272/poygeN/rWgsApCDgbSyfLBahophKAISyJwOb/C6GiOW33kPeXBpyPu/lHax ehHA/pu9fLvGWTofD0+O341v2Fh6cEbe3zet+7HHiHfYgz17T7ZCdtHLECIQE40TUHXB 8pMA== 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=ZXd+QZq7S6upq828y4MIv0OtaDNjkF5Lk4YJmxTHZdM=; b=R/vxi32tO+7tvL09X25QESKppiXLpsD8oGD9o+tFeXbdM6qNUdJK+FnLoqs6q85D1m MiljDcBpW63x8qToHrBmRpb0Ei6FnaCqEp47aR5tvba+jcT/ZMKWqprtd3LJQOie/oyE /B541LjjxSSkOqel5SdyL0VesxD38Q3mTOfEDOtPOMSngMCfLc720DPb5t7388SrJVHN e5V0eYMgP65VIjj+cMHlfgIViUZ72UBqsbUNyeejyxYut0bSh8ixyBh8HkGvwj5dAQP5 7lqlJP+epLfM7nGeKTAZJzfFnabdHY46v5pV8CpTtN+Lx3Ui2wFugQaQNXSjuQcoJmfs 5m0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=p7oXtDpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ev7-20020a17090729c700b0073082263bc0si2734633ejc.348.2022.08.19.10.54.00; Fri, 19 Aug 2022 10:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=p7oXtDpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1351621AbiHSQI4 (ORCPT + 99 others); Fri, 19 Aug 2022 12:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351654AbiHSQGQ (ORCPT ); Fri, 19 Aug 2022 12:06:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16067107745; Fri, 19 Aug 2022 08:55:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 28782B82818; Fri, 19 Aug 2022 15:55:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73AD6C433D6; Fri, 19 Aug 2022 15:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924535; bh=O4Pyhf6igLpXD9eZbGXbgoOBWUQsc/ilXYUP0Ea1LMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p7oXtDpDDZecVGisOvZNkT658uScLC6CplN4QEJldvgpjhqd6na9T+1yzaFknk5A9 ZGFlqcM3bUNKltZ6kq4RO41Cq0ly+V/iysKiosmDbXPi0sepQ+LCIu2FJEzPazDIvx 2TVbsCXaAxedPvdt+6tJwVdYxzeE2wY7/0GWCmu4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Stevenson , Maxime Ripard , Sasha Levin Subject: [PATCH 5.10 202/545] drm/vc4: hdmi: Limit the BCM2711 to the max without scrambling Date: Fri, 19 Aug 2022 17:39:32 +0200 Message-Id: <20220819153838.425713142@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard [ Upstream commit 24169a2b0533a6c4030c91a7a074039e7c98fde6 ] Unlike the previous generations, the HSM clock limitation is way above what we can reach without scrambling, so let's move the maximum frequency we support to the maximum clock frequency without scrambling. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20201215154243.540115-9-maxime@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_hdmi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -83,6 +83,8 @@ #define CEC_CLOCK_FREQ 40000 #define VC4_HSM_MID_CLOCK 149985000 +#define HDMI_14_MAX_TMDS_CLK (340 * 1000 * 1000) + static int vc4_hdmi_debugfs_regs(struct seq_file *m, void *unused) { struct drm_info_node *node = (struct drm_info_node *)m->private; @@ -1939,7 +1941,7 @@ static const struct vc4_hdmi_variant bcm .encoder_type = VC4_ENCODER_TYPE_HDMI0, .debugfs_name = "hdmi0_regs", .card_name = "vc4-hdmi-0", - .max_pixel_clock = 297000000, + .max_pixel_clock = HDMI_14_MAX_TMDS_CLK, .registers = vc5_hdmi_hdmi0_fields, .num_registers = ARRAY_SIZE(vc5_hdmi_hdmi0_fields), .phy_lane_mapping = { @@ -1965,7 +1967,7 @@ static const struct vc4_hdmi_variant bcm .encoder_type = VC4_ENCODER_TYPE_HDMI1, .debugfs_name = "hdmi1_regs", .card_name = "vc4-hdmi-1", - .max_pixel_clock = 297000000, + .max_pixel_clock = HDMI_14_MAX_TMDS_CLK, .registers = vc5_hdmi_hdmi1_fields, .num_registers = ARRAY_SIZE(vc5_hdmi_hdmi1_fields), .phy_lane_mapping = {