History log of /freebsd/sys/compat/linuxkpi/common/include/linux/lockdep.h (Results 1 – 25 of 32)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9b270512 02-Nov-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: lockdep fix #includes

Add sys/sytm.h for __diagused which unbreaks compilation of
drm-kmod 5.10-lts on main.

Sponsored by: The FreeBSD Foundation
Reported by: Evgenii Khramtsov
PR: 2824

LinuxKPI: lockdep fix #includes

Add sys/sytm.h for __diagused which unbreaks compilation of
drm-kmod 5.10-lts on main.

Sponsored by: The FreeBSD Foundation
Reported by: Evgenii Khramtsov
PR: 282479
Fixes: 5c92f84bb607
MFC after: 3 days

show more ...


# 5c92f84b 29-Sep-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: update rcu_dereference_*() and lockdep_is_held()

Update rcu_dereference_{check,protected}() to call the check and log
once if it fails and if the RCU debug sysctl is turned on.
Also add pr

LinuxKPI: update rcu_dereference_*() and lockdep_is_held()

Update rcu_dereference_{check,protected}() to call the check and log
once if it fails and if the RCU debug sysctl is turned on.
Also add proper checks for conditions passed in to these functions.
For that implement linux_rcu_read_lock_held() (lots of help from wulf).

(While here also remove extraneous extern for function prototypes).

Update lockdep_is_held() to always be an inline function with argument
annotation so that we do no longer have unused variables
in callers which only call lockdep_is_held().

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: wulf
Differential Revision: https://reviews.freebsd.org/D46842

show more ...


Revision tags: release/13.4.0
# 21f4cf5c 06-Jun-2024 Alvin Chen <weike.chen@dell.com>

LinuxKPI: lockdep_assert: wrong 'cond' used in WARN_ON MACRO

'cond' in WARN_ON need be bracketed,
otherwise it is wrong for multiple conditions.

Reviewed by: wulf
MFC after: 1 week
Differential rev

LinuxKPI: lockdep_assert: wrong 'cond' used in WARN_ON MACRO

'cond' in WARN_ON need be bracketed,
otherwise it is wrong for multiple conditions.

Reviewed by: wulf
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D44604

show more ...


Revision tags: release/14.1.0, release/13.3.0, 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
# b82bcfb6 09-Feb-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `lockdep_assert{,_once}()`

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38538


# 17f2b12a 30-Dec-2022 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `lockdep_assert_none_held_once()`

This is defined as a no-op even when INVARIANTS is defined. I admit I
don't know how to implement that in FreeBSD and didn't search
thoroughly.

Re

linuxkpi: Define `lockdep_assert_none_held_once()`

This is defined as a no-op even when INVARIANTS is defined. I admit I
don't know how to implement that in FreeBSD and didn't search
thoroughly.

Reviewed by: bz
Approved by: bz
Differential Revision: https://reviews.freebsd.org/D37911

show more ...


Revision tags: release/12.4.0
# b27c3aa8 22-Sep-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: lockdep.h add lockdep_{,un}register_key()

Add NOPs for lockdep_{,un}register_key().

Sponsored by: The FreeBSD Foundation
MFC after: 7 days
Reviewed by: hselasky, emaste
Differential Revis

LinuxKPI: lockdep.h add lockdep_{,un}register_key()

Add NOPs for lockdep_{,un}register_key().

Sponsored by: The FreeBSD Foundation
MFC after: 7 days
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D36658

show more ...


Revision tags: release/13.1.0
# 064c110f 09-Feb-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: lockdep add lockdep_assert_not_held()

Add lockdep_assert_not_held() asserting LA_UNLOCKED as needed by a
driver.

MFC after: 3 days
Reviewed by: hselasky
Differential Revision: https://rev

LinuxKPI: lockdep add lockdep_assert_not_held()

Add lockdep_assert_not_held() asserting LA_UNLOCKED as needed by a
driver.

MFC after: 3 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34232

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


# f1a7639a 04-Dec-2021 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add some typical header pollution

To reduce amount of drm-kmod patching

MFC after: 1 week
Reviewed by: hselasky, manu
Differential Revision: https://reviews.freebsd.org/D33297


# 68fcdba3 03-Dec-2021 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Make lockdep*_pin_lock macros useable for drm-kmod

Summary:
- Add dummy struct pin_cookie definition;
- Convert lockdep_pin_lock macro to function;
- Fix 'unused variable' compile-time err

LinuxKPI: Make lockdep*_pin_lock macros useable for drm-kmod

Summary:
- Add dummy struct pin_cookie definition;
- Convert lockdep_pin_lock macro to function;
- Fix 'unused variable' compile-time errors;

MFC after: 1 week
Reviewers: hselasky, manu
Differential Revision: https://reviews.freebsd.org/D33295

