| #
79b05e7f
|
| 07-Sep-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add tag support to radix tree
The tag is used to perform lookup in a different way.
New functions were introduced: * to set, check and clear a tag * to walk through a radix tree based on
linuxkpi: Add tag support to radix tree
The tag is used to perform lookup in a different way.
New functions were introduced: * to set, check and clear a tag * to walk through a radix tree based on a given tag
Furthermore, the `radix_tree_delete()` function was modified to clear tags on deletion.
The amdgpu DRM driver started to use this in Linux 6.10.
While here, the `radix_tree_gang_lookup()` function was added because it is very close to `radix_tree_gang_lookup_tag()`, but it is not used by the DRM drivers as of this commit.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54503
show more ...
|
| #
4c89b333
|
| 07-Sep-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `radix_tree_deref_slot()`
We don't do reference counting, we only dereference the pointer and retunr the value.
The amdgpu DRM driver started to use it in Linux 6.10.
Reviewed by: bz
linuxkpi: Add `radix_tree_deref_slot()`
We don't do reference counting, we only dereference the pointer and retunr the value.
The amdgpu DRM driver started to use it in Linux 6.10.
Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54502
show more ...
|
| #
cf39b51d
|
| 07-Sep-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Take const root in read-only radix tree functions
This is a preparation step for a future addition to this file. This is also closer to what Linux does.
Reviewed by: emaste Sponsored by:
linuxkpi: Take const root in read-only radix tree functions
This is a preparation step for a future addition to this file. This is also closer to what Linux does.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation
show more ...
|
| #
2cd53241
|
| 21-Dec-2024 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes
[Why] Some files in DRM rely on namespace pollution: they use the <linux/rcupdate.h> API without including it explicitly.
[How] Reproduce
linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes
[Why] Some files in DRM rely on namespace pollution: they use the <linux/rcupdate.h> API without including it explicitly.
[How] Reproduce the Linux chain of includes even if it means nothing on FreeBSD. This allows consumers of <linux/idr.h> to "inherit" <linux/rcupdate.h> API.
Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48741
show more ...
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
307f78f3
|
| 19-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
|
| #
440cec3f
|
| 12-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
e53daa1d
|
| 07-Aug-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r363989 through r364034.
|
| #
6b839ff4
|
| 07-Aug-2020 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement radix_tree_store() in the LinuxKPI for use with the coming extensible arrays implementation.
While at it add some more comments explaining the current radix_tree_insert() function and make
Implement radix_tree_store() in the LinuxKPI for use with the coming extensible arrays implementation.
While at it add some more comments explaining the current radix_tree_insert() function and make sure to clean the root node when the radix tree reaches the maximum height. This can happen if the index passed is too big when the tree is empty.
The radix_tree_store() function is basically a copy of the radix_tree_insert() function with some added functionality.
The radix_tree_store() function is local to FreeBSD and does not yet exist in Linux.
Reviewed by: kib MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
4c89b333
|
| 07-Sep-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `radix_tree_deref_slot()`
We don't do reference counting, we only dereference the pointer and retunr the value.
The amdgpu DRM driver started to use it in Linux 6.10.
Reviewed by: bz
linuxkpi: Add `radix_tree_deref_slot()`
We don't do reference counting, we only dereference the pointer and retunr the value.
The amdgpu DRM driver started to use it in Linux 6.10.
Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54502
show more ...
|
| #
cf39b51d
|
| 07-Sep-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Take const root in read-only radix tree functions
This is a preparation step for a future addition to this file. This is also closer to what Linux does.
Reviewed by: emaste Sponsored by:
linuxkpi: Take const root in read-only radix tree functions
This is a preparation step for a future addition to this file. This is also closer to what Linux does.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation
show more ...
|
| #
2cd53241
|
| 21-Dec-2024 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes
[Why] Some files in DRM rely on namespace pollution: they use the <linux/rcupdate.h> API without including it explicitly.
[How] Reproduce
linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes
[Why] Some files in DRM rely on namespace pollution: they use the <linux/rcupdate.h> API without including it explicitly.
[How] Reproduce the Linux chain of includes even if it means nothing on FreeBSD. This allows consumers of <linux/idr.h> to "inherit" <linux/rcupdate.h> API.
Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48741
show more ...
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
307f78f3
|
| 19-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
|
| #
440cec3f
|
| 12-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
e53daa1d
|
| 07-Aug-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r363989 through r364034.
|
| #
6b839ff4
|
| 07-Aug-2020 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement radix_tree_store() in the LinuxKPI for use with the coming extensible arrays implementation.
While at it add some more comments explaining the current radix_tree_insert() function and make
Implement radix_tree_store() in the LinuxKPI for use with the coming extensible arrays implementation.
While at it add some more comments explaining the current radix_tree_insert() function and make sure to clean the root node when the radix tree reaches the maximum height. This can happen if the index passed is too big when the tree is empty.
The radix_tree_store() function is basically a copy of the radix_tree_insert() function with some added functionality.
The radix_tree_store() function is local to FreeBSD and does not yet exist in Linux.
Reviewed by: kib MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
6fad8d17
|
| 01-Jun-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement radix_tree_iter_delete() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
|
| #
ead15282
|
| 18-Feb-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement support for radix_tree_for_each_slot() and radix_tree_exception() in the LinuxKPI and use unsigned long type for the radix tree index.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
8e7baabc
|
| 03-Nov-2015 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Make all the LinuxKPI include files compile standalone.
Sponsored by: Mellanox Technologies
|
| #
8d59ecb2
|
| 29-Oct-2015 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Finish process of moving the LinuxKPI module into the default kernel build.
- Move all files related to the LinuxKPI into sys/compat/linuxkpi and its subfolders. - Update sys/conf/files and some M
Finish process of moving the LinuxKPI module into the default kernel build.
- Move all files related to the LinuxKPI into sys/compat/linuxkpi and its subfolders. - Update sys/conf/files and some Makefiles to use new file locations. - Added description of COMPAT_LINUXKPI to sys/conf/NOTES which in turn adds the LinuxKPI to all LINT builds. - The LinuxKPI can be added to the kernel by setting the COMPAT_LINUXKPI option. The OFED kernel option no longer builds the LinuxKPI into the kernel. This was done to keep the build rules for the LinuxKPI in sys/conf/files simple. - Extend the LinuxKPI module to include support for USB by moving the Linux USB compat from usb.ko to linuxkpi.ko. - Bump the FreeBSD_version. - A universe kernel build has been done.
Reviewed by: np @ (cxgb and cxgbe related changes only) Sponsored by: Mellanox Technologies
show more ...
|
| #
382d6beb
|
| 20-Oct-2015 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Move location of RCS keyword according to style.
Suggested by: jhb @ Sponsored by: Mellanox Technologies
|
| #
77320fe8
|
| 20-Oct-2015 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add missing FreeBSD RCS keyword and SVN properties.
Sponsored by: Mellanox Technologies
|
| #
c7818b48
|
| 27-Aug-2014 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
- Update the OFED Linux Emulation layer as a preparation for a hardware driver update from Mellanox Technologies. - Remove empty files from the OFED Linux Emulation layer. - Fix compile warnings rela
- Update the OFED Linux Emulation layer as a preparation for a hardware driver update from Mellanox Technologies. - Remove empty files from the OFED Linux Emulation layer. - Fix compile warnings related to printf() and the "%lld" and "%llx" format specifiers. - Add some missing 2-clause BSD copyrights. - Add "Mellanox Technologies, Ltd." to list of copyright holders. - Add some new compatibility files. - Fix order of uninit in the mlx4ib module to avoid crash at unload using the new module_exit_order() function.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
aa0a1e58
|
| 21-Mar-2011 |
Jeff Roberson <jeff@FreeBSD.org> |
- Merge in OFED 1.5.3 from projects/ofed/head
|