History log of /freebsd/sys/dev/psci/psci.c (Results 1 – 25 of 48)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 18250ec6 06-Dec-2024 John Baldwin <jhb@FreeBSD.org>

Replace calls to bus_generic_attach with bus_attach_children

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47675


Revision tags: release/14.2.0
# 3e19edca 14-Oct-2024 Andrew Turner <andrew@FreeBSD.org>

dev/psci: Make SMCCC into a real driver

This will be used by other drivers that manage SMCCC firmware services
to use as an attachment point.

Sponsored by: Arm Ltd
Differential Revision: https://re

dev/psci: Make SMCCC into a real driver

This will be used by other drivers that manage SMCCC firmware services
to use as an attachment point.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D46988

show more ...


Revision tags: release/13.4.0, release/14.1.0
# f91e9401 23-Apr-2024 Andrew Turner <andrew@FreeBSD.org>

dev/psci: Check all compat strings

When searching for the PSCI FDT node we only check a few compat strings.
Use the existing compat_data array to check all strings the driver may
attach to.

Sponsor

dev/psci: Check all compat strings

When searching for the PSCI FDT node we only check a few compat strings.
Use the existing compat_data array to check all strings the driver may
attach to.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D44913

show more ...


Revision tags: release/13.3.0, release/14.0.0, release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0
# 0f354b2b 09-Jul-2021 Andriy Gapon <avg@FreeBSD.org>

psci: split off psci_reboot from psci_shutdown

Priority of psci_reboot set so that it is run after shutdown_panic is
executed. This is to provide uniform experience with other platforms.

MFC after

psci: split off psci_reboot from psci_shutdown

Priority of psci_reboot set so that it is run after shutdown_panic is
executed. This is to provide uniform experience with other platforms.

MFC after: 3 weeks

show more ...


# 53670ee1 15-Feb-2024 Stephen J. Kiernan <stevek@FreeBSD.org>

psci: Add FDT node status check

Consider the PSCI missing if the FDT node status says it is not okay.

Reviewed by: andrew
Obtained from: Juniper Networks, Inc.
Differential Revision: https://review

psci: Add FDT node status check

Consider the PSCI missing if the FDT node status says it is not okay.

Reviewed by: andrew
Obtained from: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D43920

show more ...


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 7ca55fcc 29-Jan-2023 Andrew Turner <andrew@FreeBSD.org>

Only call SMCCC init on arm64

We don't build the smccc code on arm so don't call into it there.


# 0600af1f 04-Jun-2022 Andrew Turner <andrew@FreeBSD.org>

Make SMCCC usable by device drivers

To allow device drivers to call into SMCCC we need to initialise it
earlier. As it depends on PSCI, and that is detected via ACPI or FDT
move the call to smccc_in

Make SMCCC usable by device drivers

To allow device drivers to call into SMCCC we need to initialise it
earlier. As it depends on PSCI, and that is detected via ACPI or FDT
move the call to smccc_init to the PSCI driver.

Add a function for drivers to read the smccc version, or 0 if smccc
is not present.

show more ...


# 866beaa0 27-Oct-2022 Kyle Evans <kevans@FreeBSD.org>

psci: set psci_present as early as possible

psci_attach is way too late to provide the intended semantics for
psci_present. psci calls can be made immediately after psci_init(),
called way earlier

psci: set psci_present as early as possible

psci_attach is way too late to provide the intended semantics for
psci_present. psci calls can be made immediately after psci_init(),
called way earlier at SI_SUB_CPU + SI_ORDER_FIRST, and we need it to
be valid as early as we can possibly call a psci function.

This fixes booting RPi3+4 with the in-review spintable patch;
rpi3-psci-monitor patches the FDT to add a PSCI node, but it doesn't
patch each cpus' enable-method. Because of this, we would stall the
boot while enabling CPU 1 as we saw a valid looking enable-method and
"no" functional PSCI and attempted to use the spintable rather than
simply not starting secondary APs.

Fixes: 2218070b2c3c32 ("psci: finish psci_present implementation")
Reported by: karels

show more ...


# 395bee12 09-May-2022 John Baldwin <jhb@FreeBSD.org>

psci: Remove unused devclass arguments to DRIVER_MODULE.


