Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3227607rwb; Mon, 5 Sep 2022 08:16:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR7DNQL/EDuQTPIKSsQaBy2XGAU7zzNV5B2rKbGP1B92gEiSJti5aBuopV2eS47TaRTOgAQ4 X-Received: by 2002:a17:906:847c:b0:73f:d7cf:bf2d with SMTP id hx28-20020a170906847c00b0073fd7cfbf2dmr32455804ejc.327.1662390979442; Mon, 05 Sep 2022 08:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662390979; cv=none; d=google.com; s=arc-20160816; b=Nib9xTQU1iTBQhAtvUhdX3COClFOVI4B9duy+W2E9BHuGn2b/WiSSA74cL7+e/egFZ x6KxcZwh8eSK3YTTvAGMvu2I1Z2LKAyM1Xp5uPkJsBzUMsb13cYmhNbqzoVJ9IGgpPCi oNz441aEQlx8URJ0KTtjHcfmeICbhllLKTGW7R00kaa+e9VS2NuN59bsJrudZ9qI7kIS aQDhHYI8zvyJZ2nQnTvbonwy2vV4w06oyJNiPOfo+7Yl1lZ3im3IJ/Qmh2C5KWJGBn4/ IFKjPi9PF3btlGXPVKFmVxTChRUECosr9OGbC8dlM5aeH8XRSCFf221PvEeqETCznRYt pSdg== 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=8QpD9QHWJ3ZAcUP/Du443zVv5hbNZSb8ty9lWaa/wGU=; b=RpWAu/Ufy7bKKgpwGadWgtMSyaE+2PA8WUYSl8/xaf2IDuuh79v0spKXmrPseEpq5r VkpEVPFiWWroTpCqEzoZRj011NMB99DREqkerQptol9/f3rFDDj2zF0F/2Uvipbon794 lXoHfNMwqACYOvFjkXG7aTNEvVi3rY7Noz0E3cMXwdVUYBb0+oS26E4d7f0+CeEYz2gM NVmajhHURcRYvwVL1kOPZcnP5KBAvKWeu8e00DyjHyEr7lQuzW1mZggJhK5+kXFaUkMB hqPGDI+rZxsQV9oc3L3qlzbSbahO9NhP6gYdTgZ4DRt5DIV5MmIoic2n5fonpQmBwE+7 ghOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=lXM2P4Wc; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=eJLuR+KU; 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 hd42-20020a17090796aa00b0073d6782db80si8747886ejc.599.2022.09.05.08.15.53; Mon, 05 Sep 2022 08:16:19 -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=lXM2P4Wc; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=eJLuR+KU; 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 S238267AbiIEO5p (ORCPT + 99 others); Mon, 5 Sep 2022 10:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236332AbiIEO5m (ORCPT ); Mon, 5 Sep 2022 10:57:42 -0400 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9228543EF for ; Mon, 5 Sep 2022 07:57:35 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 5A39E580222; Mon, 5 Sep 2022 10:57:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 05 Sep 2022 10:57:33 -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=1662389853; x=1662397053; bh=8QpD9QHWJ3 ZAcUP/Du443zVv5hbNZSb8ty9lWaa/wGU=; b=lXM2P4WcRuf2ASsUJZF7RCJkH6 Ylyv1uOXjUelst3OGCJ40g1RO9cicrzW0DqHtFx67qOZQepycOt7YODaS+Z3UCYU xiUPjSX+t7Za0NcWq3NcKWcgr7XHoRHPOkVrpkAaK9xqXD5Zgxq1foaua3jyn6b7 0eyaPuCXIONCQMeka19bc7gavaKm7QF1uedVc/PdcQ6jwHF+aLi3pHsE253hFhqy EyD7BJb5w0faD7aDun6hDK9IKeDBA+AvggdMB52XffsrDNVrH8RSVaZVjphTLlM5 i1Whk8kNZP7VMTZwHCjzwFUJ7wEm+xrlPVTUNsBErjzBZ9t3Wa0f+D3iSX7g== 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=1662389853; x=1662397053; bh=8QpD9QHWJ3ZAcUP/Du443zVv5hbN ZSb8ty9lWaa/wGU=; b=eJLuR+KUme8o4FRaICwZbGRxSjB3xBftb4Gb7nWDUB7U pv0r3P3krh6wz+XI/1n1JeQhUha+e0DnnieItY6gT2/1hAfhqeEAb5xQzjw7tOhm p20Evv6rotQicrPL8uugGearEiwZRoZv9qWmM8cgP2sQeK/Ik2l2DFFtBvXMXFTi 8C9putitPMtDKOfGpGhtY9FkL7TYMVXdIkMkk3vyoypSETZDe9I5Z/tRVd+GzrGs fHEvHNzFhOu3/x+JSU/blWXyLOlVWvOMeSeDxsTt1yBbjlJQK7DhPbHIZ3k9weXd KarSty3ixWH8DcV4u6stghnOewWvxAQ1JwGFbyWWsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeliedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeevuddthffgfeeiffejgfeghfeludegkedtgefgffejtdegtddvleduvdfh teehveenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 Sep 2022 10:57:32 -0400 (EDT) Date: Mon, 5 Sep 2022 16:57:29 +0200 From: Maxime Ripard To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Cc: Ben Skeggs , David Airlie , Chen-Yu Tsai , Thomas Zimmermann , Jani Nikula , Lyude Paul , Philipp Zabel , Maarten Lankhorst , Rodrigo Vivi , Tvrtko Ursulin , Jernej Skrabec , Samuel Holland , Karol Herbst , Emma Anholt , Daniel Vetter , Joonas Lahtinen , Dom Cobley , Hans de Goede , linux-arm-kernel@lists.infradead.org, Phil Elwell , intel-gfx@lists.freedesktop.org, Dave Stevenson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, linux-sunxi@lists.linux.dev, Mateusz Kwiatkowski , Geert Uytterhoeven Subject: Re: [PATCH v2 00/41] drm: Analog TV Improvements Message-ID: <20220905145729.ln675jko3aw6sgzs@houat> References: <20220728-rpi-analog-tv-properties-v2-0-459522d653a7@cerno.tech> <24e09a29-6d04-3b1e-63ce-cd3c31d350e2@tronnes.org> <020d44e6-884b-a817-8265-3461638cac71@tronnes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fq3utlr2k6iltjfz" Content-Disposition: inline In-Reply-To: <020d44e6-884b-a817-8265-3461638cac71@tronnes.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR 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 --fq3utlr2k6iltjfz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 02, 2022 at 01:28:16PM +0200, Noralf Tr=F8nnes wrote: >=20 >=20 > Den 01.09.2022 21.35, skrev Noralf Tr=F8nnes: > >=20 > >=20 > > I have finally found a workaround for my kernel hangs. > >=20 > > Dom had a look at my kernel and found that the VideoCore was fine, and > > he said this: > >=20 > >> That suggests cause of lockup was on arm side rather than VC side. > >> > >> But it's hard to diagnose further. Once you've had a peripheral not > >> respond, the AXI bus locks up and no further operations are possible. > >> Usual causes of this are required clocks being stopped or domains > >> disabled and then trying to access the hardware. > >> > >=20 > > So when I got this on my 64-bit build: > >=20 > > [ 166.702171] SError Interrupt on CPU1, code 0x00000000bf000002 -- SEr= ror > > [ 166.702187] CPU: 1 PID: 8 Comm: kworker/u8:0 Tainted: G W > > 5.19.0-rc6-00096-gba7973977976-dirty #1 > > [ 166.702200] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT) > > [ 166.702206] Workqueue: events_freezable_power_ thermal_zone_device_c= heck > > [ 166.702231] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS > > BTYPE=3D--) > > [ 166.702242] pc : regmap_mmio_read32le+0x10/0x28 > > [ 166.702261] lr : regmap_mmio_read+0x44/0x70 > > ... > > [ 166.702606] bcm2711_get_temp+0x58/0xb0 [bcm2711_thermal] > >=20 > > I wondered if that reg read was stalled due to a clock being stopped. > >=20 > > Lo and behold, disabling runtime pm and keeping the vec clock running > > all the time fixed it[1]. > >=20 > > I don't know what the problem is, but at least I can now test this patc= hset. > >=20 > > [1] https://gist.github.com/notro/23b984e7fa05cfbda2db50a421cac065 > >=20 >=20 > It turns out I didn't have to disable runtime pm: > https://gist.github.com/notro/0adcfcb12460b54e54458afe11dc8ea2 If the bcm2711_thermal IP needs that clock to be enabled, it should grab a reference itself, but it looks like even the device tree binding doesn't ask for one. Maxime --fq3utlr2k6iltjfz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYxYOWQAKCRDj7w1vZxhR xZXhAP94pqs+pj7lGSsjwlmP/UEuFHEg9U2CXHj8wPM/2qMMIgEAnt6LqzGRnWKu 1s/dJJP8pFIF3pOYAXRfYltS8OWIzAs= =ha9g -----END PGP SIGNATURE----- --fq3utlr2k6iltjfz--