Received: by 10.223.176.5 with SMTP id f5csp276605wra; Tue, 6 Feb 2018 22:20:41 -0800 (PST) X-Google-Smtp-Source: AH8x227hlrAS6+PscPKJVyHDJ5Sokg7Blw/JYNO3YldVIxjwk0Rq40Og9fdfApyXU56oZt1IUMvQ X-Received: by 10.101.80.7 with SMTP id f7mr4089195pgo.35.1517984441116; Tue, 06 Feb 2018 22:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517984441; cv=none; d=google.com; s=arc-20160816; b=HL7XiaHlLJpVcUL4Wz1H2uvT/bSKeNlmaltxus2yfWkUGdC7UbtL/nsO07sdL9DIIs zHmovWWQJTAxOh5mHBg9+wkaRpnq7gxGuKhvBlztSaMD+Xpn7rg/EIYu9oaaF0XpPJyD V4QzoSeU9ryNHliJlclGhPI7ADBgeTqQaSjAjn5JbX2N6xi2EtxyhVxd9nYEyDLEdEoo tDNkA3dugXaxKPJlhq0Q+T+JU5qT8adP7GaPn08u8l4uO40WjBRn/zzDrJ0ZyrMz8GZY 4Lj/oQEgth4Bn6qp+2Mhvm6qyjl8L1k4YakUelTKhznWEz2xBvSXkjngU4Ayro3l6N6/ 9WMA== 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=enxABnhNIWY3jpbyjczlu9r0832FiqZ69DdIXtOdDL8=; b=0uNwAMn5x1oVuVpHTUDBLLSVWkQlQHov9qTAJIxFKffyEAJ9y4h4sWQif8RUWZHGGl LQrRWwDqh4ZO/7T3XI8HUOrVfgAzOM1kXnrQi5kdDlASg9b+Y2XUF+oJ44GEHJT7LU4K Fw7fxhJfVvli22AXohYFUZYbO3UpxJjFfIMYTmXBt0LGK7UnZMinchUaRy8w7h6XZT8k KVMlxeXp1X2FicKFJd1ioPTOplh5zrbKJrltJfyilXJuuAr4lyxT+qdE2vBT4DV/2VWB 2eyLgG55Sd6qgBh0sT6hdwwZ1ok4Bgc5mpqHA95AvXib3T2NIyQNaADzccNpill15W2J 3Nbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SsKxqM2t; 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 o6-v6si599287pls.35.2018.02.06.22.20.27; Tue, 06 Feb 2018 22:20:41 -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; dkim=pass header.i=@linaro.org header.s=google header.b=SsKxqM2t; 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 S1753338AbeBGGSl (ORCPT + 99 others); Wed, 7 Feb 2018 01:18:41 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:34833 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbeBGGSk (ORCPT ); Wed, 7 Feb 2018 01:18:40 -0500 Received: by mail-pf0-f173.google.com with SMTP id y9so1732013pfl.2 for ; Tue, 06 Feb 2018 22:18:40 -0800 (PST) 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=enxABnhNIWY3jpbyjczlu9r0832FiqZ69DdIXtOdDL8=; b=SsKxqM2t3w37DlCjEoIF6zfszy695vjKjG/jXWdUvpaWTD8nMmrKiiC7obFTxf2JUz CtTKZ0QJ9Um5QRtzzaFJzFPlzPt4V03M46CHu1hoSPFHVEd0UsZtkIlUHP2QjRhhyvyJ BTzipjQ6cFr3/nIKEpZUEvG8xH1xCnDiHL680= 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=enxABnhNIWY3jpbyjczlu9r0832FiqZ69DdIXtOdDL8=; b=JNPJKas7sQggXfNdoCflnQ2Bh9QRyXoLzMpLrJUK6SPQY6Q1Bb8ayiAkbPY/cgJAo4 hyGnuNK+cF1tFL0tKiCcYKO8Ggzrg2/SEK4zfDdIBPSCkdUMPilNVkSoTM1ORYChiOX3 gqcwwUto63zalU2CSdOHPv6C2NYGql7R/XS05OjNwuVxj5pWdwrfDY0A5tP0KVUDeP24 kehssC83rNUWM79MYhHXETCMc9XtzuxX4o3mUYxt7TOE0P8LnYWzG8f69s/CEBUYDwWa 5P16hSPlFQpA3G41YY0aMhCt2glACr9PjyzVnhnDeW+SGA2H4MONaLKdZ6CUBPYq6dz6 ljew== X-Gm-Message-State: APf1xPCnhrjFZhd3399uwCSk4Y2nU2A+9z8GptBUk0ouvc3ppQy7ByVM ZtKNIbU7RQ9WAM0MaiHRFtW9eut6NIQ= X-Received: by 10.99.110.205 with SMTP id j196mr3947533pgc.54.1517984320044; Tue, 06 Feb 2018 22:18:40 -0800 (PST) Received: from localhost ([122.172.61.199]) by smtp.gmail.com with ESMTPSA id l19sm1371910pgn.50.2018.02.06.22.18.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 22:18:39 -0800 (PST) Date: Wed, 7 Feb 2018 11:48:37 +0530 From: Viresh Kumar To: Sean Wang Cc: robh+dt@kernel.org, matthias.bgg@gmail.com, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 06/16] arm64: dts: mt7622: add cpufreq related device nodes Message-ID: <20180207061837.GM28462@vireshk-i7> References: <20180207033331.GK28462@vireshk-i7> <1517984178.9025.2.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517984178.9025.2.camel@mtkswgap22> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-02-18, 14:16, Sean Wang wrote: > On Wed, 2018-02-07 at 09:03 +0530, Viresh Kumar wrote: > > On 06-02-18, 17:52, sean.wang@mediatek.com wrote: > > > cpus { > > > #address-cells = <2>; > > > #size-cells = <0>; > > > @@ -26,6 +70,10 @@ > > > device_type = "cpu"; > > > compatible = "arm,cortex-a53", "arm,armv8"; > > > reg = <0x0 0x0>; > > > + clocks = <&infracfg CLK_INFRA_MUX1_SEL>, > > > + <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>; > > > + clock-names = "cpu", "intermediate"; > > > + operating-points-v2 = <&cpu_opp_table>; > > > enable-method = "psci"; > > > clock-frequency = <1300000000>; > > > }; > > > @@ -34,6 +82,7 @@ > > > device_type = "cpu"; > > > compatible = "arm,cortex-a53", "arm,armv8"; > > > reg = <0x0 0x1>; > > > + operating-points-v2 = <&cpu_opp_table>; > > > enable-method = "psci"; > > > clock-frequency = <1300000000>; > > > }; > > > > Sorry for not picking this earlier, but you should probably add the same clock > > related properties for both cpu nodes here. Things will break if CPU1 is used by > > the cpufreq core to bring the cpufreq policy online. > > > > This can happen if cpufreq driver is a module, CPU0 is hotplugged out and then > > the cpufreq driver is inserted. > > > > mt7622 cpu0 does not support hotplug. do I still need to add same clock > related properties for both cpu nodes here? Normally we should always add these properties to all the CPUs, as that's the real scenario hardware configuration wise. But I am not sure if something else will break if you don't provide clocks in CPU1. @Rob @Mark: What do you suggest ? -- viresh