Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2372317ybl; Thu, 19 Dec 2019 12:25:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwlkB+Bml+uMX9RgAGpOreaoKdW8MXCsO69w6T2L8pswhEvdOpOWWsUXxSDMrEdS6vvm+s/ X-Received: by 2002:a9d:6f11:: with SMTP id n17mr10619181otq.126.1576787128985; Thu, 19 Dec 2019 12:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576787128; cv=none; d=google.com; s=arc-20160816; b=YB4fZrPD9Sqik2uhwHIDFcYcpxboxFHwgHs0fBq/xLW+gIErIlwJJALJVjjwhf8ZIZ Am6eER+H+vwAUR6tpGjcJmnrndEMqjgIrYxui7GNowdBZYOKF5/SEg/SkDjwnanHFw6t 4gKMTBFLNRCGNW/lHcdZ1Yr3U0czRTVNa9iJ+cXuIiuMOl3fwXuTVHYeiZI3w1Blv+pg Ux3WEqG1sSag62rM0Ni0BnYwrBlHcvvCcXXM892dPf/Cov8X9Xb1Z0FE/OyM5HZjv5Yy /kjRlcpeHafiTdDpsGeoZ2aD2c7MYTGwsUevJUNBVuHQdOyPPFeyucY4kYqXiTVVol3i cPcA== 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=I2+p8NlKry3xnqQ7h3e1FsCdXuJneE8ptKtuMElAYWk=; b=FbvE3Sga00sfB2iyXzX2AyNSWxvg1i+CilVNr0UPClXIprqZUoXMHXacqQvZyO4kiQ pAQz8H+VYpMyBGEYpN4NgOrRDq/5AkEGjeW8jPGfoLuRT/e9n3VSx7PYfAxvEG31CEQ+ 0Mc6jCZSToit+G6yNO7bwOZk4nAzmtfq+neiXKtqEU4oTznOCZIWQd5Orb9TPXKFQ/0K Bb6qNhDo+JCXUFAAKI2gIypfFuX4NeUoMMvTjoiAFyc+DAVJpTih9uiaX+/nvdAfWiXl Y9Qkva+r946bMey75gFmJgnEV6CXWZb8oBA9PYpHYZb+s3oBVu8d/RpkjvsTmHFQIKm/ EnBw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si3633683ota.266.2019.12.19.12.25.17; Thu, 19 Dec 2019 12:25:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbfLSUYX (ORCPT + 99 others); Thu, 19 Dec 2019 15:24:23 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40941 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727252AbfLSUYX (ORCPT ); Thu, 19 Dec 2019 15:24:23 -0500 Received: by mail-ed1-f68.google.com with SMTP id b8so6143512edx.7; Thu, 19 Dec 2019 12:24:21 -0800 (PST) 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=I2+p8NlKry3xnqQ7h3e1FsCdXuJneE8ptKtuMElAYWk=; b=nMXMu1TGK0qXBcv/PnXfsxJUCvsvf38JRy20k3u6k7oGH1MgF78IBpe/qGao9srwGX vM1DMFPpmLWWa7J81mRopHWtQ7UwY6MxVNd+md/VpgXN35IX/LBKQvBJX+veWH5FDQL4 5d4tfGHPXzWWtw5pqIdzIIpIgv9/o88t7ABgiJFKR68MASCb9xqKLrGyyp1TcGi0DpYa DEawLULNekK/07sW2NlnDnLTPKFlac3pzXs167GipcO0wZjvqNMfItmS1pqqCeq4dTAr 3T3NEDq8kc/P4zUOlc1LPuJ1eDxsnKKgw8QUil+h3pTq/vq6e0cR9OjgM8QixgGcwMWX soBw== X-Gm-Message-State: APjAAAXuKSzDVi319jT1oW6YjhfKB09UWAzMqd6vOZnBLSUze0VGiJcS UdAaYo5gXIwR20e/F/kfp9yQbro+ X-Received: by 2002:a17:906:ce2e:: with SMTP id sd14mr11879029ejb.190.1576787060915; Thu, 19 Dec 2019 12:24:20 -0800 (PST) Received: from kozik-lap ([194.230.155.234]) by smtp.googlemail.com with ESMTPSA id v2sm731841ejj.44.2019.12.19.12.24.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Dec 2019 12:24:19 -0800 (PST) Date: Thu, 19 Dec 2019 21:24:17 +0100 From: Krzysztof Kozlowski To: Marek Szyprowski Cc: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Bartlomiej Zolnierkiewicz , Kamil Konieczny , Chanwoo Choi Subject: Re: [PATCH v2 2/2] ARM: dts: exynos: Adjust bus related OPPs to the values correct for Odroids Message-ID: <20191219202417.GB22054@kozik-lap> References: <20191219105130.29394-1-m.szyprowski@samsung.com> <20191219105130.29394-3-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191219105130.29394-3-m.szyprowski@samsung.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 19, 2019 at 11:51:30AM +0100, Marek Szyprowski wrote: > Hardkernel's Odroid XU3/XU4/HC1 boards use bootloader, which configures top > PLLs to the following values: MPLL: 532MHz, CPLL: 666MHz and DPLL: 600MHz. > > Adjust all bus related OPPs to the values that are possible to derive from > the top PLL configured by the bootloader. Also add a comment for each bus > describing which PLL is used for it. > > The most significant change is the highest rate for wcore bus. It has been > increased to 532MHz as this is the value configured initially by the > bootloader. Also the voltage for this OPP is changed to match the value > set by the bootloader. > > This patch finally allows the buses to operate on the rates matching the > values set for each OPP and fixes the following warnings observed on boot: > > exynos-bus: new bus device registered: soc:bus_wcore ( 84000 KHz ~ 400000 KHz) > exynos-bus: new bus device registered: soc:bus_noc ( 67000 KHz ~ 100000 KHz) > exynos-bus: new bus device registered: soc:bus_fsys_apb (100000 KHz ~ 200000 KHz) > ... > exynos-bus soc:bus_wcore: dev_pm_opp_set_rate: failed to find current OPP for freq 532000000 (-34) > exynos-bus soc:bus_noc: dev_pm_opp_set_rate: failed to find current OPP for freq 111000000 (-34) > exynos-bus soc:bus_fsys_apb: dev_pm_opp_set_rate: failed to find current OPP for freq 222000000 (-34) > > The problem with setting incorrect (in some cases much lower) clock rate > for the defined OPP were there from the beginning, but went unnoticed > because the only way to observe it was to manually check the rate of the > respective clocks. The commit 4294a779bd8d ("PM / devfreq: exynos-bus: > Convert to use dev_pm_opp_set_rate()") finally revealed it, because it > enabled use of the generic code from the OPP framework, which issues the > above mentioned warnings. > > Signed-off-by: Marek Szyprowski > Tested-by: Chanwoo Choi > Reviewed-by: Chanwoo Choi > --- > arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 76 +++++++++++-------- Thanks, applied. Best regards, Krzysztof