History log of /src/sys/compat/linuxkpi/common/include/linux/math.h (Results 1 – 12 of 12)
Revision Date Author Comments
# 736b16e8 04-Sep-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visibl

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visible by default in-tree. Make sure the v6.6 check is optional.
drm-kmod always defines LINUXKPI_VERSION so this should be fine.

Sponsored by: The FreeBSD Foundation (initially)
Fixes: afc450fac9f04
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52071

show more ...


# ef037a02 12-Mar-2025 Lutz Bichler <Lutz.Bichler@gmail.com>

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")
Pull request: https://github.com/freebsd/freebsd-src/pull/1612

show more ...


# afc450fa 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux ke

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux kernel commit 46f12960aad (6.6 timeframe).

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45453

show more ...


# 588064e6 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Move linux/math.h content out of linux/kernel.h

To match Linux and allow direct linux/math.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differ

LinuxKPI: Move linux/math.h content out of linux/kernel.h

To match Linux and allow direct linux/math.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D45452

show more ...


# 736b16e8 04-Sep-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visibl

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visible by default in-tree. Make sure the v6.6 check is optional.
drm-kmod always defines LINUXKPI_VERSION so this should be fine.

Sponsored by: The FreeBSD Foundation (initially)
Fixes: afc450fac9f04
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52071

show more ...


# ef037a02 12-Mar-2025 Lutz Bichler <Lutz.Bichler@gmail.com>

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")
Pull request: https://github.com/freebsd/freebsd-src/pull/1612

show more ...


# afc450fa 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux ke

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux kernel commit 46f12960aad (6.6 timeframe).

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45453

show more ...


# 588064e6 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Move linux/math.h content out of linux/kernel.h

To match Linux and allow direct linux/math.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differ

LinuxKPI: Move linux/math.h content out of linux/kernel.h

To match Linux and allow direct linux/math.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D45452

show more ...


# 736b16e8 04-Sep-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visibl

LinuxKPI: correct the LINUXKPI_VERSION check for abs_diff()

The code introduced abs_diff() as migrated from drm to standard
linux headers. The LINUXKPI_VERSION check did not allow this to
be visible by default in-tree. Make sure the v6.6 check is optional.
drm-kmod always defines LINUXKPI_VERSION so this should be fine.

Sponsored by: The FreeBSD Foundation (initially)
Fixes: afc450fac9f04
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52071

show more ...


# ef037a02 12-Mar-2025 Lutz Bichler <Lutz.Bichler@gmail.com>

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")
Pull request: https://github.com/freebsd/freebsd-src/pull/1612

show more ...


# afc450fa 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux ke

LinuxKPI: Add abs_diff to linux/math.h

It returns absolute value of the difference between the arguments.

Add LinuxKPI version check as the macro was moved from drm-kmod to
linux/math.h in Linux kernel commit 46f12960aad (6.6 timeframe).

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45453

show more ...


# 588064e6 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Move linux/math.h content out of linux/kernel.h

To match Linux and allow direct linux/math.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differ

LinuxKPI: Move linux/math.h content out of linux/kernel.h

To match Linux and allow direct linux/math.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D45452

show more ...