History log of /freebsd/sys/dev/firmware/arm/scmi.h (Results 1 – 25 of 29)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.3.0, release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3
# 5a54d768 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add sysctl transport properties

Expose as read-only the configured transport properties.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: htt

scmi: Add sysctl transport properties

Expose as read-only the configured transport properties.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47428
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# e478b805 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add optional asynchronous handling of replies

Add the core logic to handle the replies to pending command in an
asynchronous manner.

Tested on: Arm Morello Board
Reviewed by: andrew
Spon

scmi: Add optional asynchronous handling of replies

Add the core logic to handle the replies to pending command in an
asynchronous manner.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47426
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# 8f706629 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Refactor scmi_request internal logic

Split scmi_request internals into a TX and an RX phase, which will be
called, anyway, in sequence as before when a normal transmission is
requested.

No fu

scmi: Refactor scmi_request internal logic

Split scmi_request internals into a TX and an RX phase, which will be
called, anyway, in sequence as before when a normal transmission is
requested.

No functional change.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47425
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# f700da1c 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add helper to manipulate scmi_msg descriptors

Refactor allocation logic for scmi_req and introduce new helpers to be able
to obtain an scmi_msg reference to a freshly allocated request.

Teste

scmi: Add helper to manipulate scmi_msg descriptors

Refactor allocation logic for scmi_req and introduce new helpers to be able
to obtain an scmi_msg reference to a freshly allocated request.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47423
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# ba510513 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add devicetree transport properties

SCMI transport characteristics can be optionally described in the
devicetree to override the default build-time values.

Tested on: Arm Morello Board
R

scmi: Add devicetree transport properties

SCMI transport characteristics can be optionally described in the
devicetree to override the default build-time values.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47422
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# a14428c6 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Redefine max message payload size

The defined maximum payload size should not include header and status
field. Fix the definition accordingly, so that it matches the
definitions as can be foun

scmi: Redefine max message payload size

The defined maximum payload size should not include header and status
field. Fix the definition accordingly, so that it matches the
definitions as can be found in the Linux SCMI stack.
The semantic of this define is important since it will then be possible
to override such values from devicetree, like in Linux.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47421
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# c7582083 09-Jun-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Make transports report the effective length of the received messages

Once a message is received that fits into the RX buffer, update the
msg.rx_len field with the effective length of the messa

scmi: Make transports report the effective length of the received messages

Once a message is received that fits into the RX buffer, update the
msg.rx_len field with the effective length of the message received.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# d49ed360 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Make transports report the effective length of the received messages"

Revert to reapply series as some patches were incorrect versions

This reverts commit 9342829d578e26f10a5cbc26e2b9

Revert "scmi: Make transports report the effective length of the received messages"

Revert to reapply series as some patches were incorrect versions

This reverts commit 9342829d578e26f10a5cbc26e2b9e66cfd9864c4.

show more ...


# 3550c47a 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Redefine max message payload size"

Revert to reapply series as some patches were incorrect versions

This reverts commit f0216239492579022982d94e04090f1333fee5a5.


# 04a83b8b 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Add devicetree transport properties"

Revert to reapply series as some patches were incorrect versions

This reverts commit 103ea03e6713a0f3bb874472fbd9fd81e2278805.


# ed57f6e6 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Add helper to manipulate scmi_msg descriptors"

Revert to reapply series as some patches were incorrect versions

This reverts commit e887179d4bc032e79d0334371d613c5841989a41.


# b65172cb 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Refactor scmi_request internal logic"

Revert to reapply series as some patches were incorrect versions

This reverts commit 341d8fd90fa084d074059051478657cb45e53402.


# 35fee38c 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Add optional asynchronous handling of replies"

Revert to reapply series as some patches were incorrect versions

This reverts commit b802926b7b145d7cfe2465ac4e19f062a9eb6e6d.


# ea334b97 09-Jun-2025 Andrew Turner <andrew@FreeBSD.org>

Revert "scmi: Add sysctl transport properties"

Revert to reapply series as some patches were incorrect versions

This reverts commit e6d0edd2fe8c3c15faa7c9c66703efa007a5fbe1.


# e6d0edd2 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add sysctl transport properties

Expose as read-only the configured transport properties.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: htt

scmi: Add sysctl transport properties

Expose as read-only the configured transport properties.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47428
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# b802926b 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add optional asynchronous handling of replies

Add the core logic to handle the replies to pending command in an
asynchronous manner.

Tested on: Arm Morello Board
Reviewed by: andrew
Spon

scmi: Add optional asynchronous handling of replies

Add the core logic to handle the replies to pending command in an
asynchronous manner.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47426
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# 341d8fd9 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Refactor scmi_request internal logic

Split scmi_request internals into a TX and an RX phase, which will be
called, anyway, in sequence as before when a normal transmission is
requested.

No fu

scmi: Refactor scmi_request internal logic

