Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp372449pxj; Fri, 7 May 2021 10:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAqMRak7GGpk4ohPoO/IfT/RyUFlO5w+TIQ92x9d6z0UqZ0OFjfAliBlhi2pTJgh/eTYD3 X-Received: by 2002:a65:4889:: with SMTP id n9mr11040264pgs.91.1620408321830; Fri, 07 May 2021 10:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620408321; cv=none; d=google.com; s=arc-20160816; b=A2bfg7/vaxfrOugFLDlGhDqzoprMM46Vgdg5k2bnPb/SjVywIRE1/8oKacXF/PjKVb 0HAzEBp4CkXhm6rha6XRJs57iRSoV+cXihNzdMvq9aafc5fJWeAgsCC10stH2ZBhcVw6 X0T75AR368ojqtc0H/oX0jmwwx6qDBfDSjBYO4hCHtjp+jitjla2+qXxfB1MrWtpR/Fm 2q9rU0D5h3YXd6zpsKrfyYCk/TICimyxGM6o7zbB5Bob9kxluxgBqneksnQj8bZJ9z2L YlfiVDiLj6XUuoGkudsrKAN6oSDwCDn6l8dE7EHsnr14fHbgJ3EKrxrNOqvQAEztgLSl QeeA== 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=2uFNi/3TthaFiv4+GYmmbBcULiA6PkSxR3lwy0Cdm48=; b=d9POvoaC2dyS8MJZGCJFG0iSYus0cTFgFJzkx82NhOOHFqvAK9KpVujTyyMWRkca4L dXKP8ypbHjvlTyNuZiwYXtxgYMjSIFtviFC8ngpVah0G8sZxbTBRYDdjm+VR7Ckspums EjzOEOJzpgf61/bna0tczGG9mvZCV7mwtlKNgEbQFB6oNthZx+3BAZCT8ZSeA5Ox+uha OYPCe6VUzss4oyxNGtO19g7ey3qyOUK6tBA8u9x0UJaQZji8rLA2GmqFugQQ3Yg9oKIq 9r4KBsJTYorgJXOlzm6ySXxWB+hha5QHdwat0sAVvsrI+Qg8etuWmey5Y1eV+SlX2VOy 8iHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=iHasEh8l; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kYdZFYfj; 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 u7si7585889pgf.130.2021.05.07.10.25.09; Fri, 07 May 2021 10:25:21 -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=fm2 header.b=iHasEh8l; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kYdZFYfj; 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 S237767AbhEGPG3 (ORCPT + 99 others); Fri, 7 May 2021 11:06:29 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:53911 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234841AbhEGPG1 (ORCPT ); Fri, 7 May 2021 11:06:27 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id B220C13A0; Fri, 7 May 2021 11:05:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 07 May 2021 11:05:24 -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=fm2; bh=2uFNi/3TthaFiv4+GYmmbBcULi A6PkSxR3lwy0Cdm48=; b=iHasEh8lcj/FihZBVh0gBI3gIsUL0br7vswjXf1ZPd Yq/w7VZOTONDUtcHDk34VoeF99DdybXMS0mid6qE6NITE1S9BJOpsl3JWDISWV4Q RZ3MCFHtVO9Zq5+xjAAZuP2Q8wDoQS9P7Ufy4SV5+8GnmXUlBPkRV3bM7dKe0UHU QxQ8yBpE59067mUYeB5DBxnyB8wr/GJiP5CgxGBfzgjTzW5TYxwcDImZLYxIp7VV MhWHs9cnMPg7FScqz1EedRy5JIKTqrOPYwsKpRM60YJ9h/iC7bGNw7G0hKmnjxAD YjN9HGpIjSoauz6WFqTQWci1Qx3g7TTpWN7ubDYui4RA== 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=fm2; bh=2uFNi/ 3TthaFiv4+GYmmbBcULiA6PkSxR3lwy0Cdm48=; b=kYdZFYfj+mR8s7Rt8B95/m tO3AUGHj06c+SHrdWDCJYmGXFaJGyjRdJBOdqs+SZr/kFSAMzDMVV2oZj5fqBbqM FkkzhYSY2fhgWfIh/nmSrh95TERL0jh2PWhg0EG6ilYXUaIILB1EZdjas8MXkJOP Uq+2YoG+B8SMrY3VqwTOz/z3b3MLfgecLD0KYBMEHKp+JE6a2FqKgzwX0Ki3cXeV YZYrPhFSwhmZEaQ3bi2iKhisT2Sl5u/V7i6PnIAG8zeoZoip0JqXkkh+uqfE/3l6 tjK99JHifUymC7Ud0H9fRtw6VstkfhJ2LK/qU/rFNkLhaJHKPRUYuqsu7fP/OcYg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegvddgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 May 2021 11:05:19 -0400 (EDT) From: Maxime Ripard To: Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie Cc: Eric Anholt , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , linux-kernel@vger.kernel.org Subject: [PATCH v4 00/12] drm/vc4: hdmi: Support the 4k @ 60Hz modes Date: Fri, 7 May 2021 17:05:03 +0200 Message-Id: <20210507150515.257424-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 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 (12):=0D drm/vc4: txp: Properly set the possible_crtcs mask=0D drm/vc4: crtc: Skip the TXP=0D drm/vc4: crtc: Pass the drm_atomic_state to config_pv=0D drm/vc4: crtc: Fix vc4_get_crtc_encoder logic=0D drm/vc4: crtc: Lookup the encoder from the register at boot=0D drm/vc4: hdmi: Prevent clock unbalance=0D drm/vc4: hvs: Make the HVS bind first=0D drm/vc4: hdmi: Properly compute the BVB clock rate=0D drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies=0D drm/vc4: hdmi: Enable the scrambler=0D drm/vc4: hdmi: Add a workqueue to set scrambling=0D drm/vc4: hdmi: Raise the maximum clock rate=0D =0D drivers/gpu/drm/vc4/vc4_crtc.c | 66 ++++++++++---=0D drivers/gpu/drm/vc4/vc4_drv.c | 11 ++-=0D drivers/gpu/drm/vc4/vc4_hdmi.c | 147 ++++++++++++++++++++++++++--=0D drivers/gpu/drm/vc4/vc4_hdmi.h | 10 ++=0D drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 3 +=0D drivers/gpu/drm/vc4/vc4_txp.c | 2 +-=0D 6 files changed, 217 insertions(+), 22 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D