<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/ofw, 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-08-22T09:11:29Z</updated>
<entry>
<title>Adjust function definition in ofw to avoid clang 15 warning</title>
<updated>2022-08-22T09:11:29Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2022-08-11T12:02:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=36e31c79cea1684198706b9222ebe78346f39b2b'/>
<id>urn:sha1:36e31c79cea1684198706b9222ebe78346f39b2b</id>
<content type='text'>
With clang 15, the following -Werror warning is produced:

    sys/dev/ofw/openfirm.c:826:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    OF_enter()
            ^
             void

This is because OF_enter() and OF_exit are declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ec666d187d0dc44d105a95b5b25b47607236a051)
</content>
</entry>
<entry>
<title>ofw_cpu: Make ext_resources non-optional for arm* and riscv</title>
<updated>2022-05-16T11:45:38Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2022-01-11T10:08:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8d672e8449c877b2772d5f7b0a3dc1b7123ad226'/>
<id>urn:sha1:8d672e8449c877b2772d5f7b0a3dc1b7123ad226</id>
<content type='text'>
EXT_RESOURCES have been introduced in 12-CURRENT and all supported
releases have it enabled in their kernel config.
For RISC-V it was always enabled.

MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D33835

(cherry picked from commit 02398e581d4511bd1c5e8ffad5155f9b9684b4b8)
</content>
</entry>
<entry>
<title>Add serial-number to hw.fdt sysctl area if found in fdt.</title>
<updated>2022-03-09T15:28:28Z</updated>
<author>
<name>Mike Karels</name>
<email>karels@FreeBSD.org</email>
</author>
<published>2022-02-23T20:42:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0d9004101dbd9637a6b7e1b876f8eece489a5cf'/>
<id>urn:sha1:c0d9004101dbd9637a6b7e1b876f8eece489a5cf</id>
<content type='text'>
Add serial-number sysctl if that fdt property exists and is a printable
string.  While here, ensure that the hw.fdt sysctl values fit in the
buffers provided so that they will be NUL-terminated.  Tested on
Raspberry Pi 3B+ and 4.

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

(cherry picked from commit b8b0c65e8a43cab95b97e28d3e3d73fc7d9c0a5e)
</content>
</entry>
<entry>
<title>fdt: Expose the model, compatible and freebsd dts brandind as sysctl</title>
<updated>2022-03-09T15:27:28Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2021-07-17T15:19:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=caa14c7b600d3d15042ada340665f7b0aed4b415'/>
<id>urn:sha1:caa14c7b600d3d15042ada340665f7b0aed4b415</id>
<content type='text'>
This make it easier for script to get the hardware on which they are running.

Sponsored by:	Diablotin Systems
Differential Revision:	  https://reviews.freebsd.org/D31205
Reviewed by: 		  imp
Should be ok on powerpc:  jhibbits (over irc)

(cherry picked from commit 50e0dc0c4b46ee62b898ce2d92e52be4f77383d9)
</content>
</entry>
<entry>
<title>Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights</title>
<updated>2022-02-08T20:00:55Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2021-08-08T14:38:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94e6d1448863a8ccccec3c7e4e501761803cce0e'/>
<id>urn:sha1:94e6d1448863a8ccccec3c7e4e501761803cce0e</id>
<content type='text'>
These ones were unambiguous cases where the Foundation was the only
listed copyright holder (in the associated license block).

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 9feff969a01044c3083b552f06f7eb6416bc0524)
</content>
</entry>
<entry>
<title>Fix error value returned by ofw_bus_gen_get_node().</title>
<updated>2022-01-20T10:00:55Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2021-06-24T09:56:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=57dd17dd60e7bb618ab2979df2d580559fcf3729'/>
<id>urn:sha1:57dd17dd60e7bb618ab2979df2d580559fcf3729</id>
<content type='text'>
By definition ofw_bus_get_node() should  consistently return -1 when there
is no associated OF node.

MFC after:	4 weeks
Discussed with:	nwhitehorn
Analyzed in: 	https://reviews.freebsd.org/D30761

(cherry picked from commit 3eae4e106ac7222364fc9dc8c3d35d4ad8c5293a)
</content>
</entry>
<entry>
<title>Suppress D_NEEDGIANT warnings for some drivers</title>
<updated>2021-06-14T20:25:14Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2021-06-06T20:40:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5346c8bc543a09932b168f459e8a7a601af4bfdc'/>
<id>urn:sha1:5346c8bc543a09932b168f459e8a7a601af4bfdc</id>
<content type='text'>
During boot we warn that the kbd and openfirm drivers are Giant-locked
and may be deleted.  Generally, the warning helps signal that certain
old drivers are not being maintained and are subject to removal, but
this doesn't really apply to certain drivers which are harder to
detangle from Giant.

Add a flag, D_GIANTOK, that devices can specify to suppress the
misleading warning.  Use it in the kbd and openfirm drivers.

Reviewed by:	imp, jhb
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit fbeb4ccac990fdb3bc26ab925a3ca8e7d2f89721)
</content>
</entry>
<entry>
<title>openpromio(4): remove obsolete pseudo device driver</title>
<updated>2021-01-16T22:53:13Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2021-01-16T11:49:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=daad26e5fc256767d6b97f07a519e765f1664f69'/>
<id>urn:sha1:daad26e5fc256767d6b97f07a519e765f1664f69</id>
<content type='text'>
It's unused since 58aa35d42975c298ca0adba705c042596303c9f5 and r357455
respectively and should have gone along with these.
</content>
</entry>
<entry>
<title>[PowerPC] Allow traversal of oversize OF properties.</title>
<updated>2020-11-13T16:49:41Z</updated>
<author>
<name>Brandon Bergren</name>
<email>bdragon@FreeBSD.org</email>
</author>
<published>2020-11-13T16:49:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=26869ad14c70306313405029229a1e2fd94510cd'/>
<id>urn:sha1:26869ad14c70306313405029229a1e2fd94510cd</id>
<content type='text'>
In standards such as LoPAPR, property names in excess of the usual 31
characters exist.

This breaks property traversal.

While in IEEE 1275-1994, nextprop is defined explicitly to work with a
32-byte region of memory, using a larger buffer should be fine. There is
actually no way to pass a buffer length to the nextprop call in the OF
client interface, so SLOF actually just blindly overflows the buffer.

So we have to defensively make the buffer larger, to avoid memory
corruption when reading out long properties on live OF systems.

Note also that on real-mode OF, things are pretty tight because we are
allocating against a static bounce buffer in low memory, so we can't just
use a huge buffer to work around this without it being wasteful of our
limited amount of 32-bit physical memory.

This allows a patched ofwdump to operate properly on SLOF (i.e. pseries)
systems, as well as any other PowerPC systems with overlength properties.

Reviewed by:	jhibbits
MFC after:	2 weeks
Sponsored by:	Tag1 Consulting, Inc.
Differential Revision:	https://reviews.freebsd.org/D26669
</content>
</entry>
<entry>
<title>ofw: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T22:01:53Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T22:01:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f9874fbbf177e0284f8c65c050a51b40e35be4de'/>
<id>urn:sha1:f9874fbbf177e0284f8c65c050a51b40e35be4de</id>
<content type='text'>
</content>
</entry>
</feed>