# 2218070b 19-Mar-2022 Kyle Evans <kevans@FreeBSD.org>

psci: finish psci_present implementation

This was already declared in psci.h, but it was never defined/set. Do
this now, so we can use it to decide if enable-method in /cpus FDT nodes
should be ins

psci: finish psci_present implementation

This was already declared in psci.h, but it was never defined/set. Do
this now, so we can use it to decide if enable-method in /cpus FDT nodes
should be inspected later on. While we're here, convert it to a
boolean.

Reviewed by: andrew (slightly earlier version)
Differential Revision: https://reviews.freebsd.org/D34553

show more ...


Revision tags: release/13.0.0, release/12.2.0
# 0bc26186 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

psci: clean up empty lines in .c and .h files


Revision tags: release/11.4.0, release/12.1.0
# 61c1328e 13-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r352105 through r352307.


# 7722d8c7 13-Sep-2019 Ruslan Bukin <br@FreeBSD.org>

Add generic arm/arm64 secure-monitor SMCCC interface and switch
PSCI code to use it.

This interface will also be used by Intel Stratix 10 platform.

This was not tested on arm due to lack of PSCI-en

Add generic arm/arm64 secure-monitor SMCCC interface and switch
PSCI code to use it.

This interface will also be used by Intel Stratix 10 platform.

This was not tested on arm due to lack of PSCI-enabled arm hardware
lying around.

Reviewed by: andrew
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D21439

show more ...


Revision tags: release/11.3.0
# f9856d08 21-Mar-2019 Alan Somers <asomers@FreeBSD.org>

MFHead @345353


# 91e44013 19-Mar-2019 Michal Meloun <mmel@FreeBSD.org>

PSCI: Don't take missing implementation of psci get_version() as fatal.
Minimalistic PSCI implementation in U-Boot doesn't implement get_version()
method for some SoC. In this case, use PSCI version

PSCI: Don't take missing implementation of psci get_version() as fatal.
Minimalistic PSCI implementation in U-Boot doesn't implement get_version()
method for some SoC. In this case, use PSCI version declared by 'psci' node
in DT as fallback.

MFC after: 2 weeks

show more ...


Revision tags: release/12.0.0
# 85ab1415 06-Jul-2018 Emmanuel Vadot <manu@FreeBSD.org>

psci: Add \n at the end of printf

Add a \n at the end of the printf if no PSCI function was found otherwise
it mess up the console log.


Revision tags: release/11.2.0
# 9e8cb3d2 13-Jun-2018 Andrew Turner <andrew@FreeBSD.org>

Move psci_call to a header file so we can use it in other files to
communicate with the firmware.

Sponsored by: DARPA, AFRL


# 5add8393 13-Jun-2018 Andrew Turner <andrew@FreeBSD.org>

Add a handler for the PSCI_FEATURES function. This needs PSCI 1.0, so
check for this, returning an error if the version is too old.

Sponsored by: DARPA, AFRL


# 4493861b 13-Jun-2018 Andrew Turner <andrew@FreeBSD.org>

Find and cache the PSCI version on driver attach.

Sponsored by: DARPA, AFRL


# 0c38b2d3 12-Jun-2018 Andrew Turner <andrew@FreeBSD.org>

Rework PSCI so it only searches for the call function once.

This is in preperation for supporting newer smccc functions that also use
the same call method.

Reviewed by: manu
Differential Revision:

Rework PSCI so it only searches for the call function once.

This is in preperation for supporting newer smccc functions that also use
the same call method.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D15745

show more ...


# c79126f2 12-Jan-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r327624 through r327885.


# 8ab09f8a 09-Jan-2018 Andrew Turner <andrew@FreeBSD.org>

Add a function to find the PSCI version the firmware implements from
outside the PSCI driver.

MFC after: 1 week
Sponsored by: DARPA, AFRL


# c2c014f2 07-Nov-2017 Hans Petter Selasky <hselasky@FreeBSD.org>

Merge ^/head r323559 through r325504.


# 0a8f81bc 22-Oct-2017 Enji Cooper <ngie@FreeBSD.org>

MFhead@r324837

While here, diff reduce some of the changes in sys/boot by moving
MK_COVERAGE=no to sys/boot/Makefile.inc .


12