Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6731351yba; Tue, 14 May 2019 12:35:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBulhgVf8OrbL1ooNVuFF0MmPyzdqTuYS5HoWELERJp+oH02p30rQrRkUHx0HBJDNUWhm5 X-Received: by 2002:a17:902:4383:: with SMTP id j3mr39121916pld.320.1557862536435; Tue, 14 May 2019 12:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557862536; cv=none; d=google.com; s=arc-20160816; b=CqRnGpIRGCMslyawzGeNVaWQtzBntqvboMF+1T2wIl7bCHtqaT3DgwxTBejdvSd/M6 LHzrAklbNfEgnculr+h8Y/bjFel5PLFO/j76fu+7S0MwWbqpx2JKBdqOdG/AxMUzmvBk W+mXjUbtTrzJdqJpg11LFkxQFnqcfeAE82fOHrNSamOKZuMykalV5/SOGjZrLHuZLFRt bAUwn0Qd2qEVgsPGpO9LIttDmK22+ct06oegTGIvXsucJKUTWHzxXGJ1wO8B69pphDpo L5Cdnko7Ac+jnQeTcMCJWQkByb0ZrHOqf8cYmwFRn6NNxxRFPtET7QjIS5n8BiI6gvpD JvyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=wjlb1F565UolY8iB+CdaT0Fa4CFl8wrCMHACaEWawDs=; b=M0l4qwe/xV3xztjdqABwGzbEkpt3SCdrAapmKlsGMAVHQHLzZ60cX4Xr3MW3X28vSN yeevO5gOGn8eKbz2lx6Tz5RFBVf7C39qm8eEKXkQVmTSG+HZLiTjgWZt5mWFhXx6ZW0h pLM0aIsTg7ZNqG4x6dxlyG4xIbkRysCLROETg9FpoegSbWIBIa2SuZqOh/zbT2Wu58Af 9+Vqi5O8iM1FbfLUxVVdGW23KJTvLktH3K7XyUNCNnc8NxMVkiiT1TDuxHN1HBvWd3YQ mMZYoetYkAur+Kr41UFE8TFI6e+tpA0Wl0Z4LtHjCGN78bjVAN+hhu0Jwiu3giwjVXmI Bzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="bGKa/Zt6"; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f184si24422837pfb.280.2019.05.14.12.35.21; Tue, 14 May 2019 12:35:36 -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=@nxp.com header.s=selector2 header.b="bGKa/Zt6"; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726270AbfENTeR (ORCPT + 99 others); Tue, 14 May 2019 15:34:17 -0400 Received: from mail-eopbgr150043.outbound.protection.outlook.com ([40.107.15.43]:23269 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726013AbfENTeR (ORCPT ); Tue, 14 May 2019 15:34:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjlb1F565UolY8iB+CdaT0Fa4CFl8wrCMHACaEWawDs=; b=bGKa/Zt6Sz7T74NDy+M+hswY82qqEPoAjVZvPpqiwrxr+vZ8typ90hPdF6lMB3jODIZP3V/FAZdvyFO5tQfj1bsXnPzUhfOwnYgduNBszDUQdUWm89jBqr8G/JLE99e051Cd7qToyTBYDdcMjEbGs1qMdQP2mSNxhPniuDmDJCU= Received: from AM0PR04MB6434.eurprd04.prod.outlook.com (20.179.252.215) by AM0PR04MB4034.eurprd04.prod.outlook.com (52.134.124.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.24; Tue, 14 May 2019 19:34:10 +0000 Received: from AM0PR04MB6434.eurprd04.prod.outlook.com ([fe80::19be:75a:9fe:7cec]) by AM0PR04MB6434.eurprd04.prod.outlook.com ([fe80::19be:75a:9fe:7cec%7]) with mapi id 15.20.1900.010; Tue, 14 May 2019 19:34:10 +0000 From: Leonard Crestez To: Alexandre Bailon , Jacky Bai CC: Michael Turquette , Linux PM list , Georgi Djakov , Patrick Titiano , Linux Kernel Mailing List , Stephen Boyd , Emilio Lopez , Hans de Goede , linux-clk , linux-arm-kernel , Zening Wang , Aisheng Dong , Kevin Hilman , Carlo Caione , dl-linux-imx , Anson Huang , Viresh Kumar Subject: Re: [RFC PATCH 0/3] Add support of busfreq Thread-Topic: [RFC PATCH 0/3] Add support of busfreq Thread-Index: AQHU2dO+g7FtRU5+MUaLzLMJn01eLA== Date: Tue, 14 May 2019 19:34:10 +0000 Message-ID: References: <20190313193408.23740-1-abailon@baylibre.com> <8af96425-a6f5-0114-7abb-c2a67b952e1b@baylibre.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; x-originating-ip: [89.37.124.34] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6b581bec-232e-4e02-5246-08d6d8a3234f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB4034; x-ms-traffictypediagnostic: AM0PR04MB4034: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0037FD6480 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(376002)(396003)(346002)(189003)(199004)(446003)(316002)(110136005)(54906003)(74316002)(33656002)(71200400001)(71190400001)(4326008)(66946007)(25786009)(55016002)(68736007)(7696005)(476003)(86362001)(99286004)(486006)(9686003)(6506007)(53546011)(44832011)(76176011)(7416002)(6636002)(305945005)(26005)(229853002)(186003)(6436002)(66066001)(478600001)(14454004)(256004)(8936002)(52536014)(6246003)(53936002)(102836004)(5660300002)(8676002)(81156014)(73956011)(91956017)(66476007)(64756008)(81166006)(66556008)(66446008)(14444005)(76116006)(7736002)(6116002)(3846002)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4034;H:AM0PR04MB6434.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wPqGYTShWwbwZBwFTLFsyajA5OR4p+TDB+/sPgqTbWldVAU55kzWd/FsnmjqDj29B7mcV3piCEBXmb4L3BGkWV8yhjE+SnyHgmR1RJkBeXailv1EcAWX7VB4vFHMdYjtBknpFyGCOwWrrhQoaAXvczwoRggYroF0QaeSqgPfvM5MRI9jzU0GtUEM+8Qtr/IwHVNEXYfOld9zJgKXSv2memqlOI+Kco3fQqS6pBya23bN7DQ/dYK4bx/5N+V5bwyp3KyqHnOazRkH52AIfZz6fg/UsgLUC/wGjl0ILFpkQFifgHaHaAjCKK8ZY8Hlelf8J/G8cmazdLLkmyCDnXhmFXzk7VCC0DQwZxT5yW7AGbYOKCiexvjMFXKfarVNZS4f/XVdXQrg2wfzvhZ4isXkKrs7dJmgO7V3JVcUohS278s= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b581bec-232e-4e02-5246-08d6d8a3234f X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2019 19:34:10.2224 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.03.2019 18:55, Alexandre Bailon wrote:=0A= >> On Wed, Mar 13, 2019 at 12:33 PM Alexandre Bailon = wrote:=0A= =0A= >>> As exemple, this series implements busfreq for i.MX8MM whose=0A= >>> upstreaming is in progress. Because this relies on ATF to=0A= >>> do the frequency scaling, it won't be hard make it work.=0A= >>=0A= >> It's not clear to me whether this series actual scales the dram=0A= >> frequency based on what you said above. Is it just theoretical or do=0A= >> you have it working with a pile of out-of-tree patches? Would be good=0A= >> to include that pile of patches in your integration branch that I=0A= >> suggested above.=0A= =0A= > The current series only introduce busfreq generic driver, and the=0A= > busfreq driver for the imx8mm.=0A= > As is, the imx8mm driver will just be loaded, but do nothing because=0A= > none of the drivers have been updated to request bandwidth using the=0A= > interconnect framework.=0A= > =0A= > My intent was to sent a first draft o busfreq, to get some feedback,=0A= > before to send a more complete, and fully functional series.=0A= =0A= It's been a while since this was first posted and imx8mm now boots fine =0A= in linux-next. Is there a more up-to-date WIP branch somewhere? =0A= Otherwise I can try to hack this series into a bootable form.=0A= =0A= > In addition, the current clock driver of imx8mm doesn't allow dram=0A= > frequency scaling, so if busfreq driver tries, it will fail (should be= =0A= > harmless because any other clocks should restored to their previous=0A= > rate).=0A= =0A= I'm confused about this. In NXP tree the actual DRAM switch is done =0A= inside ATF via SIP calls and involves corralling all CPUs. Do you want =0A= an "dram" clk which wraps the SIP calls required to changing dram =0A= frequency and root switching etc?=0A= =0A= I've been looking at the busfreq implementation in the NXP tree and =0A= refactoring just the "dram freq switch" behind a clk might work nicely.=0A= =0A= This would be similar to the imx_cpu clk used for cpufreq-dt and it =0A= might even be possible to upstream this separately from the rest of =0A= busfreq logic dealing with device requests.=0A= =0A= =0A= I haven't done a very careful review but I noticed you're not using the =0A= OPP framework and instead redefined everything? It's not clear why.=0A= =0A= --=0A= Regards,=0A= Leonard=0A=