History log of /freebsd-13.1/sys/compat/linuxkpi/common/src/linux_compat.c (Results 1 – 25 of 133)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.4.0, release/13.1.0
# bf1dea8f 05-Apr-2022 Warner Losh <[email protected]>

linuxkpi: move io_mapping_create_wc to .c

Move io_mapping_create_wc to .c because it encodes the size of struct
io_mapping so we move this from the client module to the linuxkpi
module.

Approved by

linuxkpi: move io_mapping_create_wc to .c

Move io_mapping_create_wc to .c because it encodes the size of struct
io_mapping so we move this from the client module to the linuxkpi
module.

Approved by: re@ (gjb)
Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34776

(cherry picked from commit 132b00f90613d8cc797137d4c3d2dcb99ba3c690)
(cherry picked from commit 4e94b3542dd6a5c3f60431e811013f4dbf603227)

show more ...


# 88543510 05-Apr-2022 Warner Losh <[email protected]>

linuxkpi: Move cdev_alloc into .c file

Move cdev_alloc into linux_compat.c since it encodes the size of struct
linux_cdev into the client modules otherwise.

Approved by: re@ (gjb)
Sponsored by: N

linuxkpi: Move cdev_alloc into .c file

Move cdev_alloc into linux_compat.c since it encodes the size of struct
linux_cdev into the client modules otherwise.

Approved by: re@ (gjb)
Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34771

(cherry picked from commit aca0bcbca344b39f2a448e8c1c0d80bac8c0d6de)
(cherry picked from commit d1f93d6721a6c51c0cb49078ad5c5d535a383964)

show more ...


# 169aa349 05-Apr-2022 Warner Losh <[email protected]>

linuxkpi: Move class_create to .c file

class_create encodes the size of struct class into the generated
code. Move from .h file to .c file to move this knowledge from the
client modules that call th

linuxkpi: Move class_create to .c file

class_create encodes the size of struct class into the generated
code. Move from .h file to .c file to move this knowledge from the
client modules that call this into the linuxkpi module.

Approved by: re@ (gjb)
Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34769

(cherry picked from commit 1341ac9f9c111bba4e1ca046c479f32f2d4989c0)
(cherry picked from commit 98d2b4a158f15d6d971a88315c5c5987036f89a3)

show more ...


# f6f168a1 05-Apr-2022 Warner Losh <[email protected]>

linuxkpi: Move device_create_groups_vargs to linux_compat.c

device_create_groups_vargs encodes the size of struct device. Move
definition from .h to .c to move this size into the linuxkpi module
rat

linuxkpi: Move device_create_groups_vargs to linux_compat.c

device_create_groups_vargs encodes the size of struct device. Move
definition from .h to .c to move this size into the linuxkpi module
rather than encoding it in all client driver modules.

Approved by: re@ (gjb)
Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34768

(cherry picked from commit 702b6875035921252d0f2b72171c7662f28766fb)
(cherry picked from commit 417f1c81491ae26643ea7e3f3fc5c08b8e8944a9)

show more ...


# d3113190 05-Apr-2022 Warner Losh <[email protected]>

linuxkpi: move kobject_create to .c file

kobject_create knows the size of struct kobject. Move it to
linux_compat.c so this knowledge is confined to the loadable module and
not the clients.

Approve

linuxkpi: move kobject_create to .c file

kobject_create knows the size of struct kobject. Move it to
linux_compat.c so this knowledge is confined to the loadable module and
not the clients.

Approved by: re@ (gjb)
Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34767

(cherry picked from commit 36929b55849c8f553a744d6e4fbc8b1a5ff73f66)
(cherry picked from commit 2f3d11894be6fb727be77184d232de24bf5551ba)

show more ...


Revision tags: release/12.3.0
# 9e736b8b 23-Nov-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: Implement default sysfs kobject attribute operations

Required by drm-kmod 5.7

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

