Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp350866rdb; Thu, 22 Feb 2024 05:57:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcCgJm6p+AwAx0eeMwF6gQc//02KY9nhit8164rFz+xdjDsjP5ZpH4Rgh4WTgMUA9Wnz+pT77vGSxgdqjw5IE0/InlK3gBKFZHYfVxVA== X-Google-Smtp-Source: AGHT+IHmZZazXztyJonjwVkVpdjDZr+i0coAcodvI6P0eUTICnvue9mLGF9o3g5TrUqyB/eTIkdy X-Received: by 2002:a17:906:d85:b0:a3f:9de3:59a8 with SMTP id m5-20020a1709060d8500b00a3f9de359a8mr729836eji.1.1708610241740; Thu, 22 Feb 2024 05:57:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708610241; cv=pass; d=google.com; s=arc-20160816; b=VAgcnxF4Y5V9wwOvvfPs+lcLPyshzvkEZx8u1Sb7k/EZoceVcsk7pH3+H1fAuXZ8b1 L8Aaf0wLpcgpR0iA7AkomXx27zWTqOlK37yzGXZsEXDz29+b9yP0kM3eYeUM2cUHAz+7 45nRqH/ssBL+pA3cz6TXDl5ohdhxYO2ChHCH9EgHyy963k6s4sZ2zRtLt+KHUdvLnB1d 9GJQTP3VmlOoJqM6GcBufZF1p9jXAZ0G5Sjp+CROxoXoSRgZdHuL1lNRylHAjLc5p4i4 2c6SQPNv9q4rvIgDqgbcv0rcmGrLQvHzHI8VtIMrnDqgJZD08x+/UI+nLyMQuFYD7cZ5 WBSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=9M0P9opUFSWtkQLphdA6I3S7DndCSR9WbWj0d6AfTLo=; fh=ZBLo0Bh4LFitYpS/+DmoADsEZVbUpedYHilAKTvSVoY=; b=tk8e47kBrvi+NseugKqhd0oZ0zEcQVRcpgBW0ZrziDPtv0U4ViWWzR4vPcBeXVUaZm nIuHOhtRJ3Z1LwBmbCKCRq/rCc2AU4XCh+n1NBeYOvCnxztz5NIJ57gG4W0l4JQvhNdP LCWrT5vojDUOWoTN8l+O7iEUoioeUuf702kqr6UZEhpVPKa/0UvMSJ4BAgQI/4Z7A0CF uhtrxVZeJvVGXeaxDzAiv6zXRNthRf5lv0LoubvUIL+etWhYsC7IqMS6CYPs8BR3fRRw QKwaiOs9lJ91yEBwBAazlwYL7VXzq4lai0GUZdaKE5j5LPeMu1LSuFt2J0nQz8iJ3LyD EeiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z23-20020a1709060f1700b00a3df8c8d2f9si5611578eji.352.2024.02.22.05.57.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:57:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 74A731F21952 for ; Thu, 22 Feb 2024 13:57:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1077713667E; Thu, 22 Feb 2024 13:57:14 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F301C1339A4; Thu, 22 Feb 2024 13:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610233; cv=none; b=rxehlp1V4Gbph9q5S1Y9oR6WJTmtJvcxGcvRRdPn0aR2vMreqXUNvQ6sf8VZNXeuXBtsJK0YvNlS3QXRUVvLDv7VZKgThUn1Jbr+MD3dHDKMdAes6n3MdnpuGTyxeeQd2K0Ge2ARXRerr5+5IRbQUkRa0YEqu0Tlvko3qyz9kP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610233; c=relaxed/simple; bh=NqY+ahb3fnUa60p/yJLt+jA5NiI5wUvrrv0ehDTTdF8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HwZ0YWrqIDvUrNJPDXGP4N9lOIEQbUh16Ti1JB1x4msmgL+mM+tkNA3apEG+BUmu1Pyt4x9sduId9PrdhHDOtNke7x6z3HaOHuNeYLs/2g6IylS/npRgB5G2T/on0OIRZGPI505mLDBc9Vg1xHALoKhn+bG0L2c58yvyVvuVWTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B28C8DA7; Thu, 22 Feb 2024 05:57:48 -0800 (PST) Received: from e126645.arm.com (unknown [10.57.50.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9FA573F762; Thu, 22 Feb 2024 05:57:07 -0800 (PST) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Cristian Marussi , Christian Loehle , Ionela Voinescu , Sudeep Holla , Dietmar Eggemann , Pierre Gondois , "Rafael J. Wysocki" , Viresh Kumar , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH 0/3] scmi-cpufreq: Set transition_delay_us Date: Thu, 22 Feb 2024 14:56:58 +0100 Message-Id: <20240222135702.2005635-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit policy's fields definitions: `transition_delay_us`: The minimum amount of time between two consecutive freq. requests for one policy. `transition_latency`: Delta between freq. change request and effective freq. change on the hardware. cpufreq_policy_transition_delay_us() uses the `transition_delay_us` value if available. Otherwise a value is induced from the policy's `transition_latency`. The scmi-cpufreq driver doesn't populate the `transition_delay_us`. Values matching the definition are available through the SCMI specification. Add support to fetch these values and use them in the scmi-cpufreq driver. Pierre Gondois (3): firmware: arm_scmi: Populate perf commands rate_limit firmware: arm_scmi: Populate fast channel rate_limit cpufreq: scmi: Set transition_delay_us drivers/cpufreq/scmi-cpufreq.c | 26 +++++++++++++ drivers/firmware/arm_scmi/driver.c | 5 ++- drivers/firmware/arm_scmi/perf.c | 53 +++++++++++++++++++++++++-- drivers/firmware/arm_scmi/powercap.c | 12 ++++-- drivers/firmware/arm_scmi/protocols.h | 4 +- include/linux/scmi_protocol.h | 8 ++++ 6 files changed, 98 insertions(+), 10 deletions(-) -- 2.25.1