Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5557871rwb; Wed, 7 Sep 2022 04:53:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR7oOzyU0x5papMvhWPF2pVnPdkn610Y5J1pw3WwfBxptn85BeMGF49kOQFJcCqzbf9lP8XX X-Received: by 2002:a17:902:b60a:b0:176:a84a:78ae with SMTP id b10-20020a170902b60a00b00176a84a78aemr3461805pls.164.1662551615354; Wed, 07 Sep 2022 04:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662551615; cv=none; d=google.com; s=arc-20160816; b=E1VV44Zs051oyh87h6SUBM2fMARhoUbp3PMpYsd/X9sajhBLkba38ckndBlQqLE/6j nm763yzXYZnXcGy6sh/p/p/fLSnFxj9wp+SWnY833BM24iYc+GbLnpK/rlZ7ykGrYKno 8RcFs/0QZ8wXFp+6bdsy+BhCKG6siWV7oxMCteOMNgP+qf4tXp2xbd3cD/tuAecI1DGY +klRRjZw97/HZsD0AjskyavJViRO9DOvsc+Ax40zHIKRQCjBsbbuJi1fasccFZ2LyoXm te4pN7W+a/3duORsOMKGKi2fo/UBK1SSUmM8sk1tJ4cCRSQVDMw8GHnibngukrEArEJW OHUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=hG5gYTQ1yHuklbSewlVS/Yj0GgJcWUkDdCHD5c8rIfY=; b=TutvLkV/yQjo+OaelG2Hup6XxxWCnZl/Q4gL4N7x30z3EJDKVBDpNoqE/5Z2rsFyR2 ZLmb2O5j3Hd9yhHhSINfhr4gLHzuRwHUVKgaj1cRlZCeKTuvuIZJWrKAY+X0IrHsO1aZ V+Rrr3t+toIqNBZsNfbL7xl0BB0aK7c1EM3BRMNb7bMNDVysQKZDgRa73KgwXXSMoBkf e88SiVhQGdKYNheZSDsiqrVBtbf4QeB1bNN+NSO2JS+43U1EeZgrgwxD5NE4y2KVI/Oe EWvde02gxO579Yzjhhfac4RIhPL7Zp8UrTwxh9XvQVftn5OAp/vV/3rz/E5kn7Q0T6hW WlXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k185-20020a6284c2000000b0053e2b615693si4423211pfd.106.2022.09.07.04.53.24; Wed, 07 Sep 2022 04:53:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbiIGKhF (ORCPT + 99 others); Wed, 7 Sep 2022 06:37:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiIGKhB (ORCPT ); Wed, 7 Sep 2022 06:37:01 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A768B75FCF for ; Wed, 7 Sep 2022 03:36:57 -0700 (PDT) Received: from [192.168.1.138] ([37.4.248.23]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MBlgy-1odXvW2p1o-00CEBe; Wed, 07 Sep 2022 12:36:06 +0200 Message-ID: <965de5c0-bc6a-7210-c946-b916ae2219fc@i2se.com> Date: Wed, 7 Sep 2022 12:36:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 00/41] drm: Analog TV Improvements Content-Language: en-US To: Maxime Ripard , =?UTF-8?Q?Noralf_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 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> From: Stefan Wahren In-Reply-To: <20220905145729.ln675jko3aw6sgzs@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:raTGFr7ptnGZr2h9Jh6nKg1Z14xx0x8riNatR19Mgp3HoRXLPdX FN+/gOxN9VXjXLIhXVkBpgujUpNMYSy+G4CQp211BQEbL4066eK8AZ57x7+Ryp53nqef83R XG19WvSzjiVdclyB4a503Xj8phHhNIsA5aMzvA3iiMzzCLqNQD5cu7Y+WiuUERVXn8PvvlY lI8tCye4pEPGe1CN/8vMQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:E39iEAiAV7Y=:B7mNG1qnV2phLThzbzU+Hn NQxcGOSbNAanP4JFBiG/LtUzvemWljyfBLqG/pDWW9VEGnlD2Z6Byz8MlVpn2coz7SlBEBqWJ vYLcC4JbBOShkgf2NTR6WBg3qXiJudSE3MMRePAsAyo3vR4RBUgT3V2jInNShmHq+6uqaK69s m/gUWat40aKVNI+zKOvfA6c5LkkTTK1rfzGu5+fVN+lr92s89ql2BYpLtWJAFJPu0aREY3Jcl o6Qv31yCfynAH8ybEjCwB+ZPkAoqDOhtPPyRvgC6QAeDVMxIHxmG71bvc90BM3FByUgYYO9d3 DwpaMfHXZLeFE+eKmnZQ6yl6jm6TdtmvqVxdoTAw5KXtyTzAec4gDPzb5VGSRvxg8OvfJ+TWQ qxwy/Q3YLXNDsgCT587OiJRU5ufu4eZnh2hVnsYjSqTA2SyX+IlHS0+Xg7M1XCSFMY1G9Wvgv ja1dUFtjah7IHTtojE9CJ6b2MLv6JN5bQmECuHgOxvcCl5dciehUuQyvYwu+pt7XAh/vTC1Ik WqxG0IHgf8kahngmdt77rJa5MOJ4JkdZcoxCxFbPiRjzPwETizl93zOicz9U9+Cqj4hhjvn32 8KvRyd0oJFVcoCdGvjL/FQdH6XKNhVYcZsmoimp7izfN4vkA7RPDiDpQ2bSnPPz2SdN0cQkRw vNOR/WK2hni3ZtIl3NvfiyfjotquCr+LcNl5UyBLbOoRzo1vlsiH5NIPkUr+lEu1c/gMnSGeX l/r/PCOvk6YRCsCJU026ilkZ7/hpuQ0eNBqGeCE6VHiykFWFxcjSIom+HMy3l++Meqq6kRIXg HDI7jT8dag3sJoNTX9ctgnZDvvoww== X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 Hi Maxime, Am 05.09.22 um 16:57 schrieb Maxime Ripard: > On Fri, Sep 02, 2022 at 01:28:16PM +0200, Noralf Trønnes wrote: >> >> Den 01.09.2022 21.35, skrev Noralf Trønnes: >>> >>> 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 -- SError >>> [ 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=--) >>> [ 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 patchset. >>> >>> [1] https://gist.github.com/notro/23b984e7fa05cfbda2db50a421cac065 >>> >> 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. The missing clock in the device tree binding is expected, because despite of the code there is not much information about the BCM2711 clock tree. But i'm skeptical that the AVS IP actually needs the VEC clock, i think it's more likely that the VEC clock parent is changed and that cause this issue. I could take care of the bcm2711 binding & driver if i know which clock is really necessary. > > Maxime > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel