From patchwork Mon Aug 15 15:31:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12943735 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B52E7C00140 for ; Mon, 15 Aug 2022 15:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jpzOW01l5cRCXtxESIll17Qe50PIvX6tZHirIOPxF0g=; b=RGi8yvQmY7YT5T QK/qstp8o8ivaFb9Qqyq0YIRPjGilnoXx5nb/rkNGltJv6ux/Eg+uPWaVkmc5dc36fuKB0uVK/06r xq3Hu0t/EUAq9U/mQsWKPS9Ls98tiSVRVy5xtN2czYBhI/jKBvMAVDcsA+nVSzEAz09butnQs2jX4 AfszqT0gnKyF2MCFUIsA5AKhbu4ttPyJ2ZU/yO2XV/8aSQ6acK7LI4SFBzE9YXIp4Djf0nxilnN+/ Ay9EdDmv/lKuseoqTMQy3nvFWkK6h4UFygkoTx5g/2YiFSrgNDzyRISvI0EDZbBZBpSSkpqxKKSuX cUNXLkV8rBmbjuXj4mNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNc4J-000txP-Fq; Mon, 15 Aug 2022 15:31:56 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNc42-000tlx-86; Mon, 15 Aug 2022 15:31:42 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 32B75320014C; Mon, 15 Aug 2022 11:31:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 15 Aug 2022 11:31:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1660577493; x=1660663893; bh=COYSOGHtOo o3W+aHmo+tp/Q30caAeddvYY/qrRqsGjo=; b=fYjFKqLO6pKb0yjRHGlSVvezIg ZMrauuc4fW73ObCeuBlID5ww9vUdNUOAyKtHST9YjDK2rEJ+uw0zXj/+I/u3lNKw DEZbagxR+Mwps3H7VlcbakwLF3TOAGcfNqo1rR7YogdxCWyh6o2StJWXyCTO3ywB dV++JJNL5HIVZiW9xZP8NZRtVqP2g1I3Nojofg03oMiOJtzghN1rgVM4J50VVdY1 tK4Xep2fBhJYEzxiaXpmH8I3tTkmAgi7BQTCLoRcLnwHr8T+P4Xe/Z1W4E6FRM80 DF8SH++A2OiwmIxu+mum3H7KJ3DHsKkypBFZiLa+eY0Z/gqfU9z+dThqOXNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1660577493; x=1660663893; bh=COYSOGHtOoo3W +aHmo+tp/Q30caAeddvYY/qrRqsGjo=; b=Mux3WR3JB19iIJH9Mlfz3+op3f4uH F9nTN7bp14nIexoCPfyFN7u3olPD/477qAt4qsN9xlk91C+sx3sItLiEWRDZfz0u 2JROpwRb1/TteFUhj+SJHD6rjevm9r8Bx668IA86gY/sGP1FC8zDG9nIz/AyOIV4 +x87Ozxvdp2Fn1IlAZDz20nGPP44HSPKVmpyacJNeQuy/ZgGWaumQpBMavPRPmX3 cw7HTpBKTbQOivLRp0A7etCUdEmG4eNJD8F4+Gu4Pe5NYOo9i60XhzRv9eUOIGOa klaaH5CmlUj1h2elrOaQPdB4bzmhJoEdLfb0G0/eTvriUoYMa+5DyLrPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehvddgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofggtgfogfesthekredtredtjeenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeehgeekgeekkedvfeehgfelleeiffejfeevhfdtfeekjeeggeetkefhteek leejtdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Aug 2022 11:31:32 -0400 (EDT) From: Maxime Ripard To: Michael Turquette , Ray Jui , Broadcom internal kernel review list , Florian Fainelli , David Airlie , Daniel Vetter , Stephen Boyd , Scott Branden , Maxime Ripard , Emma Anholt Cc: Maxime Ripard , linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/7] drm/vc4: Fix the core clock behaviour Date: Mon, 15 Aug 2022 17:31:22 +0200 Message-Id: <20220815-rpi-fix-4k-60-v1-0-c52bd642f7c6@cerno.tech> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Mailer: b4 0.10.0-dev-a76f5 X-Developer-Signature: v=1; a=openpgp-sha256; l=1621; i=maxime@cerno.tech; h=from:subject:message-id; bh=NvfqtszeIkfBJ8DEBN1/EaTyTba+UU+/5+hHzJQzAnU=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDEm/0k7ohQdLG/6cnWrqd1Nrsymv2pdr1iKLYv7M+RJqG22u mPS/o4SFQYyLQVZMkSVG2HxJ3KlZrzvZ+ObBzGFlAhnCwMUpABN52svwo3/yiwB+zoUTFY5f+Mr61E j9559viy2P73s3T9xc88kJJUaGE0f6ghiVfPfcfdOf9cF3o6bunw+7Tq6Sf+uzKLRoSesNdgA= X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220815_083140_686429_E5A79B7E X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Those patches used to be part of a larger clock fixes series: https://lore.kernel.org/linux-clk/20220715160014.2623107-1-maxime@cerno.tech/ However, that series doesn't seem to be getting anywhere, so I've split out these patches that fix a regression that has been there since 5.18 and that prevents the 4k output from working on the RaspberryPi4. Hopefully, we will be able to merge those patches through the DRM tree to avoid any further disruption. Let me know what you think, Maxime --- Dom Cobley (1): drm/vc4: hdmi: Add more checks for 4k resolutions Maxime Ripard (6): clk: bcm: rpi: Create helper to retrieve private data clk: bcm: rpi: Add a function to retrieve the maximum clk: bcm: rpi: Add a function to retrieve the minimum drm/vc4: hdmi: Fix hdmi_enable_4kp60 detection drm/vc4: hdmi: Rework hdmi_enable_4kp60 detection code drm/vc4: Make sure we don't end up with a core clock too high drivers/clk/bcm/clk-raspberrypi.c | 73 ++++++++++++++++++++++++++++---- drivers/gpu/drm/vc4/vc4_drv.h | 14 ++++++ drivers/gpu/drm/vc4/vc4_hdmi.c | 25 +++++------ drivers/gpu/drm/vc4/vc4_hdmi.h | 8 ---- drivers/gpu/drm/vc4/vc4_hvs.c | 13 ++++++ drivers/gpu/drm/vc4/vc4_kms.c | 17 +++++--- include/soc/bcm2835/raspberrypi-clocks.h | 21 +++++++++ 7 files changed, 138 insertions(+), 33 deletions(-) --- base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 change-id: 20220815-rpi-fix-4k-60-17273650429d Best regards,