Split scmi_request internals into a TX and an RX phase, which will be
called, anyway, in sequence as before when a normal transmission is
requested.

No functional change.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47425
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# e887179d 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add helper to manipulate scmi_msg descriptors

Refactor allocation logic for scmi_req and introduce new helpers to be able
to obtain an scmi_msg reference to a freshly allocated request.

Teste

scmi: Add helper to manipulate scmi_msg descriptors

Refactor allocation logic for scmi_req and introduce new helpers to be able
to obtain an scmi_msg reference to a freshly allocated request.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47423
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# 103ea03e 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add devicetree transport properties

SCMI transport characteristics can be optionally described in the
devicetree to override the default build-time values.

Tested on: Arm Morello Board
R

scmi: Add devicetree transport properties

SCMI transport characteristics can be optionally described in the
devicetree to override the default build-time values.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47422
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# f0216239 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Redefine max message payload size

The defined maximum payload size should not include header and status
field. Fix the definition accordingly, so that it matches the
definitions as can be foun

scmi: Redefine max message payload size

The defined maximum payload size should not include header and status
field. Fix the definition accordingly, so that it matches the
definitions as can be found in the Linux SCMI stack.
The semantic of this define is important since it will then be possible
to override such values from devicetree, like in Linux.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D47421
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


# 9342829d 23-Jan-2025 Cristian Marussi <cristian.marussi@arm.com>

scmi: Make transports report the effective length of the received messages

Once a message is received that fits into the RX buffer, update the
msg.rx_len field with the effective length of the messa

scmi: Make transports report the effective length of the received messages

Once a message is received that fits into the RX buffer, update the
msg.rx_len field with the effective length of the message received.

Tested on: Arm Morello Board
Reviewed by: andrew
Sponsored by: Arm Ltd
Pull Request: https://reviews.freebsd.org/D47420
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

show more ...


Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# a87dd741 23-Oct-2023 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add an SCMI VirtIO transport driver

Add an SCMI transport driver based on the virtio-scmi backend.

Reviewed by: andrew, bryanv
Sponsored by: Arm Ltd
Differential Revision: https://reviews.fre

scmi: Add an SCMI VirtIO transport driver

Add an SCMI transport driver based on the virtio-scmi backend.

Reviewed by: andrew, bryanv
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43048

show more ...


# 35f93203 11-Dec-2023 Cristian Marussi <cristian.marussi@arm.com>

scmi: Introduce a new SCMI API and port CLK SCMI driver to it

Expose new scmi_buf_get/put API methods to build and send messages;
command request descriptors are now pre-allocated when the SCMI core

scmi: Introduce a new SCMI API and port CLK SCMI driver to it

Expose new scmi_buf_get/put API methods to build and send messages;
command request descriptors are now pre-allocated when the SCMI core is
initialized and kept in a free list, instead of being allocated on the
stack of the caller of the SCMI request.

Dynamically allocated descriptors enable the SCMI core to keep around
and track outstanding transactions for as long as needed, outliving the
lifetime of the caller stack: this allows tracking of late or missing
replies and it will be needed when adding support for SCMI transports
that allows for more messages to be inflight concurrently.

Move the existing CLK SCMI driver to the new API.

Reviewed by: andrew
Tested on: Arm Morello Board
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43046

show more ...


# 3595f18f 07-Dec-2023 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add SCMI message tracking and centralize tx/rx logic

In order to be able to support also new, more parallel, SCMI transports
that by nature can allow multiple concurrent commands to be in-flig

scmi: Add SCMI message tracking and centralize tx/rx logic

In order to be able to support also new, more parallel, SCMI transports
that by nature can allow multiple concurrent commands to be in-flight,
pending a reply, we must be able to use the sequence number provided in
the SCMI messages to track the message status, matching commands and
replies while keeping track of timeouts and duplicates.

Add the needed message tracking machinery in the core SCMI stack and
move the residual common tx/rx logic from the specific transports to
the core SCMI stack, while adding one more interface to let the
transports customize ther behaviour.

Reviewed by: andrew
Tested on: Arm Morello Board
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43045

show more ...


# 403ca28c 07-Dec-2023 Cristian Marussi <cristian.marussi@arm.com>

scmi: Add new SCMI interfaces for init and message processing

Introduce a couple of new SCMI interface methods to allow centralized
initialization of transport-specific features and a couple of meth

scmi: Add new SCMI interfaces for init and message processing

Introduce a couple of new SCMI interface methods to allow centralized
initialization of transport-specific features and a couple of methods
to handle message reception from the SCMI core.

Move SCMI SMT related calls out of the core common SCMI code into the
transport specific layers Mailbox/SMC.

Make SCMI Mailbox/SMC transports use the new interface methods for
initialization and message reception.

Reviewed by: andrew
Tested on: Arm Morello Board
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43044

show more ...


12