From mboxrd@z Thu Jan 1 00:00:00 1970 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 8FA85C38145 for ; Wed, 7 Sep 2022 10:00:35 +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-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=E6CWGEm2VRcEtzlWsV4CDSZyYZaElrmBoW8cu8A+0bE=; b=0ZAM/P8nt/BdCVqYkRihzwpSg7 tE1/muI98eU6rF111WurBooNN8THQp5DMnSRZuP0AsMYqS7i2QfWqqqIVfm2ER6u/PJqbyQOSivc0 8/vBfqRrEsg0OXmSpNtrF+bEqlfjHzkqtKLjP2JpYFABhxaUIz07PATF/QZGgdWbQpx2GcvdGmOwE unGhULVQG33j0Z9bH13QXeFOV8CRE2MPEafGmN/W/YGvto46Vsva7bx2dyRDn3vZV3GDpLd6iQHyK 0Nx1f34CoIXH8gDW8iLaGfrZLdnlSte3m/eDksbq1mv1N2xwokYjwrMwe+BUn3IG7awQotfg48Wh9 098nZTog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVrpw-0058b6-LO; Wed, 07 Sep 2022 09:59:13 +0000 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVrpp-0058UF-4Z for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2022 09:59:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 5EA2F2B059D4; Wed, 7 Sep 2022 05:58:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 07 Sep 2022 05:58:56 -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=fm2; t=1662544732; x=1662551932; bh=LDbKEsPtEf o0fSrPBtti05cmeMd5jnUlKEOcotKaSo4=; b=EXe+ynfe6vqHN43swOtykOC2Ct uBkougsWyb9Gz9Yz4t6xtOXI72Iy/O5yYrXo+DBTDGNXxul0ebfkTVZMiYl+Kt/C RtpN5Lozu8dtEN4O8yx0EK4S4KNFAsjLumNAC2ObZ/IM6gHiaCKGMIb0sRaOh8de MnRVw8qAcAY2oGvUQSZ4IMLVehnSaNQNGItvETIULd/aEK7fWFBQPms2DsbU0XQp ErTC1E2CGjFAV0Fj4vwOnwwjw7Whw3zyd8lgoBcRK+x6tjCXEvMZ7Ng2+Oet3ALh qzKOWW02KFjsDosfRoB/u2/Ux7V+Ho/gemKefjzU75NX7Fk8asA5RNOcVEUw== 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= fm2; t=1662544732; x=1662551932; bh=LDbKEsPtEfo0fSrPBtti05cmeMd5 jnUlKEOcotKaSo4=; b=W7FoYKQ4vh4JAjO+VVj2d/KTm16IiJZNZdq9LXTgqgtQ t9Rbizu4VEj/S4fOxiSbz6+Z2tpIQd8wC8qQq5TWtVj28LKmgl3ifAhYru/r6eci z1M7ATIVb3UlgdYN8Kwmxq6QbLuzIHQrXBf+5yxpv33Yg4JEldWISKcPYKbgrDUQ 3WZuWBIT4XwBMJzeX0GnJd4QVcXPmJsMoxsr1NiQl2SyZORrtCJAIFAYjhomNmJ5 JkP8dSJs/6WFRM0y/aBAgzyCSKm/0F0fJYNGaMB4ie6rQ1PjPSLe0aFuITGBmcyD 1SCGLo3ZAqJ88e0nvhG0Sd2uczq8k08Dj/jrWCvoZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedttddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeevuddthffgfeeiffejgfeghfeludegkedtgefgffejtdegtddvleduvdfh teehveenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Sep 2022 05:58:51 -0400 (EDT) Date: Wed, 7 Sep 2022 11:58:49 +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: <20220907095849.5v72atwuedl5iiva@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> <20220905145729.ln675jko3aw6sgzs@houat> <74c10e51-4034-a284-1a26-b7ba7fe45fbe@tronnes.org> MIME-Version: 1.0 In-Reply-To: <74c10e51-4034-a284-1a26-b7ba7fe45fbe@tronnes.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_025906_439530_B46DC66F X-CRM114-Status: GOOD ( 27.01 ) 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: , Content-Type: multipart/mixed; boundary="===============5521813648027814335==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5521813648027814335== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g7pwsshhuvzfcxhg" Content-Disposition: inline --g7pwsshhuvzfcxhg Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 05, 2022 at 05:17:18PM +0200, Noralf Tr=F8nnes wrote: > Den 05.09.2022 16.57, skrev Maxime Ripard: > > On Fri, Sep 02, 2022 at 01:28:16PM +0200, Noralf Tr=F8nnes wrote: > >> > >> > >> Den 01.09.2022 21.35, skrev Noralf Tr=F8nnes: > >>> > >>> > >>> I have finally found a workaround for my kernel hangs. > >>> > >>> Dom had a look at my kernel and found that the VideoCore was fine, and > >>> he said this: > >>> > >>>> 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. > >>>> > >>> > >>> So when I got this on my 64-bit build: > >>> > >>> [ 166.702171] SError Interrupt on CPU1, code 0x00000000bf000002 -- S= Error > >>> [ 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= _check > >>> [ 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] > >>> > >>> I wondered if that reg read was stalled due to a clock being stopped. > >>> > >>> Lo and behold, disabling runtime pm and keeping the vec clock running > >>> all the time fixed it[1]. > >>> > >>> I don't know what the problem is, but at least I can now test this pa= tchset. > >>> > >>> [1] https://gist.github.com/notro/23b984e7fa05cfbda2db50a421cac065 > >>> > >> > >> It turns out I didn't have to disable runtime pm: > >> https://gist.github.com/notro/0adcfcb12460b54e54458afe11dc8ea2 > >=20 > > 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. > >=20 >=20 > The first thing I tried was to unload the bcm2711_thermal module before > running modeset and it still hung, so I don't think that's the problem. Ack. Just to confirm, is this happening on mainline or on the downstream tr= ee? Maxime --g7pwsshhuvzfcxhg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYxhrWQAKCRDj7w1vZxhR xWOGAQDamcTrLkeNib2/AJ9OVJ5kvT4+VK4EmtvGcxdtuZTUhQD/SHMi1WIJ+4PA xhpQO1fhUdfbEHo8tJ554frAHeuSGgA= =e7c7 -----END PGP SIGNATURE----- --g7pwsshhuvzfcxhg-- --===============5521813648027814335== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5521813648027814335==--