Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1127849pxb; Fri, 6 Nov 2020 01:29:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtOrWU/tPo5hUEuNHAtAOxO9DlvLfQbBjr7gsdd4H8nVbW+ZrV6SGB1lM9jteXj83f0y3P X-Received: by 2002:a17:906:c836:: with SMTP id dd22mr1101271ejb.552.1604654972847; Fri, 06 Nov 2020 01:29:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604654972; cv=none; d=google.com; s=arc-20160816; b=azg/ls5mqza4WR2NibCsaAPe2Egmdgrngk8kgxjXNZzh2dlaLdd6hJBgGP49PHjwlW bYdhoJs8xbL2WUjKxYfiruhzr2FTvOohejsaH0sSIS0sLE3DI661CJoU8THWG5n6C3fE urxC+lUhc/6SgnjqYT3Pmkbg/ZE37j2HaOFXEirnrZlsfW4wNPxk8MpfdgRCF1TnFm3Q l0mltO59moSwya/XIv7mOFaKm8m6Isg9Ck1IA1Vtxwa1QO9v5QRvdg3HVvF4aWZG+u9s 4nMIT0dQyTnzewgCFsr2blWGB/X1c9FpKLw6cj+ARWF1vfugSqJHk5F4riMy2M6dj1V3 h2Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:mime-version :subject; bh=LhHK9BsoyRaU7WQKrlebLqewi0VkswEN0LBTHLn8Pyg=; b=mt+PvbiMocd+VmoiqH8yykTtI6LjvIsW4+9gnQKEc7f8Qxd0KKt5JILSElswpKxlRN lvTTD7IdUPXUzHFoooeLihSG6NdvK4i6pBAn0m/dMSSHXRGBtQVeN62sjDlhiB+Is1ur IWJ6pP4x909R+5GnAvwSs/DiUmMBakqkBIkBHaD/l/XDCCLqaEg1s7PdKzhKsrrji4f0 NN84BKs/0A21p2/Qpzrjkq8JS0pT+6xXltTfbQErM09utGFeep+ASBdFoszbQxa4lx6q 13e0BpLyR4v7qGx7kQ34nPI3nbDcMbVh562ygEzA8N2vj7BjqXYoROyGoQvmbEmiOXSL z5JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z61si557472ede.133.2020.11.06.01.29.08; Fri, 06 Nov 2020 01:29:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbgKFJ1q convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 Nov 2020 04:27:46 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.80]:24311 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbgKFJ1p (ORCPT ); Fri, 6 Nov 2020 04:27:45 -0500 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDlSYXA4JMOs=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.3.3 DYNA|AUTH) with ESMTPSA id d04888wA69RR0PU (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Fri, 6 Nov 2020 10:27:27 +0100 (CET) Subject: Re: [Letux-kernel] [REGRESSION] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii From: "H. Nikolaus Schaller" In-Reply-To: <20201106085810.ubo3cikbg33x76lt@vireshk-i7> Date: Fri, 6 Nov 2020 10:27:26 +0100 Cc: Andreas Kemnade , vireshk@kernel.org, nm@ti.com, ulf.hansson@linaro.org, stephan@gerhold.net, khilman@kernel.org, sboyd@kernel.org, linux-pm@vger.kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Discussions about the Letux Kernel Content-Transfer-Encoding: 8BIT Message-Id: <1600E1F6-2819-4858-9843-B29264F4C2E6@goldelico.com> References: <20201106001018.02200778@aktux> <20201106041441.uuz5vrtqeyn6ijdv@vireshk-i7> <8728D936-6583-407F-96CF-92AE95AAECDF@goldelico.com> <20201106085810.ubo3cikbg33x76lt@vireshk-i7> To: Viresh Kumar X-Mailer: Apple Mail (2.3124) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Am 06.11.2020 um 09:58 schrieb Viresh Kumar : > > On 06-11-20, 09:44, H. Nikolaus Schaller wrote: >> >>> Am 06.11.2020 um 05:14 schrieb Viresh Kumar : >>> >>> On 06-11-20, 00:10, Andreas Kemnade wrote: >>>> Hi, >>>> >>>> On the GTA04 (DM3730, devicetree omap3-gta04*) I get my console flooded >>>> up with the following: >>>> [ 24.517211] cpu cpu0: multiple regulators are not supported >>>> [ 24.523040] cpufreq: __target_index: Failed to change cpu frequency: -22 >>>> [ 24.537231] ------------[ cut here ]------------ >>>> [ 24.542083] WARNING: CPU: 0 PID: 5 at drivers/opp/core.c:678 dev_pm_opp_set_rate+0x23c/0x494 >>>> [ 24.551086] Modules linked in: usb_f_ecm g_ether usb_f_rndis u_ether libcomposite configfs phy_twl4030_usb omap2430 musb_hdrc overlay >>>> [ 24.563842] CPU: 0 PID: 5 Comm: kworker/0:0 Tainted: G W 5.9.0-rc1-00008-g629238068eb9 #14 >>>> [ 24.573852] Hardware name: Generic OMAP36xx (Flattened Device Tree) >>>> [ 24.580413] Workqueue: events dbs_work_handler >>>> [ 24.585083] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) >>>> [ 24.593200] [] (show_stack) from [] (dump_stack+0x8c/0xac) >>>> [ 24.600769] [] (dump_stack) from [] (__warn+0xcc/0xe4) >>>> [ 24.608001] [] (__warn) from [] (warn_slowpath_fmt+0x74/0xa0) >>>> [ 24.615844] [] (warn_slowpath_fmt) from [] (dev_pm_opp_set_rate+0x23c/0x494) >>>> [ 24.625061] [] (dev_pm_opp_set_rate) from [] (set_target+0x2c/0x4c) >>>> [ 24.633453] [] (set_target) from [] (__cpufreq_driver_target+0x190/0x22c) >>>> [ 24.642395] [] (__cpufreq_driver_target) from [] (od_dbs_update+0xcc/0x158) >>>> [ 24.651489] [] (od_dbs_update) from [] (dbs_work_handler+0x2c/0x54) >>>> [ 24.659881] [] (dbs_work_handler) from [] (process_one_work+0x210/0x358) >>>> [ 24.668731] [] (process_one_work) from [] (worker_thread+0x22c/0x2d0) >>>> [ 24.677307] [] (worker_thread) from [] (kthread+0x140/0x14c) >>>> [ 24.685058] [] (kthread) from [] (ret_from_fork+0x14/0x2c) >>>> [ 24.692626] Exception stack(0xde4b7fb0 to 0xde4b7ff8) >>>> [ 24.697906] 7fa0: 00000000 00000000 00000000 00000000 >>>> [ 24.706481] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >>>> [ 24.715057] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 >>>> [ 24.722198] ---[ end trace 038b3f231fae6f81 ]--- >>>> >>>> endlessly after the $subject commit. Any hints? >>> >>> The fix for this has been in linux-next for a couple of days and it >>> made it to linus/master yesterday. >>> >>> 47efcbcb340ic opp: Fix early exit from dev_pm_opp_register_set_opp_helper() > > I think I may have accidentally pasted the wrong commit here. This is > the one which must have fixed it for you. > > commit 1f6620f87006 ("opp: Don't always remove static OPPs in _of_add_opp_table_v1()") Well, I did a cross-check and git revert 47efcbcb340 made the problem come back. Maybe both patches are good and the first one hides the missing second one. What I haven't checked is if all opps are available now. I just looked for the omap to boot. > > >> Seems to fix our problems on gta04 (OMAP3). >> Otherwise we would have found that v5.10-rc3 magically solves it :) > > I assume you just ran linus's/master, otherwise the patch I shared > earlier won't have fixed the issue :) Yes, we just test with v5.10-rc2 and wait for -rc3 to come in some days. > >> Interestingly it did not affect OMAP5. > > Based on the DT I saw for omap5, it does use OPPv1 and so it shouldn't > have worked as well. It may be worth checking why it didn't get > affected earlier. > > You can see the populated OPPs for a platform with this: > > ls /sys/kernel/debug/opp/cpu*/* > > You shall see some difference with and without this patch. Or it may > be the case that you are adding dynamic OPPs with dev_pm_opp_add() and > so even after removing the static ones, it worked (though I wasn't > able to find that in the code). Ah, now as you tell this I remember that the last test on omap5 did not have any cpufreq info output. Although it did boot to login:. So I did not see a common reason in these quite different symptoms. I am sure that with -rc3 omap3 & omap5 will be ok again and I'll take a special look at it when testing other things. BR and thanks, Nikolaus