Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp826407imm; Tue, 3 Jul 2018 00:13:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJerjFLv85RaaAs5mjMrRe3N+WAxYYYssk3wWOgq8mU6oe5rNE3Qy5sKsFqvAZ7HY2HikkL X-Received: by 2002:a17:902:a505:: with SMTP id s5-v6mr29291107plq.66.1530602010184; Tue, 03 Jul 2018 00:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602010; cv=none; d=google.com; s=arc-20160816; b=0J8jtw7aG+pkBlV21uN4KFhASi2tq4+Z5ipk5+r12K/s0qMv935oxv8nwBcV7ZR5/3 Wk+eNmaR7CUPciPwNDMTi95RuFyYujQwNiwrRFwPqag0d/GD0r3IGaaX8sw5iU7d+1gj V5mCj2iQgqxTg64W3PmrS8atEJ/QTkYUh2m7DaHLGq5hqnJLI5HicrJvVDNPwUX0/ipK MB5HFXbXdspDZKjR0ucLzInGrxQvh7x0P8V1URhNqMdZarjri9H7T5LrcrTYq93r0DBR hCqBu5RNf+muJYD12AOARR3gOHb95Jn9SRSsbVC8zHSOVXzivrw0pkf42nbb4l5zhc59 NWxg== 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:dkim-signature:arc-authentication-results; bh=AmRHD0C37IjDwtP556fBgOf+TU6Mt1DIQUb7nra/WGI=; b=ezGevLiDsqET/EDpyHOPfP0HZJE2UBzVIZhrhnmobNgkbfMnie8S3EJc/w4e/nJHrH khqjoE+zJp/dB7B1y3CQm/op+x4TB2ul0xG+BxMRJ29dG8VfLwd1Yta5FajA6j9XiuFG IyNOVrBOMy1cxM3y9pxIrumV8dfxMIwrY5kXv4FqI5aOYGDxzvezaW5Rfp93kp2E+bMK cxnzoq3LD0UUX0CUH64Ke/3GiFCn5FJZw2Tzm1nkvL/erhoo2FfVbVBIqiSzDn/4YDLz R2XCsZ/+k48zZZqEPKdV1fBZjrluU1Mhuy79Ch0HAMEpZMyNbOYtecdntK+IM65ju6Db pelw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i8U8bl0s; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10-v6si443256pgv.47.2018.07.03.00.13.15; Tue, 03 Jul 2018 00:13:30 -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=@kernel.org header.s=default header.b=i8U8bl0s; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823AbeGCHMf (ORCPT + 99 others); Tue, 3 Jul 2018 03:12:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:38178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752839AbeGCHMe (ORCPT ); Tue, 3 Jul 2018 03:12:34 -0400 Received: from dragon (unknown [104.237.91.44]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3809224DCC; Tue, 3 Jul 2018 07:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530601953; bh=ylrF7964J9Fk0nW7a0GxHSh/5AhJpRYjIDXweoA1g4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i8U8bl0sl97OSG7/KHRJMqa30I/txstM/9Jj5JogAEIuFdnSdaE+wwKaHRkqC3GhK MECT9JC6UuBXTjy4tf1ibhNKd12oIDQf+r7v9yFVhPUUgJ2Ee13deYG2C40VYaZj+S b/u/Ct4lPQ8bx5d5yVzugPA2nCSTv0/xNSJNqmOw= Date: Tue, 3 Jul 2018 15:12:16 +0800 From: Shawn Guo To: Viresh Kumar Cc: Lucas Stach , arm@kernel.org, Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-kernel@vger.kernel.org, chris.redpath@arm.com, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 15/15] arm: dts: imx: Add missing OPP properties for CPUs Message-ID: <20180703071215.GM4348@dragon> References: <264124e14b966a1bbc07c364fbd89fc55aa765e6.1527244201.git.viresh.kumar@linaro.org> <1527248760.3472.6.camel@pengutronix.de> <20180528110739.ewmhlf72sl7u5ju7@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528110739.ewmhlf72sl7u5ju7@vireshk-i7> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 28, 2018 at 04:37:39PM +0530, Viresh Kumar wrote: > Hi Lucas, > > On 25-05-18, 13:46, Lucas Stach wrote: > > This is a lot of duplicate information for what is effectively a shared > > cluster wide thing. This does absolutely not _feel_ right. > > I cannot agree more :) > > > What problem are you solving here? Why do we need all this duplicate > > information? Why can't we fix it by falling back to looking at cpu0 if > > needed? > > Let me try explaining one of the problem scenarios to you as your > platform is a single cluster one. Make cpufreq driver as module, don't > insert it, hotplug out CPU0 and now insert the cpufreq driver. The > cpufreq core will try adding the cpufreq policy for CPU1 but wouldn't > find the required information in the DT node of CPU1 and so will fail > or behave incorrectly. > > We can't look at CPU0 as we don't know they are related at all. > Nothing tells that to us. The right solution to fix the duplication is > to move to OPP-v2 bindings, which allow us to create a single OPP > table node and refer to it from all the CPU nodes. Because in case of > imx platforms getting updated here, we use the old and some platforms > specific frequency tables, we have to duplicate it everywhere. > > But looking from DT otherwise, all the device should anyway have all > the information required right in their node. That can be simplified > with things like phandle to opp-v2 node, but still everything needs to > be there. We shouldn't really rely on other CPU nodes to make it work. > That would be an incomplete definition of the hardware IMHO. Lucas, Are you fine with the patch now considering the respond from Viresh? Shawn