|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
| #
57695c79 |
| 25-May-2019 |
Johannes Lundberg <[email protected]> |
LinuxKPI: Revert MFC of r347892
Revert until we can figure out how to keep compatibility with drm-kmod ports between 12.0 and 12-STABLE/12.1.
|
| #
154337d5 |
| 25-May-2019 |
Johannes Lundberg <[email protected]> |
MFC r347892: LinuxKPI: Finalize import of seq_file.
seq_file.h and linux_seq_file.c was imported form ports earlier but linux_seq_file.c was never compiled in with the module. With this commit base
MFC r347892: LinuxKPI: Finalize import of seq_file.
seq_file.h and linux_seq_file.c was imported form ports earlier but linux_seq_file.c was never compiled in with the module. With this commit base seq_file will replace ports seq_file and it required a few modifications to not break functionality and build.
Reviewed by: hps Approved by: imp (mentor), hps
show more ...
|
|
Revision tags: release/12.0.0 |
|
| #
711db39f |
| 01-Nov-2018 |
Hans Petter Selasky <[email protected]> |
MFC r339924: Implement the dump_stack() function in the LinuxKPI.
Approved by: re (gjb) Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
|
|
Revision tags: release/11.2.0, release/10.4.0, release/11.1.0 |
|
| #
a00230f6 |
| 26-Jun-2017 |
Mark Johnston <[email protected]> |
Sort SRCS.
MFC after: 1 week
|
| #
9ea3e141 |
| 26-Jun-2017 |
Mark Johnston <[email protected]> |
Implement parts of the hrtimer API in the LinuxKPI.
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D11359
|
| #
46565964 |
| 09-Jun-2017 |
Mark Johnston <[email protected]> |
Augment wait queue support in the LinuxKPI.
In particular: - Don't evaluate event conditions with a sleepqueue lock held, since such code may attempt to acquire arbitrary locks. - Fix the return v
Augment wait queue support in the LinuxKPI.
In particular: - Don't evaluate event conditions with a sleepqueue lock held, since such code may attempt to acquire arbitrary locks. - Fix the return value for wait_event_interruptible() in the case that the wait is interrupted by a signal. - Implement wait_on_bit_timeout() and wait_on_atomic_t(). - Implement some functions used to test for pending signals. - Implement a number of wait_event_*() variants and unify the existing implementations. - Unify the mechanism used by wait_event_*() and schedule() to put the calling thread to sleep.
This is required to support updated DRM drivers. Thanks to hselasky for finding and fixing a number of bugs in the original revision.
Reviewed by: hselasky MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10986
show more ...
|
| #
9760ac0a |
| 09-Mar-2017 |
Hans Petter Selasky <[email protected]> |
Implement support for mutexes with deadlock avoidance in the LinuxKPI.
When locking a mutex and deadlock is detected the first mutex lock call that sees the deadlock will return -EDEADLK .
MFC afte
Implement support for mutexes with deadlock avoidance in the LinuxKPI.
When locking a mutex and deadlock is detected the first mutex lock call that sees the deadlock will return -EDEADLK .
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
14c5024d |
| 08-Mar-2017 |
Hans Petter Selasky <[email protected]> |
Cleanup the LinuxKPI slab implementation.
Put large functions into linux_slab.c instead of declaring them static inline.
Add support for more memory allocation wrappers like kmalloc_array() and __v
Cleanup the LinuxKPI slab implementation.
Put large functions into linux_slab.c instead of declaring them static inline.
Add support for more memory allocation wrappers like kmalloc_array() and __vmalloc().
Make sure either the M_WAITOK or the M_NOWAIT flag is set and mask away unused memory allocation flags before calling FreeBSD's malloc() routine.
Move kmalloc_node() definition to slab.h where it belongs.
Implement support for the SLAB_DESTROY_BY_RCU feature when creating a kmem_cache which basically means kmem_cache memory is freed using call_rcu().
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
ca2ad6bd |
| 07-Mar-2017 |
Hans Petter Selasky <[email protected]> |
LinuxKPI workqueue cleanup.
This change makes the workqueue implementation behave more like in Linux, both functionality wise and structure wise.
All workqueue code has been moved to linux_work.c
LinuxKPI workqueue cleanup.
This change makes the workqueue implementation behave more like in Linux, both functionality wise and structure wise.
All workqueue code has been moved to linux_work.c
Add an atomic based statemachine to the work_struct to ensure proper operation. Prior to this change struct_work was directly mapped to a FreeBSD task. When a taskqueue has multiple threads the same task may end up being executed on more than one worker thread simultaneously. This might cause problems with code coming from Linux, which expects serial behaviour, similar to Linux tasklets.
Move all global workqueue function names into the linux_xxx domain to avoid symbol name clashes in the future.
Implement a few more workqueue related functions and macros.
Create two multithreaded taskqueues for the LinuxKPI during module load, one for time-consuming callbacks and one for non-time consuming callbacks.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
193d9e76 |
| 04-Mar-2017 |
Enji Cooper <[email protected]> |
sys/modules: normalize .CURDIR-relative paths to SRCTOP
This simplifies make output/logic
Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon
|
| #
1cdefd08 |
| 22-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Optimise unmapped LinuxKPI page allocations.
When allocating unmapped pages, take advantage of the direct map on AMD64 to get the virtual address corresponding to a page. Else all pages allocated mu
Optimise unmapped LinuxKPI page allocations.
When allocating unmapped pages, take advantage of the direct map on AMD64 to get the virtual address corresponding to a page. Else all pages allocated must be mapped because sometimes the virtual address of a page is requested.
Move all page allocation and deallocation code into an own C-file.
Add support for GFP_DMA32, GFP_KERNEL, GFP_ATOMIC and __GFP_ZERO allocation flags.
Make a clear separation between mapped and unmapped allocations.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
1a01b4e5 |
| 21-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Replace dummy implementation of RCU in the LinuxKPI with one based on the in-kernel concurrency kit's ck_epoch API. Factor RCU hlist_xxx() functions into own rculist.h header file.
Obtained from: k
Replace dummy implementation of RCU in the LinuxKPI with one based on the in-kernel concurrency kit's ck_epoch API. Factor RCU hlist_xxx() functions into own rculist.h header file.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
ef23481a |
| 21-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Add support for LinuxKPI tasklets.
Tasklets are implemented using a taskqueue and a small statemachine on top. The additional statemachine is required to ensure all LinuxKPI tasklets get serialized.
Add support for LinuxKPI tasklets.
Tasklets are implemented using a taskqueue and a small statemachine on top. The additional statemachine is required to ensure all LinuxKPI tasklets get serialized. FreeBSD taskqueues do not guarantee serialisation of its tasks, except when there is only one worker thread configured.
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, release/10.3.0 |
|
| #
8d59ecb2 |
| 29-Oct-2015 |
Hans Petter Selasky <[email protected]> |
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 ...
|
| #
2da3897d |
| 22-Oct-2015 |
Hans Petter Selasky <[email protected]> |
Rename linuxapi[.ko] into linuxkpi[.ko], to reflect that it is a kernel programming interface module, KPI, to avoid confusion with the existing Linux userspace binary compatibility shims. Bump the Fr
Rename linuxapi[.ko] into linuxkpi[.ko], to reflect that it is a kernel programming interface module, KPI, to avoid confusion with the existing Linux userspace binary compatibility shims. Bump the FreeBSD_version number.
Reviewed by: np @ Suggested by: dumbbell @ Sponsored by: Mellanox Technologies
show more ...
|