From nobody Tue Dec 16 16:37:18 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0C8FC28B2B for ; Fri, 19 Aug 2022 16:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351624AbiHSQI6 (ORCPT ); Fri, 19 Aug 2022 12:08:58 -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-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =20 +#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 =3D (struct drm_info_node *)m->private; @@ -1939,7 +1941,7 @@ static const struct vc4_hdmi_variant bcm .encoder_type =3D VC4_ENCODER_TYPE_HDMI0, .debugfs_name =3D "hdmi0_regs", .card_name =3D "vc4-hdmi-0", - .max_pixel_clock =3D 297000000, + .max_pixel_clock =3D HDMI_14_MAX_TMDS_CLK, .registers =3D vc5_hdmi_hdmi0_fields, .num_registers =3D ARRAY_SIZE(vc5_hdmi_hdmi0_fields), .phy_lane_mapping =3D { @@ -1965,7 +1967,7 @@ static const struct vc4_hdmi_variant bcm .encoder_type =3D VC4_ENCODER_TYPE_HDMI1, .debugfs_name =3D "hdmi1_regs", .card_name =3D "vc4-hdmi-1", - .max_pixel_clock =3D 297000000, + .max_pixel_clock =3D HDMI_14_MAX_TMDS_CLK, .registers =3D vc5_hdmi_hdmi1_fields, .num_registers =3D ARRAY_SIZE(vc5_hdmi_hdmi1_fields), .phy_lane_mapping =3D {