<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/efidev, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-23T17:05:54Z</updated>
<entry>
<title>PHYS_TO_DMAP: Return a void * instead of a vm_offset_t</title>
<updated>2026-04-23T17:05:54Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-04-23T17:05:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fe3e92e6868dce2ed94c98428b8df1f27ed3ef63'/>
<id>urn:sha1:fe3e92e6868dce2ed94c98428b8df1f27ed3ef63</id>
<content type='text'>
Add a new PHYS_TO_DMAP_ADDR that still returns an address for use in
places that only need an address and not a pointer.

Effort:		CHERI upstreaming
Reviewed by:	kib
Sponsored by:	AFRL, DARPA
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2068
</content>
</entry>
<entry>
<title>efidev: add support for memory attribute</title>
<updated>2025-07-22T04:45:29Z</updated>
<author>
<name>ShengYi Hung</name>
<email>aokblast@FreeBSD.org</email>
</author>
<published>2025-07-19T17:07:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f840492b5b0d5c9e7d6d7d7dc25c260bc4d63ba2'/>
<id>urn:sha1:f840492b5b0d5c9e7d6d7d7dc25c260bc4d63ba2</id>
<content type='text'>
The EFI_PROPERTIES_TABLE has been deprecated in the UEFI specification.
It is now replaced by the EFI_MEMORY_ATTRIBUTES_TABLE, which provides
a new header and data format for describing memory region attributes.

Reviewed by:    imp
Approved by:    markj (mentor)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49998
</content>
</entry>
<entry>
<title>newbus: replace leftover device unit wildcards</title>
<updated>2025-06-21T02:57:45Z</updated>
<author>
<name>Ahmad Khalifa</name>
<email>vexeduxr@FreeBSD.org</email>
</author>
<published>2025-06-11T00:25:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b670c9bafc0e31c7609969bf374b2e80bdc00211'/>
<id>urn:sha1:b670c9bafc0e31c7609969bf374b2e80bdc00211</id>
<content type='text'>
Reviewed by:	imp, jhb
Approved by:	imp (mentor)
Differential Revision:	https://reviews.freebsd.org/D50913
</content>
</entry>
<entry>
<title>efi: Move to using efi_guid_t in ioctl definitions</title>
<updated>2025-05-01T17:53:40Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-05-01T17:53:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=20a860ae3a6541491e16858c1e21ee8187833339'/>
<id>urn:sha1:20a860ae3a6541491e16858c1e21ee8187833339</id>
<content type='text'>
Start using efi_guid_t instead of struct uuid in the ioctl
definitions. These are binarily the same, but have different
structure definitions. EFI prefers this form, and to allow more
sharing with EDK2, make this slight addition.

I've not really defined new IOCTLs for this. They are the same
size, but I have defined new function.

Also fix in-kernel uses of uuid to efi_guid_t for anything related to
ioctl.

Sponsored by:		Netflix
Reviewed by:		tsoome, kib
Differential Revision:	https://reviews.freebsd.org/D50057
</content>
</entry>
<entry>
<title>efi: Use EDK2 EFI_GUID instead of sturct uuid</title>
<updated>2025-05-01T17:53:28Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-05-01T17:53:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6366114c716f9dca099a4090269a700b94a6173f'/>
<id>urn:sha1:6366114c716f9dca099a4090269a700b94a6173f</id>
<content type='text'>
So, while struct uuid and EFI_GUID are quite similar (they are the same
size, they have the same binary representation, etc), they aren not
identical. Speciifcally, the UUID and GUID defines are slightly
different and can't be swapped one for the other. Start to use EFI_GUID
for all EFI tables. This will allow increased sharing with the boot
laoder that already uses EDK2 variants as well as using the possibility
to use the EDK2 headers we've already imported more easily.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D50037
</content>
</entry>
<entry>
<title>efirt: add a tunable to disable printing faults during EFIRT calls</title>
<updated>2025-04-02T20:21:56Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-31T18:38:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fd748c7d5b7aefbeda604403f203637b12ae89df'/>
<id>urn:sha1:fd748c7d5b7aefbeda604403f203637b12ae89df</id>
<content type='text'>
PR:	285797
Reported and tested by:	 Bakul Shah &lt;bakul@iitbombay.org&gt;
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49592
</content>
</entry>
<entry>
<title>sys: make the kernel metadata pointer global</title>
<updated>2025-01-24T21:25:51Z</updated>
<author>
<name>Ahmad Khalifa</name>
<email>ahmadkhalifa570@gmail.com</email>
</author>
<published>2024-08-22T19:05:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b72ae900d4348118829fe04abdc11b620930c30f'/>
<id>urn:sha1:b72ae900d4348118829fe04abdc11b620930c30f</id>
<content type='text'>
The way we got the kernel metadata pointer was by calling
preload_search_by_type with one of the following three: "elf kernel",
"elf32 kernel" and "elf64 kernel". Which one(s) we used wasn't
consistent though. Sometimes we would only try "elf kernel", and other
times we would try one of the latter two if the first failed. However,
the loader only ever sets "elf kernel" as the kernel type.

Now, the kmdp is a global, preload_kmdp, and it's initialized using
preload_initkmdp in machdep.c (or machdep_boot.c on arm/64).
preload_initkmdp takes a single boolean argument that tells us whether
not finding the kmdp is fatal or not.

Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1394
</content>
</entry>
<entry>
<title>efirt: use correct ABI for runtime EFI functions</title>
<updated>2024-12-25T02:00:09Z</updated>
<author>
<name>Ahmad Khalifa</name>
<email>ahmadkhalifa570@gmail.com</email>
</author>
<published>2024-12-21T21:09:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3e8f4a30594fad6784504d019613ad815b6c9dc5'/>
<id>urn:sha1:3e8f4a30594fad6784504d019613ad815b6c9dc5</id>
<content type='text'>
When calling EFI RT methods through no fault path.

MFC after:	1 week
</content>
</entry>
<entry>
<title>efirt: Fix the TDP_EFIRT assertion</title>
<updated>2024-11-22T14:19:37Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-11-22T14:19:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=07593d13fa2ad6fe4d962b7473c6020aef2a0414'/>
<id>urn:sha1:07593d13fa2ad6fe4d962b7473c6020aef2a0414</id>
<content type='text'>
Fixes:	a03957a706a0 ("efirt: mark dynamic region executing the RT code with the TDP_EFIRT flag")
</content>
</entry>
<entry>
<title>efirt: mark dynamic region executing the RT code with the TDP_EFIRT flag</title>
<updated>2024-11-21T22:05:28Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-11-21T19:40:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a03957a706a05bb0c2f627183b19d84f6d96dbb7'/>
<id>urn:sha1:a03957a706a05bb0c2f627183b19d84f6d96dbb7</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47694
</content>
</entry>
</feed>