(cherry pi

LinuxKPI: Implement default sysfs kobject attribute operations

Required by drm-kmod 5.7

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

(cherry picked from commit 04d42cb453888cbda0fb81d38bd722962ca6fc03)

show more ...


# 10cb5411 06-Nov-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: Implement interval_tree

Required by drm-kmod

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

(cherry picked from commit dbc920bd9a

LinuxKPI: Implement interval_tree

Required by drm-kmod

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

(cherry picked from commit dbc920bd9a9b413182a1940155539a3144a405aa)

show more ...


# 8ababf73 02-Nov-2021 Hans Petter Selasky <[email protected]>

LinuxKPI: Add sysctl(8) knob to control verbosity of WARN_ON's.

The purpose of this change is to reduce the amount of dmesg(8) noise when
VT switching after a panic.

Submitted by: Greg V <greg@unre

LinuxKPI: Add sysctl(8) knob to control verbosity of WARN_ON's.

The purpose of this change is to reduce the amount of dmesg(8) noise when
VT switching after a panic.

Submitted by: Greg V <[email protected]>
Differential Revision: https://reviews.freebsd.org/D30174
Sponsored by: NVIDIA Networking

(cherry picked from commit 2390a1441effaba0e3d0f2f447f448aaf20428f1)

show more ...


# feb3031f 17-Oct-2021 Jessica Clarke <[email protected]>

LinuxKPI: Implement _ioremap_attr for riscv

Now that riscv implements pmap_mapdev_attr we can enable the non-stub
implementation for riscv, which is needed for drm-kmod to not fail at
run time for d

LinuxKPI: Implement _ioremap_attr for riscv

Now that riscv implements pmap_mapdev_attr we can enable the non-stub
implementation for riscv, which is needed for drm-kmod to not fail at
run time for drivers that need to map I/O regions.

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

(cherry picked from commit 60d962e0410340f107d062e8f4389c0d467613a2)

show more ...


# cdae9b8e 29-Sep-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: Invoke release handler when file is destroyed by fput()

Required by drm_kmod 5.6

Reviewed by: hselasky, manu
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D32067

LinuxKPI: Invoke release handler when file is destroyed by fput()

Required by drm_kmod 5.6

Reviewed by: hselasky, manu
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D32067

(cherry picked from commit 7d92d4835850fdc5c1ec1fa7c5634826a61ad0a5)

show more ...


# fd6adf78 29-Sep-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: Remove FreeBSD struct resource from all LKPI headers

except linux/pci.h to avoid conflicts with Linux version.
This allows to #define resource in drm-kmod globally and strip some #ifdef-s

LinuxKPI: Remove FreeBSD struct resource from all LKPI headers

except linux/pci.h to avoid conflicts with Linux version.
This allows to #define resource in drm-kmod globally and strip some #ifdef-s

Reviewed by: hselasky, manu
Differential revision: https://reviews.freebsd.org/D31673

(cherry picked from commit 66ea390652d2ede405b43c168157986bd2b52bb9)

show more ...


# a0299680 29-Sep-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: Implement get_file_rcu()

get_file_rcu() grabs a file if the file->f_count is not zero.

Required by drm-kmod 5.6

Reviewed by: hselasky, manu (previous version)
Differential revision: http

LinuxKPI: Implement get_file_rcu()

get_file_rcu() grabs a file if the file->f_count is not zero.

Required by drm-kmod 5.6

Reviewed by: hselasky, manu (previous version)
Differential revision: https://reviews.freebsd.org/D31672

(cherry picked from commit a81b36c6d35d74177891860b789dd02b9d1c5851)

show more ...


# 1eaaada4 30-May-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: enhance the irq KPI for managed and threaded operations.

Move request_irq() to an internal function which serves request_irq()
and the newly added request_threaded_irq() and devm_request_t

LinuxKPI: enhance the irq KPI for managed and threaded operations.

Move request_irq() to an internal function which serves request_irq()
and the newly added request_threaded_irq() and devm_request_threaded_irq().
Likewise factor out parts of free_irq() to also be used with
devm_free_irq(). Add the storage and call to a thread_handler in case
of IRQ_WAKE_THREAD.
This is needed for the iwlwifi driver.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30549

(cherry picked from commit d16b6cb17837162d685c960deb28f26f716fa440)

show more ...


# 4b2af7db 28-May-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: add KPI for netdev_notifier_info returning ifp

While currently the ifp gets cast to a net_device and then returned
and consumers are expecting an ifp again, allow parallel usage now and
in

LinuxKPI: add KPI for netdev_notifier_info returning ifp

While currently the ifp gets cast to a net_device and then returned
and consumers are expecting an ifp again, allow parallel usage now and
in the future by extending and also passing the ifp directly back in
the netdev_notifier_info. Add a function to return the ifp instead of
the net_device.

Sponsored by: The FreeBSD Foundation
Suggested by: hselasky
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30522

(cherry picked from commit 801cf532e70f6b0ebfb2d536b235f166b2e6f0a4)

show more ...


# 9028c49c 24-May-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: add cpu.h for cpumask_*()

Add linux/cpu.h for cpumask_*() functions found in wireless drivers
and make sure cpu_online_mask is always initialised.

Sponsored by: The FreeBSD Foundation
Rev

LinuxKPI: add cpu.h for cpumask_*()

Add linux/cpu.h for cpumask_*() functions found in wireless drivers
and make sure cpu_online_mask is always initialised.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30421

(cherry picked from commit 5fce802722cd4435a748d89043615324db4efe5e)

show more ...


Revision tags: release/13.0.0
# 0bb23777 21-Mar-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: netdevice notifier callback argument

Introduce struct netdev_notifier_info as a container to pass
net_device to the callback functions.
Adjust netdev_notifier_info_to_dev() to return the n

LinuxKPI: netdevice notifier callback argument

Introduce struct netdev_notifier_info as a container to pass
net_device to the callback functions.
Adjust netdev_notifier_info_to_dev() to return the net_device field.

Add explicit casts from ifp to ni->dev even though currently
struct net_device is defined to struct ifnet. This is needed in
preparation for untangling this and improving the net_device compat
code.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D29365

(cherry picked from commit fdcfe8a298e23bef9588cafad2672e0c5f48a327)

show more ...


# 834afdc9 23-Mar-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: add net_ratelimit()

Add a net_ratelimit() compat implementation based on ppsratecheck().
Add a sysctl to allow tuning of the number of messages.

Sponsored by: The FreeBSD Foundation
Revie

LinuxKPI: add net_ratelimit()

Add a net_ratelimit() compat implementation based on ppsratecheck().
Add a sysctl to allow tuning of the number of messages.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D29399

(cherry picked from commit bc042266b2bfc3f52f685df7ccdd6e857b4b9da9)

show more ...


# 28d95cc6 11-May-2021 Hans Petter Selasky <[email protected]>

Implement read-only VM_SHARED flag in the LinuxKPI.

For use by mmap(2) callbacks.

Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 904390b4787d2e4a0d9d8ca9cb0d6d

Implement read-only VM_SHARED flag in the LinuxKPI.

For use by mmap(2) callbacks.

Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 904390b4787d2e4a0d9d8ca9cb0d6da5a4fb320c)

show more ...


# fba2292d 11-May-2021 Hans Petter Selasky <[email protected]>

Implement cdev_device_add() and cdev_device_del() in the LinuxKPI.

Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit b8f113cab91f288e5d5e29d21184d1601b87cfdd)


