Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1112701pxb; Fri, 6 Nov 2020 01:00:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR6l8mTjDpM1TSdl2RB6+iI8YqKF9nGqU19QwLoEqay0aARuDLOCh4/1evZguQhGMaELbp X-Received: by 2002:a17:906:d20a:: with SMTP id w10mr1023511ejz.3.1604653221375; Fri, 06 Nov 2020 01:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604653221; cv=none; d=google.com; s=arc-20160816; b=AFGvlNa5nbibmWn9R7wli4k007LmYjM9clbSullwtxKnkY5a8UHDWHr0DK5rxpiFpc G8yHIiVehijrH5hvYNylm0r0SXFoGYFA2ClZrQaQ1jtdoz01ij5eI2hFOF7dlMXOVcS4 cdBy92WayYA6+sry+QtEfQlOzE+83yEisWcZkPefhfPktgsYeA0M40hW8jyJRWHV1eO6 iBODVT8shGGu6p3kCKyFS0mSlCGTjcBdu33Mdl2cyf/JbogvKbBQdloVPxPWRZoX5wnR w83ev5+mXMj6y1K+koCCp7xJb3pmcOqNPXYakx9LgfH6TuqSHnSv3sdvPNLj259Vionw 3ntA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ht7beKQxIAbpTk+2MJgr9NYeCh/cHuggGDrae3UpH/0=; b=UXJOm7AMQ2QRcAqkkvcf2i5aGETK2pLVzR5d3imgucAUwJmZcdLzCiGoiKjdhLhwbN /gA2/98x3KBKg3ZoogYAIFvculmUah76form32QK/aMheFsBFIuKMu6duxT0ORO5egyR iDfb8EI11tAoIA/Ig3ZhfkqvHbQNRjuHTQ2wanvXn7oEVbA5/TLZbAr5vWT20dXfbrB+ PnbQyyICXEdFbP5k/Sy/RJf6TGQjxIkjUnAS23xVk8puZSXWsbujZSWfSIutRRTvzQa6 2uD8UvD3CCrGpppH5Xv9Fou8T9evflDid42KKkHckWID7wAY4d3TBbpEDwyWcQ1YmZSt zbUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YBGGYWCY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si521969edv.293.2020.11.06.00.59.58; Fri, 06 Nov 2020 01:00:21 -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; dkim=pass header.i=@linaro.org header.s=google header.b=YBGGYWCY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726586AbgKFI6Q (ORCPT + 99 others); Fri, 6 Nov 2020 03:58:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbgKFI6P (ORCPT ); Fri, 6 Nov 2020 03:58:15 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E51B8C0613CF for ; Fri, 6 Nov 2020 00:58:13 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id y7so692732pfq.11 for ; Fri, 06 Nov 2020 00:58:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ht7beKQxIAbpTk+2MJgr9NYeCh/cHuggGDrae3UpH/0=; b=YBGGYWCYtBr/7OVDKg9RemOUh0t1O1mOFQv6yrW1AhI0RpUC/Xr4s7t/ll71+nsh08 K6qdCN9M/Sb7lAfHvtwDpyrzJEpxXRwe/DQOlCw7eJ07GdQOf1az3u5dbNjY0FYz+QSk aJ8PmUIYSEnIf1106wDb93KkUrS5jzkW4vno0rCSNJ4ctXAJyov1SA06oK05eqJ1YKAm /1lmuzwYr8QrhpzeBmVeTNaBQPiLWWyetykD6XJq2YeMlzdT23q//evi86RtIZ1OzzPO v396v/RotM0Pi5CYnPvKb2JPiG/NfJD1z6EZwaipAfsyZaRXpoT1VATdZNJsJaLipeX9 mmkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ht7beKQxIAbpTk+2MJgr9NYeCh/cHuggGDrae3UpH/0=; b=otKGNKMNDzSrsZ9W2JYiBOlE5fkt1lZxzSvNMNMo/6rxcs1QfGlPvaNM01yyTirE1G +JCntr2IdyDxLK8+ArD9fYYwFlAavYP+S1n+IHs6aHucKXdXoYMTFb86/Bj0SM+S96Gm pZ4PkJ7DIuSv09vPAcaIg0snda0fTFeidGiixBkGLb+I1Y7Jh0Iwnwf5nzKnsfhvRMHZ BLmGaBq+Zh6VZzfBm+g1/2Y63NQ1gq4xkogwnLrQMv7qgHIY1k7KMh0vcMshxTbmDBOx DeQGex+s8rU7OOOIHmFdTam9LI9oD/qKsLoSHk+r8GyFULRPrzUQiQfmfH5ozq0XPDGT BNpw== X-Gm-Message-State: AOAM530XyKJWnlxqtDPP3FSWw33C9iIcm/E5jwMuk/QCGXrreHdQV34Q NwpEkRiAMm0YZDHHIEsOFtVS9w== X-Received: by 2002:a17:90b:4a10:: with SMTP id kk16mr1431011pjb.77.1604653093346; Fri, 06 Nov 2020 00:58:13 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id z21sm1221365pfa.158.2020.11.06.00.58.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2020 00:58:12 -0800 (PST) Date: Fri, 6 Nov 2020 14:28:10 +0530 From: Viresh Kumar To: "H. Nikolaus Schaller" 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 Subject: Re: [Letux-kernel] [REGRESSION] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER Message-ID: <20201106085810.ubo3cikbg33x76lt@vireshk-i7> References: <20201106001018.02200778@aktux> <20201106041441.uuz5vrtqeyn6ijdv@vireshk-i7> <8728D936-6583-407F-96CF-92AE95AAECDF@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8728D936-6583-407F-96CF-92AE95AAECDF@goldelico.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()") > 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 :) > 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). -- viresh