Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3 |
|
#
325aa4db |
| 12-Jan-2025 |
Mark Johnston <markj@FreeBSD.org> |
linuxkpi: Introduce a properly typed jiffies
Now that we have a long-sized tick counter, we can migrate to using properly typed timeout parameters in various bits of the LinuxKPI. This fixes a subt
linuxkpi: Introduce a properly typed jiffies
Now that we have a long-sized tick counter, we can migrate to using properly typed timeout parameters in various bits of the LinuxKPI. This fixes a subtle incompatibility that is otherwise difficult to paper over and leads to bugs when ticks values are sign-extended.
- Introduce a "jiffies" symbol in subr_ticks.S, declared only in the LinuxKPI as an unsigned long. - Remove all references to "ticks" from the LinuxKPI. - Convert interfaces to match Linux's type signatures where it makes sense.
Reviewed by: manu Tested by: bz Differential Revision: https://reviews.freebsd.org/D48523
show more ...
|
Revision tags: release/14.2.0, release/13.4.0 |
|
#
889f74af |
| 26-Jun-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add linux/nodemask.h
and dummy num_possible_nodes() implementation. We do not fully support NUMA in LinuxKPI yet.
Sponsored by: Serenity CyberSecurity, LLC MFC after: 1 week Reviewed by:
LinuxKPI: Add linux/nodemask.h
and dummy num_possible_nodes() implementation. We do not fully support NUMA in LinuxKPI yet.
Sponsored by: Serenity CyberSecurity, LLC MFC after: 1 week Reviewed by: manu, bz Differential Revision: https://reviews.freebsd.org/D45613
show more ...
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
db65db64 |
| 10-Feb-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
Revert "LinuxKPI: Add explicit software context to FPU sections"
kmalloc() support within FPU sections will be redone in other way.
This reverts commit 5a3bd281672bd6bd8e18081c3928dfe76d330a5f.
Sp
Revert "LinuxKPI: Add explicit software context to FPU sections"
kmalloc() support within FPU sections will be redone in other way.
This reverts commit 5a3bd281672bd6bd8e18081c3928dfe76d330a5f.
Sponsored by: Serenity Cyber Security, LLC Requested by: jhb
show more ...
|
#
5a3bd281 |
| 24-Dec-2023 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add explicit software context to FPU sections
Amdgpu driver does a lot of memory allocations in FPU-protected sections of code for certain display cores, e.g. for DCN30. This does not work
LinuxKPI: Add explicit software context to FPU sections
Amdgpu driver does a lot of memory allocations in FPU-protected sections of code for certain display cores, e.g. for DCN30. This does not work currently on FreeBSD as its malloc function can not be run within a critical section. Allocate memory for FPU context to overcome such restriction.
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu (previous version), markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42822
show more ...
|
Revision tags: release/14.0.0 |
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
Revision tags: release/13.2.0 |
|
#
8c46bd9f |
| 30-Dec-2022 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
At least one file in the DRM drivers benefits from some namespace pollution to use `fs_reclaim_acquire()`/`fs_reclaim_release()`. They are d
linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
At least one file in the DRM drivers benefits from some namespace pollution to use `fs_reclaim_acquire()`/`fs_reclaim_release()`. They are defined in `linux/sched/mm.h` and this header must be included indirectly into the DRM drivers' source file.
I couldn't find how it was included. Therefore this commit includes `linux/sched/mm.h` from `linux/sched.h`. This is not the case in Linux but fixes the issue with the DRM drivers.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D37912
show more ...
|
Revision tags: release/12.4.0 |
|
#
f04f3afb |
| 28-Jul-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
linuxkpi: more precise need_resched() definition
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35888
|
#
c6d31b83 |
| 18-Jul-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
AST: rework
Make most AST handlers dynamically registered. This allows to have subsystem-specific handler source located in the subsystem files, instead of making subr_trap.c aware of it. For inst
AST: rework
Make most AST handlers dynamically registered. This allows to have subsystem-specific handler source located in the subsystem files, instead of making subr_trap.c aware of it. For instance, signal delivery code on return to userspace is now moved to kern_sig.c.
Also, it allows to have some handlers designated as the cleanup (kclear) type, which are called both at AST and on thread/process exit. For instance, ast(), exit1(), and NFS server no longer need to be aware about UFS softdep processing.
The dynamic registration also allows third-party modules to register AST handlers if needed. There is one caveat with loadable modules: the code does not make any effort to ensure that the module is not unloaded before all threads processed through AST handler in it. In fact, this is already present behavior for hwpmc.ko and ufs.ko. I do not think it is worth the efforts and the runtime overhead to try to fix it.
Reviewed by: markj Tested by: emaste (arm64), pho Discussed with: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35888
show more ...
|
#
0093bc3c |
| 17-May-2022 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Implement sched_set_fifo(_low) functions
Required by: drm-kmod
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D35050
|
#
1ebd7aee |
| 17-May-2022 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add some pollution required by drm-kmod to linux/sched.h
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D35050
|
#
41559beb |
| 17-May-2022 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Fix typo in cond_resched_lock
Lock must be released rather than acquired around mi_switch call.
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebs
LinuxKPI: Fix typo in cond_resched_lock
Lock must be released rather than acquired around mi_switch call.
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D35048
show more ...
|
Revision tags: release/13.1.0 |
|
#
9b801654 |
| 21-Mar-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add cond_resched_lock
If we need to resched it takes the lock, resched, release the lock and returns 1, otherwise simply returns 0.
Needed by drm v5.9
MFC after: 1 month Reviewed by: hse
linuxkpi: Add cond_resched_lock
If we need to resched it takes the lock, resched, release the lock and returns 1, otherwise simply returns 0.
Needed by drm v5.9
MFC after: 1 month Reviewed by: hselasky Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34620
show more ...
|
#
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
|
#
7ec6cbf1 |
| 03-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Convert schedule() to inlined function
to prevent name clashing with drm-kmod
MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33294
|
Revision tags: release/12.3.0 |
|
#
469884cf |
| 31-Jul-2021 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
LinuxKPI: Make FPU sections thread-safe and use the NOCTX flag.
Reviewed by: kib Submitted by: greg@unrelenting.technology Differential Revision: https://reviews.freebsd.org/D29921 MFC after: 1 week
LinuxKPI: Make FPU sections thread-safe and use the NOCTX flag.
Reviewed by: kib Submitted by: greg@unrelenting.technology Differential Revision: https://reviews.freebsd.org/D29921 MFC after: 1 week Sponsored by: NVIDIA Networking
show more ...
|
Revision tags: release/13.0.0 |
|
#
17777208 |
| 28-Mar-2021 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Reduce chance of RCU deadlock in the LinuxKPI by implementing the section feature of the concurrency kit, CK.
Differential Revision: https://reviews.freebsd.org/D29467 Reviewed by: kib@ and markj@ M
Reduce chance of RCU deadlock in the LinuxKPI by implementing the section feature of the concurrency kit, CK.
Differential Revision: https://reviews.freebsd.org/D29467 Reviewed by: kib@ and markj@ MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
show more ...
|
Revision tags: release/12.2.0 |
|
#
de6fc2e3 |
| 15-Aug-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r364082 through r364250.
|
#
440cec3f |
| 12-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
6ae24079 |
| 11-Aug-2020 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Need to clone the task struct fields related to RCU aswell in the LinuxKPI after r359727. This fixes a minor regression issue. Else the priority tracking won't work properly when both sleepable and n
Need to clone the task struct fields related to RCU aswell in the LinuxKPI after r359727. This fixes a minor regression issue. Else the priority tracking won't work properly when both sleepable and non-sleepable RCU is in use on the same thread.
Bump the __FreeBSD_version to force recompilation of external kernel modules.
PR: 242272 MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0 |
|
#
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
#
07e0a3ca |
| 16-May-2019 |
Johannes Lundberg <johalun@FreeBSD.org> |
LinuxKPI: Add group_leader member to struct task_struct.
Assign self as group leader at creation to act as the only member of a new process group. This patch is part of D19565
Reviewed by: hps Appr
LinuxKPI: Add group_leader member to struct task_struct.
Assign self as group leader at creation to act as the only member of a new process group. This patch is part of D19565
Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week
show more ...
|
#
2aaf9152 |
| 18-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345275
|
#
5746b1cd |
| 13-Mar-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement task_euid() and get_task_state() function macros in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by:
Implement task_euid() and get_task_state() function macros in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
show more ...
|
#
c7486758 |
| 13-Mar-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement get_task_comm() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
|
#
638fa5a3 |
| 13-Mar-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement current_exiting() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
|