show more ...


Revision tags: release/12.3.0
# 8a1a42b2 09-Jun-2021 Neel Chauhan <nc@FreeBSD.org>

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()

In Linux, these are macros to locks in the kernel for scheduling purposes.
But as with other macros in this header, we are

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()

In Linux, these are macros to locks in the kernel for scheduling purposes.
But as with other macros in this header, we aren't doing anything with them
so we are doing `do {} while (0)` for now.

This is needed by the drm-kmod 5.7 update.

Approved by: hselasky (src)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D30710

show more ...


Revision tags: release/13.0.0
# f1069375 23-Mar-2021 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: add lockdep_map

Add stubs for struct lockdep_map and three accessor functions
used by iwlwifi.

Obtained-from: bz_iwlwifi
Sponsored-by: The FreeBSD Foundation
MFC-after: 2 weeks
Reviewed-b

LinuxKPI: add lockdep_map

Add stubs for struct lockdep_map and three accessor functions
used by iwlwifi.

Obtained-from: bz_iwlwifi
Sponsored-by: The FreeBSD Foundation
MFC-after: 2 weeks
Reviewed-by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D29398

show more ...


# 4abbf816 28-Jan-2021 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: upstream a collection of drm-kmod conflicting changes

The upcoming in-kernel implementations for LinuxKPI based on work on
iwlwifi (and other wireless drivers) conflicts in a few places wi

LinuxKPI: upstream a collection of drm-kmod conflicting changes

The upcoming in-kernel implementations for LinuxKPI based on work on
iwlwifi (and other wireless drivers) conflicts in a few places with
the drm-kmod graphics work outside the base system.

In order to transition smoothly extract the conflicting bits.
This included "unaligned" accessor functions, sg_pcopy_from_buffer(),
IS_*() macros (to be further restricted in the future), power management
bits (possibly no longer conflicting with DRM), and other minor changes.

Obtained-from: bz_iwlwifi
Sponsored-by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: kib, hselasky, manu, bdragon (looked at earlier versions)
Differential Revision: https://reviews.freebsd.org/D26598

show more ...


Revision tags: release/12.2.0
# c7aa572c 31-Jul-2020 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: Rubicon Communications, LLC (netgate.com)


# 85d787b2 26-Jul-2020 Emmanuel Vadot <manu@FreeBSD.org>

Fix r363565

lockdep.h needs sys/lock.h for LOCK_CLASS


Revision tags: release/11.4.0
# 922106bf 01-May-2020 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement more lockdep macros in the LinuxKPI.

Submitted by: ashafer_badland.io (Austin Shafer)
MFC after: 1 week
Sponsored by: Mellanox Technologies


Revision tags: release/12.1.0
# e28024fb 13-Aug-2019 John Baldwin <jhb@FreeBSD.org>

Fix build with DRM and INVARIANTS enabled.

The DRM drivers use the lockdep assertion macros with spinlock_t locks
which are backed by mutexes, not sx locks. This causes compile
failures since you c

Fix build with DRM and INVARIANTS enabled.

The DRM drivers use the lockdep assertion macros with spinlock_t locks
which are backed by mutexes, not sx locks. This causes compile
failures since you can't use sx_assert with a mutex. Instead, change
the lockdep macros to use lock_class methods. This works by assuming
that each LinuxKPI locking primitive embeds a FreeBSD lock as its
first structure and uses a cast to get to the underlying 'struct
lock_object'.

Reviewed by: hselasky
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20992

show more ...


Revision tags: release/11.3.0, release/12.0.0, release/11.2.0
# 86ba49a7 02-Mar-2018 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement more lockdep stubs in the LinuxKPI.

MFC after: 1 week
Submitted by: Johannes Lundberg <johalun0@gmail.com>
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks


# 1169b94c 17-Feb-2018 Hans Petter Selasky <hselasky@FreeBSD.org>

Stub more lockdep function macros in the LinuxKPI.

MFC after: 1 week
Submitted by: Johannes Lundberg <johalun0@gmail.com>
Sponsored by: Mellanox Technologies


Revision tags: release/10.4.0
# b754c279 13-Sep-2017 Navdeep Parhar <np@FreeBSD.org>

MFH @ r323558.


# 1be4c195 25-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

MFhead@r322870


# 7e1a02ba 22-Aug-2017 Mark Johnston <markj@FreeBSD.org>

Add some miscellaneous definitions to support the DRM drivers.

MFC after: 1 week


# 531c2d7a 24-Jul-2017 Enji Cooper <ngie@FreeBSD.org>

MFhead@r320180


# bca9d05f 23-Jul-2017 Hans Petter Selasky <hselasky@FreeBSD.org>

Merge ^/head r319973 through 321382.


12