Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2260707imm; Mon, 28 May 2018 05:00:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKshLulYvw/X+2vlwhBsDE1ta05tf0eFN8jrFh+jzMiUyEX/Q9Jc7ti2pMYJx3vuPA4H/GD X-Received: by 2002:a63:a84f:: with SMTP id i15-v6mr4936414pgp.422.1527508820755; Mon, 28 May 2018 05:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527508820; cv=none; d=google.com; s=arc-20160816; b=qcTHhLkLpcfyqVQKcWlCdJHFduKvw1ezMnig+G2MEXNnKt00nYXAgLvTxg7vF2JcFR fpR9irlz3ZX2PpL1t3mWXZU3gP8ciwBF3k5lgRRPsqZpH4CNfTWXprYG2KsXWQ4qBV+2 gcNCdqqVdhduuZVZmziyUHIgQVZ98ywtr8XSy8Sfx+7XuFGRDLRTtsZli4rgCD5vL2Pa J8XidlGUbM0Ib+sqqw6bHMqgGSHZjxl94/8VTRO9RkEPkjLZQQOrlNJRrjSdOEA8Hfrb xMRs7L+gAZEMKZhah68xE8JufY54T5Y7wmeilBf86nmNQ+ziGPVDKSE0MpDVpvhOTsku wJVA== 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=LooU50Lu01X7T2mJi+fWjXdKu24UVTcb45ankqxQCq4=; b=O7HAWD50SaeWt7h60GjCOPDyArkCKLukCaN+dpdhmLPnrP4MTUDMsTZgUkFCeoIeR3 3WEsK7yCCvPOccoNY1luuycTQFSqyTEJ0g19VvytXFh0DJacWmTmrRAboLf54CYPim+p qdog0C4TVn8kuKoQS64ztjnAolSnfPtyOQUelCrTPe33KXm/qvlRCMaJtpaehVKe0yvU iy7MwLt4D1zKxmZ+jzCXQfO+OG7oBw4onT+k3rYKebPeJo+3Dz+MO3KRsNWlSLBBKiyq ipyw1RcTlFyz+PACYFIiQuSO2j//qpyeenviGja4iDizvUiSSug+ymt35oBPFl9KzT1Y c05w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a+EdRg0F; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18-v6si23643593pgv.493.2018.05.28.05.00.05; Mon, 28 May 2018 05:00:20 -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=@linaro.org header.s=google header.b=a+EdRg0F; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423483AbeE1LHu (ORCPT + 99 others); Mon, 28 May 2018 07:07:50 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:43993 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423471AbeE1LHm (ORCPT ); Mon, 28 May 2018 07:07:42 -0400 Received: by mail-pg0-f65.google.com with SMTP id p8-v6so5148114pgq.10 for ; Mon, 28 May 2018 04:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LooU50Lu01X7T2mJi+fWjXdKu24UVTcb45ankqxQCq4=; b=a+EdRg0FyYZpENIMhFnGHeT2XTlEgcrTRHSUPIpg30J/swp6gsIMLQ8KCaLKcMB6OC +TjOxhpPtcE2m4S5YYpL13vFgg2RHFD9zP4cMh4ONV7VMQOXwOkUpRhh/SPSOk1H1EMQ 2kcM1/Bzx7mLE4UMjfvMMYQyLeWPNehV6wkP8= 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=LooU50Lu01X7T2mJi+fWjXdKu24UVTcb45ankqxQCq4=; b=efiNNG5Z7gjsUB6D+ZTBJ4nH3mnDPOXNM3RKSxnx68BneWNFmFkFpxgTOVUJ1Z9RbN gSH2C96zk7CyhvSVd2v2V5FTAucG4A+H/CWymXhGubspiLgztz0gakwTsbjdRjoFiRBZ DZWpPkuf2DqSboJhxdrDckXKexIPMmRWHJ+q7/p9bHKFlUblCEZC3s9cfBlEpEGzkUIc 3xO4dSZHcxuG7JI56HojWRinmiG5Hcj2K7ktG4u8KW3TjP7Ok3FpWhf5cHRDR/ngPJ76 PU2fxIXTo5qHXPw9f9ydzxWCat+ldnVU4Vi4KdEwzkdnmD1/QksvvCgPNpiz94xdMR+4 cVZA== X-Gm-Message-State: ALKqPwedtDmFwXJwKMDRZI4L0YsuBXA0o261Zp97F8mzLAdrHYoK9aic d0bIUXtyJm18jtNUjCpXO0UA1A== X-Received: by 2002:a63:7f07:: with SMTP id a7-v6mr10227433pgd.173.1527505661849; Mon, 28 May 2018 04:07:41 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id t134-v6sm4670546pgb.93.2018.05.28.04.07.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 04:07:41 -0700 (PDT) Date: Mon, 28 May 2018 16:37:39 +0530 From: Viresh Kumar To: Lucas Stach Cc: arm@kernel.org, Shawn Guo , 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: <20180528110739.ewmhlf72sl7u5ju7@vireshk-i7> References: <264124e14b966a1bbc07c364fbd89fc55aa765e6.1527244201.git.viresh.kumar@linaro.org> <1527248760.3472.6.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527248760.3472.6.camel@pengutronix.de> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- viresh