<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/psci, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>dev/psci: Check all compat strings</title>
<updated>2024-07-15T12:34:29+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2024-04-23T11:27:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1320b22f49b2385dc12505a93c3e2e34071d4eae'/>
<id>1320b22f49b2385dc12505a93c3e2e34071d4eae</id>
<content type='text'>
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

(cherry picked from commit f91e9401c2098ba56f43093ef9747d0b1f60f8eb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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

(cherry picked from commit f91e9401c2098ba56f43093ef9747d0b1f60f8eb)
</pre>
</div>
</content>
</entry>
<entry>
<title>psci: split off psci_reboot from psci_shutdown</title>
<updated>2024-03-16T15:14:47+00:00</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2021-07-09T15:01:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d463f7c7a726842dca50e87b79d401f5d09dd196'/>
<id>d463f7c7a726842dca50e87b79d401f5d09dd196</id>
<content type='text'>
Priority of psci_reboot set so that it is run after shutdown_panic is
executed.  This is to provide uniform experience with other platforms.

(cherry picked from commit 0f354b2b588b60e2ef119ff2f480f7905c5db587)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Priority of psci_reboot set so that it is run after shutdown_panic is
executed.  This is to provide uniform experience with other platforms.

(cherry picked from commit 0f354b2b588b60e2ef119ff2f480f7905c5db587)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add PSCI affinity info return values</title>
<updated>2023-09-25T08:41:15+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2023-03-16T12:16:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8753f9e7b2bc5e482608939fc07513e60b479846'/>
<id>8753f9e7b2bc5e482608939fc07513e60b479846</id>
<content type='text'>
These can be returned from the PSCI AFFINITY_INFO call. This is not
marked as optional so bhyve will need to implement it &amp; can use these
macros.

Sponsored by:	Arm Ltd

(cherry picked from commit 7d0b915919665cb43107b36ad103791515eade5b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These can be returned from the PSCI AFFINITY_INFO call. This is not
marked as optional so bhyve will need to implement it &amp; can use these
macros.

Sponsored by:	Arm Ltd

(cherry picked from commit 7d0b915919665cb43107b36ad103791515eade5b)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a psci macro to build a version value</title>
<updated>2023-09-25T08:41:15+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2023-03-16T12:14:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4401550f74ba50f34e9f443307d170c6b05ba62f'/>
<id>4401550f74ba50f34e9f443307d170c6b05ba62f</id>
<content type='text'>
Add PSCI_VER that takes a major and minor version and builds the value
returned by the firmware. This will be used by bhyve.

Sponsored by:	Arm Ltd

(cherry picked from commit e89be21854b3aa33efd2e06529a181343281659d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add PSCI_VER that takes a major and minor version and builds the value
returned by the firmware. This will be used by bhyve.

Sponsored by:	Arm Ltd

(cherry picked from commit e89be21854b3aa33efd2e06529a181343281659d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow psci.h to be used by userspace</title>
<updated>2023-09-25T08:41:15+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2023-03-16T12:08:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a2228dc7015344b4d8d532f75c3eb175c56ac513'/>
<id>a2228dc7015344b4d8d532f75c3eb175c56ac513</id>
<content type='text'>
Wrap parts of psci.h that aren't usable by userspace in _KERNEL checks.
This allows it to be used to implement PSCI and SMCCC by bhyve in
userspace.

Sponsored by:	Arm Ltd
Sponsored by:	Innovate UK
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 473ab212dc1f72c1765f112568237d229d4e0441)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Wrap parts of psci.h that aren't usable by userspace in _KERNEL checks.
This allows it to be used to implement PSCI and SMCCC by bhyve in
userspace.

Sponsored by:	Arm Ltd
Sponsored by:	Innovate UK
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 473ab212dc1f72c1765f112568237d229d4e0441)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:25+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3bc80996974a61a4223eae4c1ccd47b6ee32a48a'/>
<id>3bc80996974a61a4223eae4c1ccd47b6ee32a48a</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-23T17:43:20+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f8167e0404dab9ffeaca95853dd237ab7c587f82'/>
<id>f8167e0404dab9ffeaca95853dd237ab7c587f82</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in current:
(cherry picked from commit 95ee2897e98f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in current:
(cherry picked from commit 95ee2897e98f)
</pre>
</div>
</content>
</entry>
<entry>
<title>Make SMCCC usable by device drivers</title>
<updated>2023-05-15T10:55:36+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2022-06-04T11:13:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d42fa41bc2edfe0a6ffb49f79fcb2790a743ae4a'/>
<id>d42fa41bc2edfe0a6ffb49f79fcb2790a743ae4a</id>
<content type='text'>
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.

(cherry picked from commit 0600af1ff16041f15633b2263a8ad9525eecd2f1)
(cherry picked from commit 7ca55fcc541b375c83eaf75f0658b79f250c82fd)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

(cherry picked from commit 0600af1ff16041f15633b2263a8ad9525eecd2f1)
(cherry picked from commit 7ca55fcc541b375c83eaf75f0658b79f250c82fd)
</pre>
</div>
</content>
</entry>
<entry>
<title>psci: set psci_present as early as possible</title>
<updated>2022-11-02T04:11:09+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-10-27T03:46:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4a7fe8305e7729d8dd77de8517bf31f8f2fcb9a5'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge the common parts of the SMCCC handlers</title>
<updated>2022-09-21T09:45:52+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2022-08-22T17:09:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4a5202fdcf139d03bb2e9b4fb0c0c79e9597f12b'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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)
</pre>
</div>
</content>
</entry>
</feed>