# 303bef2a 11-May-2021 Hans Petter Selasky <[email protected]>

cdev_del() should only put it's kernel object in the LinuxKPI.

The destructor takes care of the rest.

Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 67807f5066

cdev_del() should only put it's kernel object in the LinuxKPI.

The destructor takes care of the rest.

Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 67807f5066a012254da9a4535c0f225377afb66d)

show more ...


# 9c410fc7 30-Mar-2021 Konstantin Belousov <[email protected]>

linuxkpi: drop single-use variable

(cherry picked from commit 8011fb795baa59ba14371d6db5ab661a5db77615)


# e49760d9 30-Mar-2021 Konstantin Belousov <[email protected]>

linuxkpi: avoid counting per-thread use for the embedded linux cdevs

(cherry picked from commit f6b108837e7df7d7bfb35ec447f7cb62afa79441)


# 520085b2 30-Mar-2021 Konstantin Belousov <[email protected]>

linuxkpi: do not destroy/free embedded linux cdevs

(cherry picked from commit 7f9867f8c65b1b3e590dba4dc432a4bc8cf01f68)


# 1f135021 30-Mar-2021 Konstantin Belousov <[email protected]>

linuxkpi: rename cdev to ldev

(cherry picked from commit 28b482e2baf43cdd30e8b9bd090e6d9f405cf4b3)


# cd317a92 30-Mar-2021 Konstantin Belousov <[email protected]>

linuxkpi: copy ldev into local to test and free the same pointer

(cherry picked from commit 7b0125cbec1579a0a1bf38f7abe583b5f6fd79e7)


123456