public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: Sudeep Holla <sudeep.holla@arm.com>,
	 Cristian Marussi <cristian.marussi@arm.com>,
	 "Rafael J. Wysocki" <rafael@kernel.org>,
	 Viresh Kumar <viresh.kumar@linaro.org>
Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	 linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	 Peng Fan <peng.fan@nxp.com>
Subject: [PATCH 0/3] firmware: arm_scmi: perf/cpufreq: Enable notification only if supported by platform
Date: Wed, 11 Jun 2025 15:52:42 +0800	[thread overview]
Message-ID: <20250611-scmi-perf-v1-0-df2b548ba77c@nxp.com> (raw)

PERFORMANCE_NOTIFY_LIMITS and PERFORMANCE_NOTIFY_LEVEL are optional
commands. If use these commands on platforms that not support the two,
there is error log:
  SCMI Notifications - Failed to ENABLE events for key:13000008 !
  scmi-cpufreq scmi_dev.4: failed to register for limits change notifier for domain 8

If platforms not support perf notification, saving some cpu cycles
by introducing notify_supported ops.

While at here, patch 1 is a typo fix when doing the patchset.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (3):
      firmware: arm_scmi: Fix typo for scmi_perf_proto_ops
      firmware: arm_scmi: perf: Add notify_supported for scmi_perf_proto_ops
      cpufreq: scmi-cpufreq: Enable perf limits notification only supported

 drivers/cpufreq/scmi-cpufreq.c   | 25 ++++++++++++++++++-------
 drivers/firmware/arm_scmi/perf.c | 37 +++++++++++++++++++------------------
 include/linux/scmi_protocol.h    |  5 ++++-
 3 files changed, 41 insertions(+), 26 deletions(-)
---
base-commit: 19a60293b9925080d97f22f122aca3fc46dadaf9
change-id: 20250611-scmi-perf-a0ded8a5a303

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


             reply	other threads:[~2025-06-11  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-11  7:52 Peng Fan (OSS) [this message]
2025-06-11  7:52 ` [PATCH 1/3] firmware: arm_scmi: Fix typo for scmi_perf_proto_ops Peng Fan (OSS)
2025-06-11  7:52 ` [PATCH 2/3] firmware: arm_scmi: perf: Add notify_supported " Peng Fan (OSS)
2025-06-11  7:52 ` [PATCH 3/3] cpufreq: scmi-cpufreq: Enable perf limits notification only supported Peng Fan (OSS)
2025-06-11 12:17 ` [PATCH 0/3] firmware: arm_scmi: perf/cpufreq: Enable notification only if supported by platform Sudeep Holla
2025-06-11 13:33   ` Cristian Marussi
2025-06-12  3:43     ` Peng Fan
2025-06-12 10:31       ` Cristian Marussi
2025-06-13  9:50         ` Peng Fan
2025-06-17 13:41           ` Cristian Marussi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250611-scmi-perf-v1-0-df2b548ba77c@nxp.com \
    --to=peng.fan@oss.nxp.com \
    --cc=arm-scmi@vger.kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=rafael@kernel.org \
    --cc=sudeep.holla@arm.com \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox