mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lukasz Luba <lukasz.luba@arm.com>
To: Cristian Marussi <cristian.marussi@arm.com>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com,
	Jonathan.Cameron@Huawei.com
Subject: Re: [PATCH v5 00/13] SCMI Notifications Core Support
Date: Wed, 18 Mar 2020 09:01:55 +0000	[thread overview]
Message-ID: <e51598b5-2c7b-56f2-4426-9cce3d5d3d52@arm.com> (raw)
In-Reply-To: <20200316150334.47463-1-cristian.marussi@arm.com>

Hi Cristian,

On 3/16/20 3:03 PM, Cristian Marussi wrote:
> Hi all,
> 
> this series wants to introduce SCMI Notification Support, built on top of
> the standard Kernel notification chain subsystem.
> 
> At initialization time each SCMI Protocol takes care to register with the
> new SCMI notification core the set of its own events which it intends to
> support.
> 
> Using the API exposed via scmi_handle.notify_ops a Kernel user can register
> its own notifier_t callback (via a notifier_block as usual) against any
> registered event as identified by the tuple:
> 
> 		(proto_id, event_id, src_id)
> 
> where src_id represents a generic source identifier which is protocol
> dependent like domain_id, performance_id, sensor_id and so forth.
> (users can anyway do NOT provide any src_id, and subscribe instead to ALL
>   the existing (if any) src_id sources for that proto_id/evt_id combination)
> 
> Each of the above tuple-specified event will be served on its own dedicated
> blocking notification chain, dynamically allocated on-demand when at least
> one user has shown interest on that event.
> 
> Upon a notification delivery all the users' registered notifier_t callbacks
> will be in turn invoked and fed with the event_id as @action param and a
> generated custom per-event struct _report as @data param.
> (as in include/linux/scmi_protocol.h)
> 
> The final step of notification delivery via users' callback invocation is
> instead delegated to a pool of deferred workers (Kernel cmwq): each
> SCMI protocol has its own dedicated worker and dedicated queue to push
> events from the rx ISR to the worker.
> 

Could you give an example how the notification would be delivered
further to the upper layers, like hwmon driver, cpufreq or thermal?
For example, for sensor protocol which delivers event
SENSOR_TRIP_POINT_EVENT indicating a trip point was crossed.

Would it be possible for:
drivers/hwmon/scmi-hwmon.c
to get this temperature events like an interrupt?

I couldn't find it in the implementation of the registered handlers.

Regards,
Lukasz

  parent reply	other threads:[~2020-03-18  9:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-16 15:03 Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 01/13] firmware: arm_scmi: Add receive buffer support for notifications Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 02/13] firmware: arm_scmi: Update protocol commands and notification list Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 03/13] firmware: arm_scmi: Add notifications support in transport layer Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 04/13] firmware: arm_scmi: Add support for notifications message processing Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 05/13] firmware: arm_scmi: Add notification protocol-registration Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 06/13] firmware: arm_scmi: Add notification callbacks-registration Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 07/13] firmware: arm_scmi: Add notification dispatch and delivery Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 08/13] firmware: arm_scmi: Enable notification core Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 09/13] firmware: arm_scmi: Add Power notifications support Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 10/13] firmware: arm_scmi: Add Perf " Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 11/13] firmware: arm_scmi: Add Sensor " Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 12/13] firmware: arm_scmi: Add Reset " Cristian Marussi
2020-03-16 15:03 ` [PATCH v5 13/13] firmware: arm_scmi: Add Base " Cristian Marussi
2020-03-18  9:01 ` Lukasz Luba [this message]
2020-03-23  8:54   ` [PATCH v5 00/13] SCMI Notifications Core Support 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=e51598b5-2c7b-56f2-4426-9cce3d5d3d52@arm.com \
    --to=lukasz.luba@arm.com \
    --cc=Jonathan.Cameron@Huawei.com \
    --cc=cristian.marussi@arm.com \
    --cc=james.quinlan@broadcom.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sudeep.holla@arm.com \
    /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

all inboxes | Powered by JetHome®