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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1285EC6379F for ; Fri, 3 Feb 2023 21:12:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232774AbjBCVMy (ORCPT ); Fri, 3 Feb 2023 16:12:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232365AbjBCVMv (ORCPT ); Fri, 3 Feb 2023 16:12:51 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B1B51728 for ; Fri, 3 Feb 2023 13:12:50 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id n13so4803055wmr.4 for ; Fri, 03 Feb 2023 13:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=G37x/Hi3mUa++UD5bFJfX5WwZsig/fMJR1p/pLXMk50=; b=uVwWM/AMdXoS+B9uE3cp49dAROtUCwaTQv4BE1JSK7oyJEjfp4VJ3BdxKwTB+7bby8 yeZ+RuVigcMHj79cMPzZGEjf/p1MOjUXTIAD/hnllc9prnMhU6uab7ePqGCJZh1xil41 21CUl3iujSJpFr4vVs0OPOBfHfNu7DKd3Zm/b7oRn+wbk8OCnSA7cfr5F6FaE0mA8OsE 9VSeoPLANg5lQzAazXMbXVLcKIEnAn0cha1G6R6pO7CH2N/XChZgOSpA5fh6C/AkzLBD v5IxhEhRrOb0FutnBrkgma91wEQ4X62bBzzOoEk8LlaSXrjrNwIB9VCIAVLkA4k838os kYWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G37x/Hi3mUa++UD5bFJfX5WwZsig/fMJR1p/pLXMk50=; b=wqmFHsIFl7sNoD7lmzu4qy2DYpbw0xmv1OuQSuc6GUM4Uo5iPNc9MB/VC7Bdca19gV BmwiANZl6Jftz2PmKrUHw1eagS0YwVzFQoubMt3K7sa+wzfnYskSxPzCATS2GMtTA75E WsCei7DJwrz9RdDOqsyfnhA58+rmqboa+t9BW7mmN734b4eKzdSg85ujkn3BLOVD8u4h BuDPCtoRifiUIch72HsOJzDZTTz3AjDUTX8TVPVrmy8gZfg+BAPBcHrw3bJ6jy83mnxh A7JjrW7cAhOW2mksV1m9VTb18mLuUfcltKlgB83a4+09f4MYKfSJVnh+/YbC8iwx7vAu pYww== X-Gm-Message-State: AO0yUKW0ohpo8iEzbnRMckVkZQhIzjtyWx23mxjrxOq3/igrwOG5GOXY 9kpVXMKtCO7yhWkkMh7amMThRg== X-Google-Smtp-Source: AK7set9MYytH/zcC6sWFQBbf4kFuYn49tyUOuaemIo6IIQ3yfZ+C8wmYq0QbsUBap2YBOZf+IZbCpQ== X-Received: by 2002:a05:600c:3556:b0:3db:331b:bd57 with SMTP id i22-20020a05600c355600b003db331bbd57mr11301033wmq.23.1675458769063; Fri, 03 Feb 2023 13:12:49 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id f1-20020a1cc901000000b003df14531724sm8142346wmb.21.2023.02.03.13.12.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Feb 2023 13:12:48 -0800 (PST) Message-ID: <697aa7b5-9c9b-eb4f-8111-c9a396d9d191@linaro.org> Date: Fri, 3 Feb 2023 22:12:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 5/9] ARM: dts: exynos: move exynos-bus nodes out of soc in Exynos4412 Content-Language: en-US From: Krzysztof Kozlowski To: Marek Szyprowski , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Kukjin Kim , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: replicant@osuosl.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, =?UTF-8?Q?Martin_J=c3=bccker?= , Henrik Grimler , Chanwoo Choi References: <20230125094513.155063-1-krzysztof.kozlowski@linaro.org> <20230125094513.155063-5-krzysztof.kozlowski@linaro.org> <29841f64-360b-1426-e1fd-dd4c64ee5455@linaro.org> <111f7364-0d7b-b4c5-721f-69c00d4619e2@samsung.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2023 21:34, Krzysztof Kozlowski wrote: > On 03/02/2023 12:51, Marek Szyprowski wrote: >> On 03.02.2023 12:46, Krzysztof Kozlowski wrote: >>> On 03/02/2023 12:45, Marek Szyprowski wrote: >>>> On 29.01.2023 11:42, Krzysztof Kozlowski wrote: >>>>> On 25/01/2023 10:45, Krzysztof Kozlowski wrote: >>>>>> The soc node is supposed to have only device nodes with MMIO addresses, >>>>>> as reported by dtc W=1: >>>>>> >>>>>> exynos4412.dtsi:407.20-413.5: >>>>>> Warning (simple_bus_reg): /soc/bus-acp: missing or empty reg/ranges property >>>>>> >>>>>> and dtbs_check: >>>>>> >>>>>> exynos4412-i9300.dtb: soc: bus-acp: >>>>>> {'compatible': ['samsung,exynos-bus'], 'clocks': [[7, 456]], 'clock-names': ['bus'], 'operating-points-v2': [[132]], 'status': ['okay'], 'devfreq': [[117]]} should not be valid under {'type': 'object'} >>>>>> >>>>>> Move the bus nodes and their OPP tables out of SoC to fix this. >>>>>> Re-order them alphabetically while moving and put some of the OPP tables >>>>>> in device nodes (if they are not shared). >>>>>> >>>>> Applied. >>>> I don't have a good news. It looks that this change is responsible for >>>> breaking boards that were rock-stable so far, like Odroid U3. I didn't >>>> manage to analyze what exactly causes the issue, but it looks that the >>>> exynos-bus devfreq driver somehow depends on the order of the nodes: >>>> >>>> (before) >>>> >>>> # dmesg | grep exynos-bus >>>> [    6.415266] exynos-bus: new bus device registered: soc:bus-dmc >>>> (100000 KHz ~ 400000 KHz) >>>> [    6.422717] exynos-bus: new bus device registered: soc:bus-acp >>>> (100000 KHz ~ 267000 KHz) >>>> [    6.454323] exynos-bus: new bus device registered: soc:bus-c2c >>>> (100000 KHz ~ 400000 KHz) >>>> [    6.489944] exynos-bus: new bus device registered: soc:bus-leftbus >>>> (100000 KHz ~ 200000 KHz) >>>> [    6.493990] exynos-bus: new bus device registered: soc:bus-rightbus >>>> (100000 KHz ~ 200000 KHz) >>>> [    6.494612] exynos-bus: new bus device registered: soc:bus-display >>>> (160000 KHz ~ 200000 KHz) >>>> [    6.494932] exynos-bus: new bus device registered: soc:bus-fsys >>>> (100000 KHz ~ 134000 KHz) >>>> [    6.495246] exynos-bus: new bus device registered: soc:bus-peri ( >>>> 50000 KHz ~ 100000 KHz) >>>> [    6.495577] exynos-bus: new bus device registered: soc:bus-mfc >>>> (100000 KHz ~ 200000 KHz) >>>> >>>> (after) >>>> >>>> # dmesg | grep exynos-bus >>>> >>>> [    6.082032] exynos-bus: new bus device registered: bus-dmc (100000 >>>> KHz ~ 400000 KHz) >>>> [    6.122726] exynos-bus: new bus device registered: bus-leftbus >>>> (100000 KHz ~ 200000 KHz) >>>> [    6.146705] exynos-bus: new bus device registered: bus-mfc (100000 >>>> KHz ~ 200000 KHz) >>>> [    6.181632] exynos-bus: new bus device registered: bus-peri ( 50000 >>>> KHz ~ 100000 KHz) >>>> [    6.204770] exynos-bus: new bus device registered: bus-rightbus >>>> (100000 KHz ~ 200000 KHz) >>>> [    6.211087] exynos-bus: new bus device registered: bus-acp (100000 >>>> KHz ~ 267000 KHz) >>>> [    6.216936] exynos-bus: new bus device registered: bus-c2c (100000 >>>> KHz ~ 400000 KHz) >>>> [    6.225748] exynos-bus: new bus device registered: bus-display >>>> (160000 KHz ~ 200000 KHz) >>>> [    6.242978] exynos-bus: new bus device registered: bus-fsys (100000 >>>> KHz ~ 134000 KHz) >>>> >>>> This is definitely a driver bug, but so far it worked fine, so this is a >>>> regression that need to be addressed somehow... >>> >>> Thanks for checking, but what is exactly the bug? The devices registered >>> - just with different name. >> >> The bug is that the board fails to boot from time to time, freezing >> after registering PPMU counters... > > My U3 with and without this patch, reports several warnings: > iommu_group_do_set_platform_dma() > exynos_iommu_domain_free() > clk_core_enable() > > and finally: > rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: > > and keeps stalling. > > At least on next-20230203. Except all these (which anyway make board > unbootable) look fine around PMU and exynos-bus. I also booted few times my next/dt branch (with this patch) and no problems. How reproducible is the issue you experience? Best regards, Krzysztof