|
Revision tags: release/12.4.0, release/13.1.0 |
|
| #
9894111e |
| 09-Feb-2022 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add __ffs64()
Add __ffs64() to linux/bitops.h needed by a driver.
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34225
(cherry picked from commit d17b78aa142d7
LinuxKPI: add __ffs64()
Add __ffs64() to linux/bitops.h needed by a driver.
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34225
(cherry picked from commit d17b78aa142d7c63490c7a2c3f202ef99fffad70)
show more ...
|
| #
2d0694b9 |
| 19-Dec-2021 |
Vladimir Kondratyev <[email protected]> |
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
(cherry picked from
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
(cherry picked from commit 307f78f3ed90a4145eeb2c8cc79bc95b2666f57a)
show more ...
|
|
Revision tags: release/12.3.0 |
|
| #
034475d6 |
| 01-Jul-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add sign_extend32()
Add sign_extend32() replicating the 64 version. This is needed by the rtw88 driver.
(cherry picked from commit ea4dea83944ac6334d31e0364dd674eda250adde)
|
| #
b5519f2c |
| 27-May-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add HWEIGHT32()
Add HWEIGHT32() macro needed by iwlwifi and while here add the 8/16/64 variants likewise.
Sponsored by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision:
LinuxKPI: add HWEIGHT32()
Add HWEIGHT32() macro needed by iwlwifi and while here add the 8/16/64 variants likewise.
Sponsored by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30501
(cherry picked from commit 4cc8a9da491d10f1b4bad6a50730b67dd5e899c7)
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
a399cf13 |
| 07-Dec-2020 |
Hans Petter Selasky <[email protected]> |
Prefer using the MIN() function macro over the min() inline function in the LinuxKPI. Linux defines min() to be a macro, while in FreeBSD min() is a static inline function clamping its arguments to "
Prefer using the MIN() function macro over the min() inline function in the LinuxKPI. Linux defines min() to be a macro, while in FreeBSD min() is a static inline function clamping its arguments to "unsigned int".
MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
show more ...
|
|
Revision tags: release/12.2.0 |
|
| #
74d3a635 |
| 11-Aug-2020 |
Hans Petter Selasky <[email protected]> |
Use atomic_clear_rel_long() to implement clear_bit_unlock() in the LinuxKPI after r363842.
Suggested by: alc@ MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
334680ab |
| 04-Aug-2020 |
Emmanuel Vadot <[email protected]> |
linuxkpi: Add clear_bit_unlock
This calls clear_bit and adds a memory barrier.
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.f
linuxkpi: Add clear_bit_unlock
This calls clear_bit and adds a memory barrier.
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25943
show more ...
|
|
Revision tags: release/11.4.0 |
|
| #
07fdea36 |
| 20-Apr-2020 |
Hans Petter Selasky <[email protected]> |
Allow test_bit() in the LinuxKPI to accept a const pointer.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
|
Revision tags: release/12.1.0, release/11.3.0 |
|
| #
884aaac6 |
| 13-Mar-2019 |
Hans Petter Selasky <[email protected]> |
Implement BITS_PER_TYPE() function macro in the LinuxKPI. Fix some style while at it.
Submitted by: Johannes Lundberg <[email protected]> MFC after: 1 week Sponsored by: Limelight Networks Spons
Implement BITS_PER_TYPE() function macro in the LinuxKPI. Fix some style while at it.
Submitted by: Johannes Lundberg <[email protected]> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
show more ...
|
|
Revision tags: release/12.0.0 |
|
| #
6402bc3d |
| 09-Aug-2018 |
Hans Petter Selasky <[email protected]> |
Use atomic_fcmpset_XXX() instead of atomic_cmpset_XXX() when possible in the LinuxKPI.
Suggested by: mjg @ MFC after: 1 week Sponsored by: Mellanox Technologies
|
|
Revision tags: release/11.2.0 |
|
| #
83630517 |
| 23-Mar-2018 |
Ed Maste <[email protected]> |
linuxkpi whitespace cleanup
Reviewed by: hselasky, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14807
|
| #
9bce524e |
| 04-Mar-2018 |
Hans Petter Selasky <[email protected]> |
Implement for_each_clear_bit() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies Sponsored by: Limelight Netw
Implement for_each_clear_bit() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
show more ...
|
| #
5d503e30 |
| 04-Mar-2018 |
Hans Petter Selasky <[email protected]> |
Implement GENMASK_ULL() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
|
|
Revision tags: release/10.4.0 |
|
| #
62bae5d4 |
| 18-Sep-2017 |
Hans Petter Selasky <[email protected]> |
The LinuxKPI atomics do not have acquire nor release semantics unless specified. Fix code to use READ_ONCE() and WRITE_ONCE() where appropriate.
Suggested by: kib @ MFC after: 1 week Sponsored by:
The LinuxKPI atomics do not have acquire nor release semantics unless specified. Fix code to use READ_ONCE() and WRITE_ONCE() where appropriate.
Suggested by: kib @ MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
|
Revision tags: release/11.1.0 |
|
| #
c9dd0b48 |
| 06-Apr-2017 |
Hans Petter Selasky <[email protected]> |
Cleanup the bitmap_xxx() functions in the LinuxKPI:
- Move all bitmap related functions from bitops.h to bitmap.h, similar to what Linux does.
- Apply some minor code cleanup and simplifications
Cleanup the bitmap_xxx() functions in the LinuxKPI:
- Move all bitmap related functions from bitops.h to bitmap.h, similar to what Linux does.
- Apply some minor code cleanup and simplifications to optimize the generated code when using static inline functions.
- Implement the following list of bitmap functions which are needed by drm-next and ibcore: - bitmap_find_next_zero_area_off() - bitmap_find_next_zero_area() - bitmap_or() - bitmap_and() - bitmap_xor()
- Add missing include directives to the qlnxe driver (davidcs@ has been notified)
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
3cfeca84 |
| 27-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Implement more bit operation functions in the LinuxKPI. Some minor whitespace nits while at it.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
797046ee |
| 24-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Implement BIT_ULL() macro in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
cffaf933 |
| 23-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Implement __test_and_clear_bit() and __test_and_set_bit() in the LinuxKPI.
The clang compiler will optimise these functions down to three AMD64 instructions if the bit argument is a constant during
Implement __test_and_clear_bit() and __test_and_set_bit() in the LinuxKPI.
The clang compiler will optimise these functions down to three AMD64 instructions if the bit argument is a constant during compilation.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
1e3db1de |
| 21-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Make the LinuxKPI task struct persistent accross system calls.
A set of helper functions have been added to manage the life of the LinuxKPI task struct. When an external system call or task is invok
Make the LinuxKPI task struct persistent accross system calls.
A set of helper functions have been added to manage the life of the LinuxKPI task struct. When an external system call or task is invoked, a check is made to create the task struct by demand. A thread destructor callback is registered to free the task struct when a thread exits to avoid memory leaks.
This change lays the ground for emulating the Linux kernel more closely which is a dependency by the code using the LinuxKPI APIs.
Add new dedicated td_lkpi_task field has been added to struct thread instead of abusing td_retval[1].
Fix some header file inclusions to make LINT kernel build properly after this change.
Bump the __FreeBSD_version to force a rebuild of all kernel modules.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
425da8eb |
| 23-May-2016 |
Hans Petter Selasky <[email protected]> |
Fix some data types and add "inline" keyword for __reg_op() function.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
83cfd834 |
| 23-May-2016 |
Hans Petter Selasky <[email protected]> |
Implement ror32() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
b5c54182 |
| 23-May-2016 |
Hans Petter Selasky <[email protected]> |
Add support for atomic_long_inc_not_zero() to the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
9ad5ce9d |
| 31-Mar-2016 |
Hans Petter Selasky <[email protected]> |
Fix bugs in currently unused bit searching loop.
MFC after: 3 days Sponsored by: Mellanox Technologies
|
|
Revision tags: release/10.3.0 |
|
| #
e2829794 |
| 26-Jan-2016 |
Hans Petter Selasky <[email protected]> |
Implement bitmap_weight() and bitmap_equal() for the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
8e7baabc |
| 03-Nov-2015 |
Hans Petter Selasky <[email protected]> |
Make all the LinuxKPI include files compile standalone.
Sponsored by: Mellanox Technologies
|