Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1048486ybl; Fri, 6 Dec 2019 10:23:02 -0800 (PST) X-Google-Smtp-Source: APXvYqy7krZbMrv3l/VWrsnQhOr5yk0I0GS+o4bwn0AfJ8XMaN3I5nNcpvJ0XRwZkQsE8xV6w/fV X-Received: by 2002:a54:451a:: with SMTP id l26mr13760677oil.69.1575656582267; Fri, 06 Dec 2019 10:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575656582; cv=none; d=google.com; s=arc-20160816; b=Z6qNy2IB0BGI52h4MqmSDwqr/esfiwdJKcC2mCTsYVydMmSKKDji3FGc6SoBIi042j fcFDoNteHKNzDDFoH8oN2Am2CoJcryJKAmfr16gUJVusiYxgmGbOnSVnGkU/Oxn3tWHe 80T4FPWyf+/9km1hcV620ZTOTenKq88H4KdglM6xarUP3wIzMitvVThPefstoZ6Z88qg XSWkOTpOEenuvdh+drvNHO2Eg2MegcmseZ6MYVKxVI5HGNwFZyHPhhNYs9ot/3vzez2B UN4Bp1s3XwvQu+tmKxNyU54EWIZZfjVxsrfjsFO4VWR+C6w/xLdryChahx+ZqFeXA+dM 9RjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DnmQUI+UlL39sKeHGWPLNA1dKlJB+Yho4kCBGBW+kGU=; b=IELLas4h1Gfhp1zAdjlAvAASFksxQaDxBcB1UcughdvF6bMiF//Uxt8P4svTPM6AIP AKdPweDc8xA5S8O67x7FDsLbVu+W4s9tL5mQ/F64X/MPV5u+EBE4UJBPu/Mk9enIX0st +2xicAE9wLNdP3NEykd4E5uQTeIACkFkCjhCE99kmrZdugaOqL96iYr1JnYxtzKuPkL1 2OE3tOTj4ybRE5Gs1PoZ+JdQWmRnkuekIfBIPDDcq9NmT5k7ojFRVB5H5BG5fYZws3Vx VoPYwOKT3wsAcQguIuAN51ORM6+gnBOhkqJ9crImBV4D5xND8Lbd4iJB2yjkNx0CuaJt gEQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y198si7729714oia.163.2019.12.06.10.22.49; Fri, 06 Dec 2019 10:23:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726427AbfLFSUo (ORCPT + 99 others); Fri, 6 Dec 2019 13:20:44 -0500 Received: from muru.com ([72.249.23.125]:44270 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfLFSUo (ORCPT ); Fri, 6 Dec 2019 13:20:44 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 277C08047; Fri, 6 Dec 2019 18:21:22 +0000 (UTC) Date: Fri, 6 Dec 2019 10:20:40 -0800 From: Tony Lindgren 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 Subject: Re: [PATCH] ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage() 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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