Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp160950rdb; Thu, 1 Feb 2024 05:16:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHSGxCUxK4b4MxzJ1LidAl8Pqt1EY47mX3oXbZTrtJqpGwXYuqx7ceQJBfinGR8I8Jlay9 X-Received: by 2002:ad4:5dc9:0:b0:68c:3769:c951 with SMTP id m9-20020ad45dc9000000b0068c3769c951mr3802546qvh.62.1706793407547; Thu, 01 Feb 2024 05:16:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706793407; cv=pass; d=google.com; s=arc-20160816; b=QG8LNGn5OG76Atpmbb48UAfeANlE3TlxzyHpOw4L31qBR+C624vdz670XMG+WXlsXc xrYumSgIKHFrDqpoke4yQlB66GdNzP3bFjSFvMW4CJiJTPEPz7XCKwB292MX1YzRS6Ly 4Kp+qvNFElSroSKvkcT7qoSjeEtGcpzmWu2QbRuhoLszqj/8KKuRhQQKYy8dVx7gWzFk wQE3ARQ4ZHVXWRZ9U1okXzIbmfvL1cFicRBFQuWnfnyHc2ZbCqx49LaqZWtCSPMS3V3Y 82rnU8ZiJl8xGnfwVDJ3/e3Y5a+/n5msC1fxbe0DzaOTFMsEz1F/h4dYBsg5Q1RFWGHp y7Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=YUhFYTlLab5T6jUIS091F3j7Zvj1LwtCr7XI50W9+t0=; fh=tp6YhyOjMamRsSDX9HWRHLwU/eC+1MKXLS9ijAU+2SQ=; b=o4aD5qL17e5MIfjnylPwOuNBkdqGNJ/FC0inI6fQusOlfUCMMlRW58OXyg2RlOIE8h YDp7luRc/q4T0P5D93phF2rU7gBH4VOxrRDPQa1a99lkdodj16MmxXTrNfAVW0+/ESHG 0ZW1gQBIiuyF3YeHyCAhz0jYI7/c8wzh+4+G3ez+xqLJAR48nXoqE01p8j8+FWwAKmFm WxQKlalf/+VJR4kEH0KlhdFwS9U5pGss4+cHony3dNKBWFG9xHayaio9pNyFGM9KRJfT BPdEvyiwuS9lsXMy3L7b80EhG8jMS4dSjn41u4qCkbNz3Xcetkw8/UnVP6Y2ZUXK5Gsw f5jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q5QYqlOg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWi+M1i35KaprvIAGakIobSYDxUYMusH6Xqr31mXim3idqFiV+SjntU4oPpt1c2jhrb0mD+yKSaaoLKE1E0TnOnA/DVT0MIVdZNVdM7GA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id if6-20020a0562141c4600b006869f98f452si14451933qvb.396.2024.02.01.05.16.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:16:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q5QYqlOg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2D4C41C255DF for ; Thu, 1 Feb 2024 13:16:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEE3A53369; Thu, 1 Feb 2024 13:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q5QYqlOg" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 208FF86627 for ; Thu, 1 Feb 2024 13:16:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706793400; cv=none; b=gazHS83S+0dz1dJmaQULIcfbvdIeTzcxlVcPDwIbUyuz9ZcjhBPQaYCL0kwu1RHF8JhhnYr1ENee0wz3hrzZfQT6nmqVvQsd7dU3rnc95VMlHCDh0ffb7VPy1QZ3tG4yAfjQox+lRl4roYT85rXQ66q+uvbJ8MlA2zJ29YRLwEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706793400; c=relaxed/simple; bh=jt6uwfPJoe0wq9bQzNnr2HwOF1cCYDzfEqSyn40vmLE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sFkPqkwRQwOszHc5p5LiyFlddpA1ZpYxcTz03MewneFqjyyTeJxRa3zXuZAjT5N8HM9Ou+vqd8qckW8iGreIfGdDEP4QYD/IcytJVkyqwbUdKp0PNVt37mj27ESxxs4spnCKo+q/Ok8uSIlYQCnBKU60roRZD7xkA35mdn6RriI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Q5QYqlOg; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-55a8fd60af0so1277277a12.1 for ; Thu, 01 Feb 2024 05:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706793397; x=1707398197; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YUhFYTlLab5T6jUIS091F3j7Zvj1LwtCr7XI50W9+t0=; b=Q5QYqlOgrL5wlKzRI0auJyXiDcR2rmZ+558tE1aPmaD1+5O9VvQ7qz7Piy4nPh1Sog AT49xWDu1tAzSs5asc/XEPWQRmwTbMR0YbO7rRira0myosevCQY/H6T5S0ZVCBNy/2zu UkG8XyHABLei+76VdbV9Yf9Rj2UIOKPZAKsORToch3WDZDom71L3IO6hKJmaVgW8mgUI ACqkn3D5DKvI7pVspqNdFvzrHQ+7qzJhvtE4ehF+KVgiMpMtchmBpNMGI6SuqPqKkAw1 4FMMSiPSKpbL5FKFbncYC8kkO7xTZ20cizk5hjei6/Aj7hsni7rh0OULEDhgA8cIklpx f9eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706793397; x=1707398197; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YUhFYTlLab5T6jUIS091F3j7Zvj1LwtCr7XI50W9+t0=; b=obQ9hGCAdpadsXvUSf5tocc86kvtJmo7x6E1siUflDDhd/Q28/ehR/lFDlExsZgkwH HHv2pnGbOTZj35vEgPUMQ7gdGheBJcPr+Tqj5Oj1ewC7x3PaboqmVZE5/LI4BmQGCf7H VF4qFxefJfeQyfr0p4PY6lGw1pGioRlApGNpSwivABtlK7AWLrwjujvCjclwqA5/rfZR QOfo5KtUfV17z9dWEgEjjSM+s9Hri1tWHpenTY+1YM9PlS+XG4kMhyYJCAtCbRMJhxgQ XQmft9GdLG8p7J0XNYjqn3kQkvuHx5x6NbRx0G9imTF6nJcKOFlpfWxSlTtBzIsXPlAu IRmg== X-Gm-Message-State: AOJu0YzPYfG2wIs/kPFHby3XaF4lWcylmEq/LEaLg/j8HBh4ljiHLFNj Bidx6Ed8dxz+CA5MnKYWhslMzaRRdNk92SWr3mAWhktDBN2HL/0hekGjnHEZBYE= X-Received: by 2002:a17:906:22c8:b0:a2d:60a:2ae9 with SMTP id q8-20020a17090622c800b00a2d060a2ae9mr3942370eja.52.1706793397203; Thu, 01 Feb 2024 05:16:37 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXsz2zh9zlYCHCASSDGUxgivCeg7IMmv5j96GjZ//fhgErntgbdaUXfUJ2pNw/u0xNacWyYtPUkysb5+JBTIGtfPAdIgHOunRqEQ4zCGOcav/UXOopRHZoRZCapI35W+4fCyaY= Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id lz13-20020a170906fb0d00b00a317ca8b422sm5915076ejb.92.2024.02.01.05.16.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 05:16:36 -0800 (PST) Message-ID: Date: Thu, 1 Feb 2024 14:16:35 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND] arm: topology: Fix missing clock-frequency property warning Content-Language: en-US To: Stefan Wiehler , Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240201123605.3037829-2-stefan.wiehler@nokia.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2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UMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240201123605.3037829-2-stefan.wiehler@nokia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/02/2024 13:36, Stefan Wiehler wrote: > If the clock-frequency property is not set in the cpu node but in the > parent /cpus node, the following warning is emitted: > > /cpus/cpu@X missing clock-frequency property > > The devicetree specification in section 3.8 however specifies that > "properties that have identical values across cpu nodes may be placed in > the /cpus node instead. A client program must first examine a specific cpu > node, but if an expected property is not found then it should look at the > parent /cpus node." > > Signed-off-by: Stefan Wiehler > --- > arch/arm/kernel/topology.c | 21 ++++++++++++++++++--- > 1 file changed, 18 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c > index ef0058de432b..32fc1c8d9d11 100644 > --- a/arch/arm/kernel/topology.c > +++ b/arch/arm/kernel/topology.c > @@ -85,15 +85,24 @@ static bool cap_from_dt = true; > static void __init parse_dt_topology(void) > { > const struct cpu_efficiency *cpu_eff; > - struct device_node *cn = NULL; > + struct device_node *pcn = NULL, *cn = NULL; > unsigned long min_capacity = ULONG_MAX; > unsigned long max_capacity = 0; > unsigned long capacity = 0; > int cpu = 0; > + const __be32 *common_rate; > + int common_rate_len; > > __cpu_capacity = kcalloc(nr_cpu_ids, sizeof(*__cpu_capacity), > GFP_NOWAIT); > > + pcn = of_find_node_by_path("/cpus"); > + if (!pcn) { > + pr_err("missing CPU root device node\n"); > + return; > + } > + common_rate = of_get_property(pcn, "clock-frequency", &common_rate_len); Aren't you adding new property? Is it already documented in the bindings? After a quick look I think this is not documented. Best regards, Krzysztof