Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp300744pxb; Mon, 25 Oct 2021 08:33:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5mGr1GPY2cCZ4qJgrnU/45NcJny8aF3wdFTVldiJroEJqanOCJAd8JlHnJwl3YWYTjKOn X-Received: by 2002:a17:907:3f18:: with SMTP id hq24mr3092261ejc.151.1635176036537; Mon, 25 Oct 2021 08:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635176036; cv=none; d=google.com; s=arc-20160816; b=XzUsf8xJN1JXyQsUaLng1vbt0lheZs17Mr9Ri9kiUPLt7lyyJJQAMa/ufrHkdn93QY qcCD5YOVN8KW09nUNvJggua9wDK+NRftmJq8aGBfhRawAPf97NHyt3jt9FeUBnLRCGTY 3E0AZwtoCwU0EuTPaeH2tMk3KGwA3hQKxp4VV7PZzjf2ehZvW44bfti8qNZlmIQYT3Rs Sg2s0ci2GAXkg83ygYumFe5zYAfpKXu2aOmx4xx4R8SYoIae5z6nmOKFu7onnR+Fwv4F mu3oqHDH4y84ogV9jkK1DIqL9umKHoDuw/6TgNDNnT/PKcbdHml8UDo1CN2avNNLMtyc o3Nw== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=+uHGLlaZStEUDZoEdeccQ37+kW/i83PHcozXaWvbhgo=; b=p9wUy0xO99+GDCKC5hJ/KuK4a3LtkBY3aZwkM6iEBpSfom0ph4SQNCcMupENHr+KVT xn8yhrKUji0NwYBi/0eCxKpnzx5tmn0O5fB5EKWtFEYviErf8GshA2Q2C/mQt6mKqJxr /AQu8ISzuJDsO5LfK+OtK3dPwMrs6tlRpitsugTDEq52B8GdrMtKD6PG+7OJ6smQWeN6 s0WKnES3Lco32UakDE7romosaRykNxtxF3Hi/5yunOo9pvZvhmKfqSjWYQVBbacyJ/Yt PLcOahMsDixEfWx4Awm6XormZLKSh/1PDxcXr2qrLuf5hSTaWBJgePFz4NjVWBZccCfk ueqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=IURZZj7z; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=TA8ZJsNT; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si7700120edh.335.2021.10.25.08.33.31; Mon, 25 Oct 2021 08:33:56 -0700 (PDT) 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=@cerno.tech header.s=fm1 header.b=IURZZj7z; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=TA8ZJsNT; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233706AbhJYPb3 (ORCPT + 99 others); Mon, 25 Oct 2021 11:31:29 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:60927 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbhJYPb2 (ORCPT ); Mon, 25 Oct 2021 11:31:28 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1E5305806D0; Mon, 25 Oct 2021 11:29:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 11:29:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm1; bh=+uHGLlaZStEUDZoEdeccQ37+kW /i83PHcozXaWvbhgo=; b=IURZZj7zFAQUDtumk7HJCgGhkTR9/yGbRxtF+fBxL4 0ej6P1oMAmIfKiAZWAC+WBKBiDXkc0JDm+GzwU10rNQGFeq92g37i9imH/exTPbj nad8gr48jfLdnp5sWR0CNGQ1NmojYrQ1TKoHFRP4OB6Myu91uZs4bV1xWO+H1AJq ibtCgkteujo2gvHKRpsSeC6VFdX8WHKDLlBr4RVFdKezAfWPYnTWIxXPzMnyPzI6 9+SSrvNh0FKQ/KGpInUGmqC9KiiMNQZhzDl74IHpHh5F/s6lZgUb7na5EAaPwb6L LUFCNDuUx/upIimw5TaJwvMVTg38PD56tNUGf7qV1HBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=+uHGLl aZStEUDZoEdeccQ37+kW/i83PHcozXaWvbhgo=; b=TA8ZJsNTbMABO8HVsVkuF0 31fM+dnI2LcQirKoKy85RBrBIOf4TxefLO606cv2FK7NtxjU2aI+w0R15gudTwdW DEE1htwJlDOUs7pq1+OyjbS0wKc03RxIh6V4b3NtslhiqfibBRCP8FZsmJdUkcx6 PoHJ3LylJIa2kbl9sjvK8N8Aq7hTCggzLhyj6kC5ggmgxSt/WK/aGgs3diq9DWVc zz3yNRqU62425OXrd6YhBwhNWA3dgiK9z/PTmf4iEIz53NB50dOm9kUEEsqz53wO 28W5oR+qPS/QieV1y2ykKxzxOMrAf7A7tPXX2IZNUAt01rKPUfaynQesPQ95Jvjw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 11:29:04 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Daniel Vetter , David Airlie Cc: linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Ripard , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, Emma Anholt , Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley Subject: [PATCH v8 00/10] drm/vc4: hdmi: Support the 4k @ 60Hz modes Date: Mon, 25 Oct 2021 17:28:53 +0200 Message-Id: <20211025152903.1088803-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi,=0D =0D Here is a series that enables the higher resolutions on the HDMI0 Controlle= r=0D found in the BCM2711 (RPi4).=0D =0D In order to work it needs a few adjustments to config.txt, most notably to= =0D enable the enable_hdmi_4kp60 option.=0D =0D Let me know what you think,=0D Maxime=0D =0D ---=0D =0D Changes from v7:=0D - Rebased on current drm-misc-next=0D =0D Changes from v6:=0D - Rebased on current drm-misc-next=0D - Removed stale clk_request pointer=0D =0D Changes from v5:=0D - Fixed unused variables warning=0D =0D Changes from v4:=0D - Removed the patches already applied=0D - Added various fixes for the issues that have been discovered on the=0D downstream tree=0D =0D Changes from v3:=0D - Rework the encoder retrieval code that was broken on the RPi3 and older= =0D - Fix a scrambling enabling issue on some display=0D =0D Changes from v2:=0D - Gathered the various tags=0D - Added Cc stable when relevant=0D - Split out the check to test whether the scrambler is required into=0D an helper=0D - Fixed a bug where the scrambler state wouldn't be tracked properly=0D if it was enabled at boot=0D =0D Changes from v1:=0D - Dropped the range accessors=0D - Drop the mention of force_turbo=0D - Reordered the SCRAMBLER_CTL register to match the offset=0D - Removed duplicate HDMI_14_MAX_TMDS_CLK define=0D - Warn about enable_hdmi_4kp60 only if there's some modes that can't be r= eached=0D - Rework the BVB clock computation=0D =0D Maxime Ripard (10):=0D drm/vc4: hdmi: Remove the DDC probing for status detection=0D drm/vc4: hdmi: Fix HPD GPIO detection=0D drm/vc4: Make vc4_crtc_get_encoder public=0D drm/vc4: crtc: Add encoder to vc4_crtc_config_pv prototype=0D drm/vc4: crtc: Rework the encoder retrieval code (again)=0D drm/vc4: crtc: Add some logging=0D drm/vc4: Leverage the load tracker on the BCM2711=0D drm/vc4: hdmi: Raise the maximum clock rate=0D drm/vc4: hdmi: Enable the scrambler on reconnection=0D drm/vc4: Increase the core clock based on HVS load=0D =0D drivers/gpu/drm/vc4/vc4_crtc.c | 60 ++++++++------=0D drivers/gpu/drm/vc4/vc4_debugfs.c | 7 +-=0D drivers/gpu/drm/vc4/vc4_drv.h | 8 +-=0D drivers/gpu/drm/vc4/vc4_hdmi.c | 13 +--=0D drivers/gpu/drm/vc4/vc4_kms.c | 126 +++++++++++++++++++++++++-----=0D drivers/gpu/drm/vc4/vc4_plane.c | 5 --=0D 6 files changed, 157 insertions(+), 62 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D