Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp640627rdb; Wed, 17 Jan 2024 12:39:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1w+tPdlkaVfuolBXqYrpOaIwm2TcC8XDmz4Rs6wXqkZ/Fa+QtTX4TdzmNzb/6m6TF9wty X-Received: by 2002:a05:6358:cd26:b0:175:ab9b:5b10 with SMTP id gv38-20020a056358cd2600b00175ab9b5b10mr9115028rwb.9.1705523958252; Wed, 17 Jan 2024 12:39:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705523958; cv=pass; d=google.com; s=arc-20160816; b=sVjd0RlwL7cSZu1k5IJ37ex7RnzubAl+e3VSPPqJS1Uom01dvy3btMAkFkKHcD9LKy 2BMprfRIrsy5OczU7OEc1MDrk2F/rFeFfvK3v7X8xvt78M+Nyxyf1S7cvMFe491/OfDX ZmdHHEF9w36yX97Crlrf/kd8+BGdh+npVB57cClut4e7ySynH3wRakl6b3y4V7A/oLoH rHA12jGGyAt2mg3quGK2jmysphOqClUYXGplPJ0rI2bs3Xu4SWQOjx7WrkOKT1/zDQst ok8uaZSswZGM8cm1/fO1sQx/bOeVxFwh0XGOas6fTwMfiESFa5/+8IGMu+7qLyJHfU5T dCwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GgXkc5sUxUIkETjKviniRFVlsVpLigaLq/cF1b+TQF8=; fh=P31oQyb43bE2MryAccONe+zS8ABT/LvVn7fR6lIIRuA=; b=F4a8YaoU6RkZDrY3Otjk4PbBsniL4wU103fflg4jYSQYvLOP/qTX2aDijn8ThxmAfN sDzyZ4c6zDDOfS4nYsEsXG8XYEZs69J/HSCmfnJHA2jBgvgultEyle/tyn8Df7aSeVll 1PUM2fWmn8SDULABEyvwLvDm2YthfCtIrZWkFWjqNMjpKMYyHR7L+E36fqoKaJSI+DsR tRZ+MIMBx9T1wMVSG7nNZ00xXRSM39FKDbpv9PB0YG10L3394AzY/ma/V8cbMEF4aJ54 c0rAlU1YQtFKqeql+lFc6zp58X7WbyA0mLJRGmEpDPPkIWJBmwP0SvXPTltWYXMeHsGv m0hw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jHP26o5W; 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-29429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c11-20020aa78c0b000000b006db883d2306si2305182pfd.378.2024.01.17.12.39.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 12:39:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jHP26o5W; 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-29429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29429-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F0FF9B21EB8 for ; Wed, 17 Jan 2024 20:39:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16F052511A; Wed, 17 Jan 2024 20:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jHP26o5W" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 A6257250EA for ; Wed, 17 Jan 2024 20:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705523945; cv=none; b=usktvsO79TS3jo58MukYY6KaJHoSqLkeHj3BLxnRpT6IqV08nhj2DlMzRRuwYPRjY8Czn8pDxyjaPKL91Jzzs3c5E1gW83GwNBqrsR634/FIg8UNzvLxfuU2IXPWVP6JbtFh5uasGiUq4hipsDlDi1yF7bBZM5mzrNsZqDf62WM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705523945; c=relaxed/simple; bh=8mQrGiJSycupzR9LCfp2y/hXC4hOoN/BwZCVy0ud0Qw=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language: To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=iFiQ0nVCCqVMD16aY2shgZbkiBbjWOORRG39ByqLAqY4w5KxmYcf1eaz9XksosAN71/tSINUevyqz9qdO7YLb8idORhGLjnbJUi+jnLTewHxiEkxg9AYb74iZ2fnUXXsy/LIsfRVpm76PsGeMfLfB2T3oQWZzXgoeGPj0tqICfg= 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=jHP26o5W; arc=none smtp.client-ip=209.85.167.42 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-lf1-f42.google.com with SMTP id 2adb3069b0e04-50f11e3ba3aso106622e87.1 for ; Wed, 17 Jan 2024 12:39:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705523941; x=1706128741; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GgXkc5sUxUIkETjKviniRFVlsVpLigaLq/cF1b+TQF8=; b=jHP26o5WrV6KCT2wZb64mCG8efGy9DKuuCRK/hWMhId5ZE+/ZBUeu4hr+3VXQBH6/6 oKxwFErWEWlphNkDmdFIf53Wpi/qEzkgqNLdW5+/aQAHXEXmEW9QMd09bov93nyF9WbP KO1l9F/mANimDw6iC0vvKkufVaIS/usMfD7mHuK8dfCWg+CWmD3bY+woC4Zf0zeU4YTo hWMWARgQhbri/h+e0K/pGLcYp1flTprI7Bf8lVqJpGbtNuPffX4oDgcy0loGbHil6Mxu VNMEUsqFtgzGC1bVDnGrK69MnYRgP9VBDR+Ia5/ajrTcT2zLgyoVuvi9QcI46+gEDbyp mPWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705523941; x=1706128741; h=content-transfer-encoding:in-reply-to: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=GgXkc5sUxUIkETjKviniRFVlsVpLigaLq/cF1b+TQF8=; b=q3wn85p1T7ii9tTPoIvFtK21yFYpdO4Tkb3fBoiuYcCaJ3PtyBLx20zSgvCLPM4t+U PgdCaoTKeepC1SgpJiHC93y1vretb66EBdsR+hVprTiYdQztToP0j7OSJ19lXIlq8dUj GPeUGStrglL/cGfN2zmDA+r/vx15w8Cpj+JYA/UwEVl6KLkmBeXjc+I71Knq9uBj4yz0 5KYBYN1Ex26g/gDfaCh3PzNoMpO9TbQmhMQXFDJ3G/Ka2gSM7bakG6t76yzCs4ViGk+e RZPNBMTiyG+vruCqm+jgna5kG2eZf1mv/s/JSoiywPgZXCVDdUg5q3surUG2xJ1X55rk NYPw== X-Gm-Message-State: AOJu0Yy/iOI04dGR+1Gah01ORw0IwtQ7/PZVnE2fQvFpSi7r8ZFCuRw6 AAoHGfddDxg01xrY07OTzB1FojC4e9QgOw== X-Received: by 2002:a05:6512:3a94:b0:50e:7dd5:e5f0 with SMTP id q20-20020a0565123a9400b0050e7dd5e5f0mr6168847lfu.12.1705523940588; Wed, 17 Jan 2024 12:39:00 -0800 (PST) Received: from [172.30.204.151] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id r26-20020ac252ba000000b0050e87c5b837sm363612lfm.263.2024.01.17.12.38.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jan 2024 12:39:00 -0800 (PST) Message-ID: <2cbdbe92-ce36-4147-a64f-7f86ee3761bc@linaro.org> Date: Wed, 17 Jan 2024 21:38:58 +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: [RFC 7/7] arm64: dts: qcom: x1e80100: Enable LLCC/DDR dvfs Content-Language: en-US To: Sibi Sankar , sudeep.holla@arm.com, cristian.marussi@arm.com, andersson@kernel.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_rgottimu@quicinc.com, quic_kshivnan@quicinc.com, conor+dt@kernel.org References: <20240117173458.2312669-1-quic_sibis@quicinc.com> <20240117173458.2312669-8-quic_sibis@quicinc.com> From: Konrad Dybcio In-Reply-To: <20240117173458.2312669-8-quic_sibis@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/17/24 18:34, Sibi Sankar wrote: > Enable LLCC/DDR dvfs through the Qualcomm's SCMI vendor protocol. > > Signed-off-by: Sibi Sankar > --- > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 48 ++++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > index 6856a206f7fc..3dc6f32fbb4c 100644 > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > @@ -329,6 +329,54 @@ scmi_dvfs: protocol@13 { > reg = <0x13>; > #clock-cells = <1>; > }; > + > + scmi_vendor: protocol@80 { > + reg = <0x80>; > + > + memlat { > + #address-cells = <1>; > + #size-cells = <0>; > + > + memory@0 { > + reg = <0x0>; /* Memory Type DDR */ I'm not sure reg is the best property to (ab)use.. You could very well define a new one, like qcom,memory type, then the subnodes could look like: memory-0 { qcom,memory-type = ; [...] }; > + freq-table-khz = <200000 4224000>; > + > + monitor-0 { > + qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5 &CPU6 &CPU7 &CPU8 &CPU9 &CPU10 &CPU11>; I fail to see the usefulness in checking which CPUs make use of the same DRAM or LLC pool. If that's something that may not be obvious in future designs like on dual-socket x86 servers, I think it can be deferred until then and for now, AFAIU you can just unconditionally assume all CPUs count. > + qcom,cpufreq-memfreq-tbl = < 999000 547000 >, > + < 1440000 768000 >, > + < 1671000 1555000 >, > + < 2189000 2092000 >, > + < 2156000 3187000 >, > + < 3860000 4224000 >; I.. can't seem to think of a future where this doesn't explode. When you release a different bin/SKU/fuse config of this SoC where the CPU frequencies are different, this will likely also need to be updated. We don't want that manual cruft in the devicetree. Since both previously cpufreq-hw and now cpufreq-scmi generally operate on levels that map to some frequencies in the firmware, could it be bound to that instead? Konrad