Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp671190ybi; Wed, 17 Jul 2019 03:05:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgbwLem94MKh9V5j5Hu9NvvGcjTBd+AmcA5RRhPiyy+hqmqfKPc4O33vR6x+vZjBDZGc/P X-Received: by 2002:a17:902:f082:: with SMTP id go2mr44045033plb.25.1563357946470; Wed, 17 Jul 2019 03:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563357946; cv=none; d=google.com; s=arc-20160816; b=XVknqk+bQNApoIvAY7VVSrDKGMYIzs43SmZkILONTEkPS5dinJhZMVsk3wQOhAGR2G nlzJVnUm+51fgVsocSIYcGuCnv7/xrvnWt+L5F4VYpK9WgnBQLspZ5cwpcRxuCNQR0f3 8KAQ/E04Nrh9hgM71c1y4kWLAOVgpz+Ft66lA9//MtmNaQbXXxSHTPYGfLYMW1n+Vc/b npXod9YPpAKGJPD+hMYdNyxePJGjoiZcTKalB6dhW7EX+zNoquHFVG58YdP/SJepq/m/ aqxOGa57/DShZu1ZdTMh2rQ7+pjQXwOfH0nYKxYWMNIv+mt8hHMqRKXW8t2RV3A4Ie3S oURA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=woUJD0MUnc7hgwlmdEjoDvm2u+6Gwv5jeL7G5nOpHTQ=; b=NonBzyH3cLsCKanfMXzo+zHJeiKrTZfUpaD7js5t8nbCHRuwD+i7ahlZ2tnU9Y7s6C KeIDaga2rMoFCfo9nRpAvxvSwC+cQW90aqouPQetCeUXQcfVQEU2BifCqraCkRO+XRZz 5I5ovCfNxfSFbSbt9vQOBGEMICw5vlVj4mnriOKYrhWuyHJKbkAhtX2fAiIBopDrWMKq 8NWfRLzYIgEvawSdn/nNVdMelypeEf7xm4qhiVSOwCQqSq8T0iM+4IL3lvIAkWywE+di csMvIdp0H9gYJLK0t2qqmfCR3c/KJp4H1ggqJcRgO7DxHgxeo39YTC14wJOdCPdxYqkD jcHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fp+150wW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si23645837pfn.43.2019.07.17.03.05.30; Wed, 17 Jul 2019 03:05:46 -0700 (PDT) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fp+150wW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726458AbfGQKEw (ORCPT + 99 others); Wed, 17 Jul 2019 06:04:52 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39745 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfGQKEv (ORCPT ); Wed, 17 Jul 2019 06:04:51 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190717100449euoutp0228bed2212c03519ec95e671518107752~yKbelSTAF0451104511euoutp022 for ; Wed, 17 Jul 2019 10:04:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190717100449euoutp0228bed2212c03519ec95e671518107752~yKbelSTAF0451104511euoutp022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563357889; bh=woUJD0MUnc7hgwlmdEjoDvm2u+6Gwv5jeL7G5nOpHTQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=fp+150wWRFK7b/hDvHrDMyGmhJ++OhFBf/C1SXbo08qLP04PcruqlM14nVbSA0Fya lGBHrxBc4VSwbRp5qA0MAWdB5366JYtige0BHcxI++GG7Hp8Rmbd4z6lxtLUe3rEVq rEXfePNKnJXGkt2YRRJF+Qyjg9HiFd+XN3bkplcc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190717100448eucas1p116241be6945c25de5db5c28dabc6360e~yKbdyJ_Hk1760117601eucas1p1v; Wed, 17 Jul 2019 10:04:48 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 94.14.04325.0C2FE2D5; Wed, 17 Jul 2019 11:04:48 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190717100447eucas1p2c3ee55926bbd8e8461f0ff6cce4c2d22~yKbc1SkET3264032640eucas1p2p; Wed, 17 Jul 2019 10:04:47 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190717100447eusmtrp163ec65e7682310c1a3264c64fcd8c9b8~yKbcnChcV1501515015eusmtrp1g; Wed, 17 Jul 2019 10:04:47 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-ff-5d2ef2c0e56b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7C.E8.04146.FB2FE2D5; Wed, 17 Jul 2019 11:04:47 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190717100446eusmtip224af8f2f728af37f179fcc85a4346b9a~yKbb22hAM0168001680eusmtip2U; Wed, 17 Jul 2019 10:04:46 +0000 (GMT) Subject: Re: [PATCH v1 20/50] ARM: dts: exynos: change and rename FSYS OPP table in Exynos5420 To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-samsung-soc@vger.kernel.org" , linux-clk@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, =?UTF-8?Q?Bart=c5=82omiej_=c5=bbo=c5=82nierkiewicz?= , kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, Andrzej Hajda , Marek Szyprowski , s.nawrocki@samsung.com, myungjoo.ham@samsung.com From: Lukasz Luba Message-ID: <33804835-4003-b86d-62cf-3802fbb91202@partner.samsung.com> Date: Wed, 17 Jul 2019 12:04:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPKsWRmVeSWpSXmKPExsWy7djP87oHPunFGuw/wmVxa905VouNM9az Wlz/8pzVYv4RILf/8Wtmi/PnN7BbnG16w26x6fE1VouPPfdYLS7vmsNmMeP8PiaLtUfuslss vX6RyeLiKVeL240r2Cxa9x5htzj8pp3V4t+1jSwOQh5r5q1h9Hh/o5XdY9OqTjaPzUvqPfq2 rGL0+LxJLoAtissmJTUnsyy1SN8ugStj02qfgr3yFc9O5jYw3hDrYuTkkBAwkWhqfcHcxcjF ISSwglHi59+FzCAJIYEvjBJtn0shEp8ZJTZe2ckO03HpxiVGiMRyRok1t+6wQHS8ZZQ4cCgQ xBYWSJDYubuJCcQWEdCUuP73OytIA7PAVRaJH/e/A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RI7dzcxgdgiApoS1/9+ZwUpYha4yiIx5dVGdoiOfiaJ Z2sPALVzcLAJ6EnsWFUIYvIKuEmsvyQJ0ssioCqx/+wyNhBbVCBCoq9tNpjNKyAocXLmExYQ m1MgUOLX9mNgu5gFzCTmbX7IDGGLS9x6Mh8qLi+x/e0c5gmMQrOQtM9C0jILScssJC0LGFlW MYqklhbnpucWG+oVJ+YWl+al6yXn525iBEb5tmM/N+9gvLQx+BCjAAejEg+vx2HdWCHWxLLi ytxDjBIczEoivLZftWOFeFMSK6tSi/Lji0pzUosPMZoCPTeRWUo0OR+YgPJK4g1NDc0tLA3N jc2NzSyUxHk7BA7GCAmkJ5akZqemFqQWwfQxcXBKNTD2zFzdtpphsel25Smbsg4pFLZMOWPT fi3ZeneD0HazuDWr3q5z+dVctbjean198YN/jxtYymbunhElqnD7+8S8WfJvvhtebNL8JmZi EBDx6+Gy6s+/56epZar1TTkqelj+ceTlr7lTrt2c+nae1ptfkVYlT6dfi4nmV9z4nuViVfzb v4FKCgWnlFiKMxINtZiLihMB7Er3dQgDAAA= X-CMS-MailID: 20190717100447eucas1p2c3ee55926bbd8e8461f0ff6cce4c2d22 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190715124450eucas1p189043d196375aa6adacf898de81bfa9b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190715124450eucas1p189043d196375aa6adacf898de81bfa9b References: <20190715124417.4787-1-l.luba@partner.samsung.com> <20190715124417.4787-21-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On 7/17/19 10:39 AM, Krzysztof Kozlowski wrote: > On Mon, 15 Jul 2019 at 14:44, Lukasz Luba wrote: >> >> The FSYS and FSYS2 buses have similar characteristics and both have max >> frequency 240MHz. The old OPP table bus_fsys_apb_opp_table should be used >> only to FSYS APB bus because APB max frequency is 200MHz. >> The new OPPs for FSYS should increase its performance and related devices. > > I do not understand the explanation. You say that there are two buses > - FSYS and FSYS2 - and old OPP table should be used for FSYS APB but > you remove the old one (by renaming). Or which one is the 'old one' > here? The reason is speed... wait, what? Usually DTS should describe > the HW so I imagine that proper opp table should be used for proper > bus. It surprised me that we switch a bus to different OPP table just > because of speed concerns. It should be correctness concern. > > Please clarify and reword all this. > > I am also not sure how this relates with previous patch - whether you > are fixing independent issues. Maybe because I do not see the issue > fixed... change the commit title and adjust the messages to focus WHY > you are doing it. For small fixes WHAT you are doing is rather obvious > so commit msg (and title) should not focus on it. I don't know how familiar you are with AMBA standard or general concept of NoC, so I am not sure if the explanation below would be sufficient. There are 3 buses: FSYS, FSYS2, FSYS APB. The first two are connecting AXI Slave/Master interfaces of the IP blocks. They are dedicated to transfer the data i.e. to MMC block using 128 bit bus width and 240MHz clock. The 3rd is dedicated for accessing peripheral registers - connecting to IP block interfaces called APB3 slave. As I mentioned in the comment the FSYS and FSYS2 are able to run faster than the APB bus. Thus, changing the old implementation which pinned FSYS and FSYS APB to the same OPP table is wrong. The right connection made by OPP reference should be FSYS and FSYS2 with also 240MHz max freq inside. I have discussed offline with Bartek and I will squash DT patches to an atomic-change-with-OPPs-and-PLL-rate-for-all-children, with more detailed comment in the commit message describing the old state and the new one. Thank you for the review. Regards, Lukasz > > Best regards, > Krzysztof > >> >> Signed-off-by: Lukasz Luba >> --- >> arch/arm/boot/dts/exynos5420.dtsi | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi >> index 941c58bdd809..c7fc4b829b2a 100644 >> --- a/arch/arm/boot/dts/exynos5420.dtsi >> +++ b/arch/arm/boot/dts/exynos5420.dtsi >> @@ -995,7 +995,7 @@ >> compatible = "samsung,exynos-bus"; >> clocks = <&clock CLK_DOUT_ACLK200_FSYS>; >> clock-names = "bus"; >> - operating-points-v2 = <&bus_fsys_apb_opp_table>; >> + operating-points-v2 = <&bus_fsys_opp_table>; >> status = "disabled"; >> }; >> >> @@ -1003,7 +1003,7 @@ >> compatible = "samsung,exynos-bus"; >> clocks = <&clock CLK_DOUT_ACLK200_FSYS2>; >> clock-names = "bus"; >> - operating-points-v2 = <&bus_fsys2_opp_table>; >> + operating-points-v2 = <&bus_fsys_opp_table>; >> status = "disabled"; >> }; >> >> @@ -1157,7 +1157,7 @@ >> }; >> }; >> >> - bus_fsys2_opp_table: opp_table5 { >> + bus_fsys_opp_table: opp_table5 { >> compatible = "operating-points-v2"; >> >> opp00 { >> -- >> 2.17.1 >> > >