<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/psci, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-11-02T04:11:09Z</updated>
<entry>
<title>psci: set psci_present as early as possible</title>
<updated>2022-11-02T04:11:09Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-10-27T03:46:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4a7fe8305e7729d8dd77de8517bf31f8f2fcb9a5'/>
<id>urn:sha1:4a7fe8305e7729d8dd77de8517bf31f8f2fcb9a5</id>
<content type='text'>
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

(cherry picked from commit 866beaa0aa95deeba467db3dcb605ba3a5048a5b)
</content>
</entry>
<entry>
<title>Merge the common parts of the SMCCC handlers</title>
<updated>2022-09-21T09:45:52Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2022-08-22T17:09:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4a5202fdcf139d03bb2e9b4fb0c0c79e9597f12b'/>
<id>urn:sha1:4a5202fdcf139d03bb2e9b4fb0c0c79e9597f12b</id>
<content type='text'>
To simplify adding new handlers merge the common parts of the functions
used to call into the arm SMCCC firmware.

Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36297

(cherry picked from commit 48a7e53db78293ba2723cecfb3a3d5d23ea8e44d)
</content>
</entry>
<entry>
<title>psci: finish psci_present implementation</title>
<updated>2022-04-25T00:06:23Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-03-19T03:03:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2f2eb7f1180f6c63163c8acf44a4322a7c2075bb'/>
<id>urn:sha1:2f2eb7f1180f6c63163c8acf44a4322a7c2075bb</id>
<content type='text'>
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)

(cherry picked from commit 2218070b2c3c32b1574f3f3b2d0579b2d4826554)
</content>
</entry>
<entry>
<title>psci: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T21:58:29Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T21:58:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0bc261868af8b66aec6a2d29414cb28805a5b43d'/>
<id>urn:sha1:0bc261868af8b66aec6a2d29414cb28805a5b43d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add generic arm/arm64 secure-monitor SMCCC interface and switch</title>
<updated>2019-09-13T15:56:33Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2019-09-13T15:56:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7722d8c7c0820593c58a381f76c16cd8798d534f'/>
<id>urn:sha1:7722d8c7c0820593c58a381f76c16cd8798d534f</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>PSCI: Don't take missing implementation of psci get_version() as fatal.</title>
<updated>2019-03-19T15:42:11Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2019-03-19T15:42:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=91e440136470b063f99af67a5150aab80f19d46e'/>
<id>urn:sha1:91e440136470b063f99af67a5150aab80f19d46e</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fix a typo on the PSCI smc call wrapper.</title>
<updated>2018-08-14T13:56:49Z</updated>
<author>
<name>Luiz Otavio O Souza</name>
<email>loos@FreeBSD.org</email>
</author>
<published>2018-08-14T13:56:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=217643e7da740fbe3d400c35b71d27a1630674a6'/>
<id>urn:sha1:217643e7da740fbe3d400c35b71d27a1630674a6</id>
<content type='text'>
Looks good from:	andrew
Sponsored by:	Rubicon Communications, LLC (Netgate)
</content>
</entry>
<entry>
<title>Use int for the pcpu_ssbd argument. This is included from userland and may</title>
<updated>2018-07-31T15:08:02Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2018-07-31T15:08:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=100a6d1905b1bb510020e6fe3a535ebf5fc395e8'/>
<id>urn:sha1:100a6d1905b1bb510020e6fe3a535ebf5fc395e8</id>
<content type='text'>
not include the needed headers to get the bool definition.

Reported by:	manu
Pointy hat to:	andrew
Sponsored by:	DARPA, AFRL
</content>
</entry>
<entry>
<title>Implement the SSBD (CVE-2018-3639) workaround on arm64</title>
<updated>2018-07-31T12:53:27Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2018-07-31T12:53:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0594061ee6fbd63d428e70cab4c82171f87f7604'/>
<id>urn:sha1:0594061ee6fbd63d428e70cab4c82171f87f7604</id>
<content type='text'>
This calls into the Arm Trusted Firmware to enable and disable the
workaround for the Speculative Store Bypass Disable (SSBD) issue, also
known as Spectre Variant 4.

As this may have a large performance overhead, and how exploitable SSBD is
is unknown we follow the Linux lead of allowing the administrator to select
between always on, always off, or only enabled in the kernel, with the
latter being the default.

PR:		228955
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D15819
</content>
</entry>
<entry>
<title>psci: Add \n at the end of printf</title>
<updated>2018-07-06T17:39:48Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2018-07-06T17:39:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=85ab1415fff6611bffefe1fc95c49f85324f1025'/>
<id>urn:sha1:85ab1415fff6611bffefe1fc95c49f85324f1025</id>
<content type='text'>
Add a \n at the end of the printf if no PSCI function was found otherwise
it mess up the console log.
</content>
</entry>
</feed>
