From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage() Date: Fri, 6 Dec 2019 10:20:40 -0800 Message-ID: <20191206182040.GH35479@atomide.com> References: <20190924233222.52757-1-tony@atomide.com> <8FFD44DB-73F8-4807-91E1-C97DA8F781BA@goldelico.com> <20191202213929.GB35479@atomide.com> <20191203154447.GC35479@atomide.com> <5F430C0D-7F25-4680-87B9-2D65A08A9F83@goldelico.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "H. Nikolaus Schaller" Cc: Nishanth Menon , Tero Kristo , Linux Kernel Mailing List , =?utf-8?B?QW5kcsOp?= Roth , Linux-OMAP , Adam Ford , arm-soc , Discussions about the Letux Kernel List-Id: linux-omap@vger.kernel.org * H. Nikolaus Schaller [191203 16:55]: > > What we could do is augment the printk (or dev_err) to tell > > in these warnings what it is looking for... > > > > opp = dev_pm_opp_find_freq_ceil(dev, &freq); > > if (IS_ERR(opp)) { > > pr_err("%s: unable to find boot up OPP for vdd_%s freq %ulHz\n", > > __func__, vdd_name, freq); > > goto exit; > > } > > Easier and always prints info: > > freq = clk_get_rate(clk); > clk_put(clk); > > pr_info("%s: vdd=%s clk=%s %luHz oh=%s\n", __func__, vdd_name, clk_name, freq, oh_name); > > opp = dev_pm_opp_find_freq_ceil(dev, &freq); > > I get this: > > [ 2.908142] omap2_set_init_voltage: vdd=mpu_iva clk=dpll1_ck 1000000000Hz oh=mpu > [ 2.930816] omap2_set_init_voltage: vdd=core clk=l3_ick 200000000Hz oh=l3_main > [ 2.946228] omap2_set_init_voltage: unable to find boot up OPP for vdd_core > [ 2.953460] omap2_set_init_voltage: unable to set vdd_core OK yeah that's more descriptive. > Which means that cpufreq already has increased dpll1_ck to 1 GHz > (I have removed the turbo-mode tags so that it already boots at > full speed) and l3_ick runs at initial 200 MHz. OK. I wonder where this initial code should live though.. Regards, Tony