|
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, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0 |
|
| #
914a0c5e |
| 24-Dec-2023 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Remove sys/rman.h include from LKPI headers.
sys/rman.h defines `resource` structure which conflicts with the Linux structure of the same name. To fix that remove reference to sys/rman.h f
LinuxKPI: Remove sys/rman.h include from LKPI headers.
sys/rman.h defines `resource` structure which conflicts with the Linux structure of the same name. To fix that remove reference to sys/rman.h from linux/pci.h and move resource management code to linux_pci.c. Update consumers which were depending on linux/pci.h pollution.
No functional changes intended.
Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42792
(cherry picked from commit 96ab16ebab6319dce9b3041961b0ab6e20a4fecc)
show more ...
|
|
Revision tags: release/14.0.0 |
|
| #
95ee2897 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
|
Revision tags: release/13.2.0 |
|
| #
210e756d |
| 10-Feb-2023 |
Jean-Sébastien Pédron <[email protected]> |
linuxkpi: Define `IRQ_NOTCONNECTED`
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38539
|
| #
4c72d075 |
| 28-Jan-2023 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: const argument to irq_set_affinity_hint()
irq_set_affinity_hint() takes a const mask argument and some drivers pass it in as such where earlier implementations were more lenient. Deal with
LinuxKPI: const argument to irq_set_affinity_hint()
irq_set_affinity_hint() takes a const mask argument and some drivers pass it in as such where earlier implementations were more lenient. Deal with it and __DECONST() the argument when passed to intr_setaffinity().
Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38242
show more ...
|
| #
bc81a2b7 |
| 28-Jan-2023 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()
Add a dummy irq_set_status_flags() along with #defines passed by the driver. Add disable_irq_nosync() as another wrapper to lk
LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()
Add a dummy irq_set_status_flags() along with #defines passed by the driver. Add disable_irq_nosync() as another wrapper to lkpi_disable_irq(). Those are used by wireless drivers.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38241
show more ...
|
| #
2272ccaa |
| 11-Jan-2023 |
Jean-Sébastien Pédron <[email protected]> |
linuxkpi: Define `tasklet_unlock_spin_wait()` as `tasklet_unlock_wait()`
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38080
|
|
Revision tags: release/12.4.0 |
|
| #
4b56afaf |
| 28-Nov-2022 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: implement irq_get_msi_desc()
Add irq_get_msi_desc() as a wrapper around a PCI function which will allocate a single cached value (see comment on struct) for the msi_desc requested if it do
LinuxKPI: implement irq_get_msi_desc()
Add irq_get_msi_desc() as a wrapper around a PCI function which will allocate a single cached value (see comment on struct) for the msi_desc requested if it doesn't exist yet and handle freeing it when the PCI device goes away. We take the values from the ivars of the native (FreeBSD) device.
While changing struct pci_dev also add the msi_cap field requested by a wireless driver.
Bump __FreeBSD_version so these changes can be detected.
MFC after: 3 days X-MFC: move fields to end of struct (alloc happens in linux_pci.c) Reviewed by: hselasky (earlier version) Differential Revision: https://reviews.freebsd.org/D37523
show more ...
|
| #
f2978460 |
| 30-Oct-2022 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: tasklet add (*callback) support
In addition to (*func) tasklet also seems to have a (*callback) with a different argument. Add support for this and add tasklet_setup() as well for support
LinuxKPI: tasklet add (*callback) support
In addition to (*func) tasklet also seems to have a (*callback) with a different argument. Add support for this and add tasklet_setup() as well for support in more drivers.
The from_tasklet() definition is duplicated in the tree; hide it there under #ifndef to avoid a re-definition. People should generally add LinuxKPI bits to linuxkpi rather than private files if they also rely on other LinuxKPI bits.
X-MFC: DO NOT MFC, space allocated by drivers not us. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37216
show more ...
|
| #
6e8d6761 |
| 30-Oct-2022 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add devm_request_irq()
Add devm_request_irq() needed by a driver. Turns out all we need is a wrapper with the right arguments to lkpi_request_irq().
MFC after: 3 days Reviewed by: emaste
LinuxKPI: add devm_request_irq()
Add devm_request_irq() needed by a driver. Turns out all we need is a wrapper with the right arguments to lkpi_request_irq().
MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37217
show more ...
|
|
Revision tags: release/13.1.0 |
|
| #
307f78f3 |
| 19-Dec-2021 |
Vladimir Kondratyev <[email protected]> |
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
|
|
Revision tags: release/12.3.0 |
|
| #
5ca1f3f5 |
| 29-Sep-2021 |
Vladimir Kondratyev <[email protected]> |
LinuxKPI: Hide some internal symbols in linux_interrupt.c
Reviewed by: hselasky, manu Differential revision: https://reviews.freebsd.org/D32168
|
| #
66ea3906 |
| 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 MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D31673
show more ...
|
| #
d16b6cb1 |
| 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 MFC after: 10 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30549
show more ...
|
| #
602e4e43 |
| 24-May-2021 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: add irq_set_affinity_hint()
Add an implementation for irq_set_affinity_hint() to linux/interrupt.h and include linux/hardirq.h for synchronize_irq() as needed by wireless drivers.
Sponsor
LinuxKPI: add irq_set_affinity_hint()
Add an implementation for irq_set_affinity_hint() to linux/interrupt.h and include linux/hardirq.h for synchronize_irq() as needed by wireless drivers.
Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D30427
show more ...
|
| #
9781105b |
| 28-Apr-2021 |
Neel Chauhan <[email protected]> |
linuxkpi: Introduce tasklet_disable_nosync()
This is needed for the drm-kmod 5.5 update.
Reviewed by: hselasky (src) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D30024
|
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0 |
|
| #
6575da5e |
| 11-Sep-2019 |
Hans Petter Selasky <[email protected]> |
Fix broken DECLARE_TASKLET() macro after r347852.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
4f109faa |
| 14-Aug-2019 |
Hans Petter Selasky <[email protected]> |
Implement pci_enable_msi() and pci_disable_msi() in the LinuxKPI. This patch makes the DRM graphics driver in ports usable on aarch64.
Submitted by: Greg V <[email protected]> Differential
Implement pci_enable_msi() and pci_disable_msi() in the LinuxKPI. This patch makes the DRM graphics driver in ports usable on aarch64.
Submitted by: Greg V <[email protected]> Differential Revision: https://reviews.freebsd.org/D21008 MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
|
Revision tags: release/11.3.0 |
|
| #
480995dc |
| 16-May-2019 |
Johannes Lundberg <[email protected]> |
LinuxKPI: Updates to tasklets for Linux 5.0.
DRM drivers expect tasklets to have a counter for enable/disable calls. Also, add a few more tasklet locking functions.
This patch is part of D19565
Re
LinuxKPI: Updates to tasklets for Linux 5.0.
DRM drivers expect tasklets to have a counter for enable/disable calls. Also, add a few more tasklet locking functions.
This patch is part of D19565
Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week
show more ...
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
7353335d |
| 17-Feb-2018 |
Hans Petter Selasky <[email protected]> |
Move the IRQ_RETVAL() and irqreturn definitions to irqreturn.h in the LinuxKPI to be compatible with Linux. No functional change.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]
Move the IRQ_RETVAL() and irqreturn definitions to irqreturn.h in the LinuxKPI to be compatible with Linux. No functional change.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
show more ...
|
| #
1249c589 |
| 17-Feb-2018 |
Hans Petter Selasky <[email protected]> |
Add checks for valid IRQ tag before setting up or tearing down an interrupt handler in the LinuxKPI. This is needed when the interrupt handler is disabled before freeing the interrupt.
MFC after: 1
Add checks for valid IRQ tag before setting up or tearing down an interrupt handler in the LinuxKPI. This is needed when the interrupt handler is disabled before freeing the interrupt.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
show more ...
|
| #
f1f7e04a |
| 16-Feb-2018 |
Hans Petter Selasky <[email protected]> |
Implement tasklet_enable() and tasklet_disable() in the LinuxKPI.
MFC after: 1 week Requested by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
|
| #
219ff59c |
| 16-Feb-2018 |
Hans Petter Selasky <[email protected]> |
Implement enable_irq() and disable_irq() in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
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 ...
|
| #
e996b07c |
| 09-Dec-2016 |
Hans Petter Selasky <[email protected]> |
Prefix some _pci_xxx() functions in the Linux KPI with linux_ and make sure the IRQ number used by these functions is unsigned.
Sponsored by: Mellanox Technologies MFC after: 1 week
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0 |
|
| #
0c510167 |
| 08-Jan-2016 |
Hans Petter Selasky <[email protected]> |
LinuxKPI style changes: - Properly prefix internal functions with "linux_" instead of only a single underscore to avoid future namespace collisions. - Make some functions global instead of inline t
LinuxKPI style changes: - Properly prefix internal functions with "linux_" instead of only a single underscore to avoid future namespace collisions. - Make some functions global instead of inline to ease debugging and to avoid unnecessary code duplication. - Remove no longer existing kthread_create() function's prototype.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|