Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp158726rwe; Fri, 26 Aug 2022 02:40:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Aa8JK5VS6u/ovTk5pNLag4NsPL2RlTHRag1bdtj1EQq9oyRn0QMst0opk6QldKtriWG1M X-Received: by 2002:a17:90b:4f81:b0:1fb:23bb:5183 with SMTP id qe1-20020a17090b4f8100b001fb23bb5183mr3533241pjb.140.1661506812771; Fri, 26 Aug 2022 02:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661506812; cv=none; d=google.com; s=arc-20160816; b=e6qx9gBIMCl1ggZgHNS+9t6LSNnqZSB9zEneyZpEjfd5x22KtJPEql5YeTJY+IBeQs Gwqvdv6LgQXNdAFl404+mCmPzzQ3zwKrFkJ6y00x6Za/JBQHWMEUV6HM3u4VXVXeTTZc U+lL1Cfw5TMVOnEYCsG5RUgPdz8ejCszMDu18GCTA7069A+nYx32jchHoHc+px+7J9nK 3tCVMjYPQL18R4/K4trJu8K2nHuga3Y9l6nDbYwc+Q5Wb9JZNkYvRHFw6LMtPXe0nALt eyWo5ju8e0oRn/k7nO4ealfgh3FXtn23xMoPaUvFVEvvmZeKzjanRj4iRGuk9pQQ9Y/g wXGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=9xtBw9bGVh/VC2EF6GzMgiE93Tg5R1QYL3cLjDRDYzc=; b=oZ6bTmpmWNKpRxHj/AoqRuX59B7HitoPTE3cWSbnItoIBf26LdR2g347ce02w8QUcH 27guJuV/yyE7PXwP4d1OHAp9QhUFJcQgbY4YvWqWaSgPrtHYzPncv9oRA7aaHaKLI6eg zVLOAo2zF8DDcQJrjeFMPfn0HCfYQosesd5C2HqkrGEGafkpf+ZvOTYjNea0By7cOOEZ tKJ6rf9WP1obiSGZSD5Q5tWoB60/6dMe7TeBdEqymitCiGplbUJkLegtnu7kOHvN2Hb/ g+tlCpGNlZ+XSum+ewFktO98fzSjGchHcyJlUD0UGbxxsApkOiXp7UlLPXZ5eGnwkTs6 NqDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=cyxbPTjc; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tApEFqsJ; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p62-20020a634241000000b00419ae79c801si1353441pga.429.2022.08.26.02.39.59; Fri, 26 Aug 2022 02:40:12 -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=@cerno.tech header.s=fm3 header.b=cyxbPTjc; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tApEFqsJ; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245078AbiHZIkw (ORCPT + 99 others); Fri, 26 Aug 2022 04:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241853AbiHZIkU (ORCPT ); Fri, 26 Aug 2022 04:40:20 -0400 Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDA2D5EB1 for ; Fri, 26 Aug 2022 01:39:37 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id BADFF5803A3; Fri, 26 Aug 2022 04:39:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 26 Aug 2022 04:39:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1661503175; x=1661510375; bh=9xtBw9bGVh /VC2EF6GzMgiE93Tg5R1QYL3cLjDRDYzc=; b=cyxbPTjcl4hcUxTxY9R3TEaBtP ChkWzg86WrWHSb8+ifunp/H1FZDvxH36HLAyVP6q4NBEtlCQSrihx87KO4+HjQIZ S+6jjIJ9aHhKlPyBEjm1Z196OjkLhy5dSL1+CrJ+mcGPC9sPf/zKipQ7dwl7BcA+ 3XxEv/SySp5yWccenDgtPsQK7clK5UaTfvBWZx+80EG9L3HSpEp+1W+hpBIiIyxH jsHv7RjzkIxKfNT1krrbsp7I0R9Tuf7R9ax/YLuZ4vcr9SNf0F2ZlXc/7Gyh4dFf DTJQ8704P5yE0RMQDOEwKNyK/VdockUbBz1FIuLiKnBmYW+qkWj4+xPuR37g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references: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=1661503175; x=1661510375; bh=9xtBw9bGVh/VC2EF6GzMgiE93Tg5 R1QYL3cLjDRDYzc=; b=tApEFqsJzgIpkdw3IAPFB+tnDdhT/p4Z/63Z0OYt3OTc VdzFOn+20lhMDNIyvxC/XxNpxpIwVJ4TSpZXW+lqW+L8XV6ikpUlITX/lSTGgBlC qbZNwcpKCj0A93ph8YNR5gLzOMi87MBG5cWctotHXU5TA7u2b9BPHToT68urDc9V j7uLnWRM3nka8Pt/dc+5boJIPbNnwX0hYblSYD5r+/EjgHWhXEg1tr4fy6exNY96 s0yxTzw1nD2Sd0lyxPOj6u817l+NAqIu5ofSqBW+9WYUPT0/bMSJcbP+JdHJjh5I iY6py0HZTr4oqeNyuoLaYNKCMv7kwtWuc+vEa6sVNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejhedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeevuddthffgfeeiffejgfeghfeludegkedtgefgffejtdegtddvleduvdfh teehveenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Aug 2022 04:39:34 -0400 (EDT) Date: Fri, 26 Aug 2022 10:39:31 +0200 From: Maxime Ripard To: Mateusz Kwiatkowski Cc: Noralf =?utf-8?Q?Tr=C3=B8nnes?= , Jernej Skrabec , Martin Blumenstingl , Chen-Yu Tsai , Philipp Zabel , Jerome Brunet , Samuel Holland , Thomas Zimmermann , Daniel Vetter , Emma Anholt , David Airlie , Maarten Lankhorst , Kevin Hilman , Neil Armstrong , linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Phil Elwell , linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dave Stevenson , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley Subject: Re: [PATCH v1 00/35] drm: Analog TV Improvements Message-ID: <20220826083931.sd7oxpbsnxrqij52@houat> References: <20220728-rpi-analog-tv-properties-v1-0-3d53ae722097@cerno.tech> <987d6114-5fcb-d668-3b0d-ad6d8723dfdb@tronnes.org> <20220822074800.qzyctchqn5usr55g@houat> <9a15b1cf-692c-1b0d-02a6-316cbd954525@gmail.com> <20220825155506.wqurh5r752qfufqs@houat> <18737c8a-78f4-5b9f-aea2-588bc65c13d9@gmail.com> <9d9ba040-99d7-25cb-ba10-1c132d7f7663@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ztr76q3jbdkzy3rp" Content-Disposition: inline In-Reply-To: <9d9ba040-99d7-25cb-ba10-1c132d7f7663@gmail.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 --ztr76q3jbdkzy3rp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 26, 2022 at 06:07:47AM +0200, Mateusz Kwiatkowski wrote: > Hi Maxime, Noralf and everyone, >=20 > Just as a quick update. I isolated the issue to the power management subs= ystem. > Unfortunately I know very little about the power management subsystem so > I don't think I can help. >=20 > There are two alternative dirty ad-hoc hacks that get things working. >=20 > - Commenting out the pm_runtime_put() / pm_runtime_get_sync() calls in vc= 4_vec.c > - Reverting this PR by Dom Cobley a.k.a. popcornmix: > =A0 https://github.com/raspberrypi/linux/pull/4639 We don't have that PR upstream, so that might be the explanation to why you're seeing this and I don't. I'll look into this further and will open an issue. I can't see anything wrong with the pm_runtime use though. > Either of these approaches makes VEC mode switching work again. Obviously > neither is appropriate for a permanent solution. >=20 > I tried some random code permutations that came to my mind, like using the > vc4_encoder callbacks (e.g. post_crtc_powerdown) instead of the standard > enable/disable encoder callbacks, but to no avail. >=20 > Since the clocks and power management seem to be delegated to the firmwar= e now, > my guess is that this might be a firmware issue, but I can't really check= all > the firmware versions. It certainly crashes on the version currently avai= lable > in Raspberry Pi OS repos, and on this one: > https://github.com/raspberrypi/rpi-firmware/commit/4dde751. My Pi4 doesn'= t boot > using any newer firmware, at least not from USB - I might try some SD card > after the weekend. Thanks for your testing Maxime --ztr76q3jbdkzy3rp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYwiGwwAKCRDj7w1vZxhR xVloAP9b+eN7Fz3nq/+s3sKOXlcj/RDnTbMCfoNAKYheAd1bJQD/SVISMs+ofJwg ATFobKVjQ6spDBEO2dCXYu2C237MFwM= =AUEX -----END PGP SIGNATURE----- --ztr76q3jbdkzy3rp--