Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1477475ybl; Tue, 3 Dec 2019 07:46:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzj9RMTzN6ODr2+tIXm0IuTB1+sGK0bgD6PSmJmGmL+GKLfMz5bVYvNLFYiMgXuwdiStfWA X-Received: by 2002:a9d:6084:: with SMTP id m4mr3843151otj.4.1575387986078; Tue, 03 Dec 2019 07:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575387986; cv=none; d=google.com; s=arc-20160816; b=VuFFBI0X3FkiaRzdu40FDupZYUGmCLQ0lNKt9V0fZ9TCl2+qtOPh51cvjzD/esSLZG qgyKL+kFUakfCP3+HOWi6yxPu0mWWC1CcDC9geg0HSvnYU3IMDb1JQ3Sp8MWTSn1ldBk LRHE9IlY48o6HlqQvm0cNdqTVOBacN+HrTsYoC5UAVWLIRhkyOIzziraTYezuRtnGZO6 QtHKR2H0gt6G5wdZ9YLKze1wmOzCgRqdf+oPsXlt98UVf14vsUrbW9MhERBkGS4uByJm 8/YL0h1dHtUcy6+E4hWI7dScVwiAE5hT0uYQXN4Yf7BRGYm2Bd4rARE/Yv5Af35HLvaG k3WQ== 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=Xc/nbvhvq1L8EWDoGJq1AMppQbs26/WhxilhogH5pQ4=; b=vcHNb265LgDjaKGDjcsxLL8vFjAj9rfRrx3ekVNlMwIZVmuHda4Qxh0ysizUMoz5lH O7/fVI+vjhiTnO6HRI55Mh4WN8khBGM7CDfS3e83NnmUoId/uDTAOxl1r6n803TptB19 cIVvzqA6OJbK1cl/Z3BV8+rzTLUd6YnkPxYrFnMZ5DQ7RG/+gRQ8T60ICqaHxM7KPDEg oKlM8NbBzcJcy6qnTuLwvAeOGwZGXeOxjnLJQcNOvyjfkte0HqZo4CL3WTeuxTzNyZcC +2+p1CW3/PTu504kWyLJTFo95ngUIt9zwPUSc7/W5D1VQz35ndW8whBpDwxtaGapJ/CN /YHg== 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 d25si1333126otc.157.2019.12.03.07.46.14; Tue, 03 Dec 2019 07:46:26 -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 S1726928AbfLCPow (ORCPT + 99 others); Tue, 3 Dec 2019 10:44:52 -0500 Received: from muru.com ([72.249.23.125]:44012 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfLCPow (ORCPT ); Tue, 3 Dec 2019 10:44:52 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E047F804F; Tue, 3 Dec 2019 15:45:28 +0000 (UTC) Date: Tue, 3 Dec 2019 07:44:47 -0800 From: Tony Lindgren To: "H. Nikolaus Schaller" Cc: Nishanth Menon , Discussions about the Letux Kernel , Linux Kernel Mailing List , Tero Kristo , =?utf-8?B?QW5kcsOp?= Roth , Andreas Kemnade , Linux-OMAP , Adam Ford , arm-soc Subject: Re: [PATCH] ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage() Message-ID: <20191203154447.GC35479@atomide.com> References: <20190924233222.52757-1-tony@atomide.com> <8FFD44DB-73F8-4807-91E1-C97DA8F781BA@goldelico.com> <20191202213929.GB35479@atomide.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 12:31]: > Ok, dev_pm_opp_find_freq_ceil() is doing what it should do and it > returns the first OPP higher or equal than the frequency passed in. > > The real reason for the warning is that the same OPP table is used > for vdd_mpu_iva and vdd_core and it appears as if "core" (l3_ick) > runs at 200 MHz which does not correspond to a valid OPP. OK > So to silcence the warning it suffices to remove > > omap2_set_init_voltage("core", "l3_ick", "l3_main"); > > The question is now what l3_ick has to do with the OPPs at all > and how it should interwork with OPPs and cpufreq. So what changed then for iva in your configuration then? At least I'm getting errors for both for 34xx and dm3730 with Linux next and reverted commit cf395f7ddb9e ("ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage()"): omap2_set_init_voltage: unable to find boot up OPP for vdd_mpu_iva omap2_set_init_voltage: unable to set vdd_mpu_iva omap2_set_init_voltage: unable to find boot up OPP for vdd_core omap2_set_init_voltage: unable to set vdd_core Then for fixing this code, seems like this can all happen from a regular device driver init based on the dts data.. We've had PM init completely ignore these errors already for years so whatever dependency there might be seems non-critical :) > Or does all this mean we may need a second OPP fable for vdd_core > and 200 MHz? But what would it be good for? I have not seen any > reference for "core-OPPs" in the TRM. OK yeah sounds like all the domains need an opp table. Also, I recall some SoCs having a dependency between having to run DSP at a lower rate for higher MPU rates, not sure if omap3 has such dependencies though. Regards, Tony