Revision tags: 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 |
|
#
512bb0da |
| 14-Dec-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
x86/dmar: add dmar_is_running()
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
d97838b7 |
| 03-Nov-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
iommu: eliminate iommu_free_ctx()
iommu_free_ctx_locked() alone is enough
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
705090cb |
| 22-Oct-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
DMAR: handle affinity for in-memory data structures
Reviewed and tested by: markj Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revis
DMAR: handle affinity for in-memory data structures
Reviewed and tested by: markj Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47254
show more ...
|
#
e9d948cf |
| 12-Oct-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
iommu: move context link and ref count into device-independent parts
This also allows to move some bits of ddb print routines into iommu_utils.c common for x86 iommu drivers.
Sponsored by: Advanced
iommu: move context link and ref count into device-independent parts
This also allows to move some bits of ddb print routines into iommu_utils.c common for x86 iommu drivers.
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
#
10ebd230 |
| 25-Sep-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
intel_idpgtbl.c: rename domain_* functions to dmar_*
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
0386b245 |
| 23-Aug-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
DMAR: move hw.iommu.dmar.{tbl_pagecnt,batch_coalesce} sysctls up one level
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
29e22704 |
| 20-Jul-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
x86 iommu: move page level related functions to common utils
Also improve pglvl_page_size() to handle level 6.
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC af
x86 iommu: move page level related functions to common utils
Also improve pglvl_page_size() to handle level 6.
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
#
b3042e3a |
| 07-Jul-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
x86 dmar: generalize dmar_domain_free_entry() into iommu_domain_free_entry()
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
5967352a |
| 09-Jun-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
x86 iommu: move DMAR-independent parts of the interrupt setup code into common
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
23145534 |
| 30-Jun-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
DMAR: rename domain_{alloc,free}_pgtbl to domain_domain_$1_pgtbl
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
ad794e6d |
| 06-Jun-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
x86 iommu: move DMAR-independent parts of the qi code into common
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
65b133e5 |
| 29-May-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
x86: allow to have more than one kind of IOMMU
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
0fcbf494 |
| 06-Jun-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
DMAR: use DMAR2IOMMU() for DMAR_LOCK() and related macros
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
c47229ae |
| 06-Jun-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
Intel DMAR: improve X2X macros to fix failures in certain syntax contexts
Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
164fdee1 |
| 30-May-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
Intel DMAR: remove the 'dev' member
It duplicates iommu.dev, and was forgotten when struct iommu was split out from dmar.
Sponsored by: The FreeBSD Foundation Sponsored by: AMD dvanced Micro Device
Intel DMAR: remove the 'dev' member
It duplicates iommu.dev, and was forgotten when struct iommu was split out from dmar.
Sponsored by: The FreeBSD Foundation Sponsored by: AMD dvanced Micro Devices (AMD) MFC after: 1 week
show more ...
|
#
40d951bc |
| 25-May-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
x86/iommu: extract useful utilities into x86_iommu.c
related to the page tables page allocation and mapping.
Sponsored by: The FreeBSD Foundation Sponsored by: Advanced Micro Devices (AMD) MFC afte
x86/iommu: extract useful utilities into x86_iommu.c
related to the page tables page allocation and mapping.
Sponsored by: The FreeBSD Foundation Sponsored by: Advanced Micro Devices (AMD) MFC after: 1 week
show more ...
|
#
24e38af6 |
| 23-Dec-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
DMAR: add knob to disable RMRR entries installation into domains
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
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/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
f49fd63a |
| 23-Sep-2022 |
John Baldwin <jhb@FreeBSD.org> |
kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers.
Reviewed by: kib, markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D36549
|
#
42736dc4 |
| 26-Jul-2022 |
Alan Cox <alc@FreeBSD.org> |
x86/iommu: Reduce DMAR lock contention
Replace the DMAR unit's tlb_flush TAILQ by a custom list implementation that enables dmar_qi_task() to dequeue entries without holding the DMAR lock.
Reviewed
x86/iommu: Reduce DMAR lock contention
Replace the DMAR unit's tlb_flush TAILQ by a custom list implementation that enables dmar_qi_task() to dequeue entries without holding the DMAR lock.
Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35951
show more ...
|
#
c2515634 |
| 26-Jul-2022 |
Alan Cox <alc@FreeBSD.org> |
x86/iommu: Correct a recent change to iommu_domain_unload_entry()
Correct 8bc367384745. When iommu_domain_unload_entry() performs a synchronous IOTLB invalidation, it must call dmar_domain_free_ent
x86/iommu: Correct a recent change to iommu_domain_unload_entry()
Correct 8bc367384745. When iommu_domain_unload_entry() performs a synchronous IOTLB invalidation, it must call dmar_domain_free_entry() to remove the entry from the domain's RB_TREE.
Push down the acquisition and release of the DMAR lock into the recently introduced function dmar_qi_invalidate_sync_locked() and remove the _locked suffix.
MFC with: 8bc367384745
show more ...
|
#
8bc36738 |
| 22-Jul-2022 |
Alan Cox <alc@FreeBSD.org> |
iommu_gas: Eliminate a possible case of use-after-free
Eliminate a possible case of use-after-free in an error handling path after a mapping failure. Specifically, eliminate IOMMU_MAP_ENTRY_QI_NF a
iommu_gas: Eliminate a possible case of use-after-free
Eliminate a possible case of use-after-free in an error handling path after a mapping failure. Specifically, eliminate IOMMU_MAP_ENTRY_QI_NF and instead perform the IOTLB invalidation synchronously. Otherwise, when iommu_domain_unload_entry() is called and told not to free the IOMMU map entry, the caller could free the entry before dmar_qi_task() is finished with it.
Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35878
show more ...
|
#
da55f86c |
| 16-Jul-2022 |
Alan Cox <alc@FreeBSD.org> |
x86/iommu: Eliminate redundant wrappers
Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35832
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
06e6ca6d |
| 21-Oct-2021 |
Kornel Duleba <mindal@semihalf.com> |
dmar: Disable protected memory regions after initialization
Some BIOSes protect memory region they reside in by using DMAR to prevent devices from doing any DMA transactions to that part of RAM. AMI
dmar: Disable protected memory regions after initialization
Some BIOSes protect memory region they reside in by using DMAR to prevent devices from doing any DMA transactions to that part of RAM. AMI refers to this as "DMA Control Guarantee". Disable the protection when address translation is enabled. I stumbled upon this while investigation a failing coredump on a device which has this feature enabled.
Sponsored by: Stormshield Obtained from: Semihalf Reviewed by: kib Differential revision: https://reviews.freebsd.org/D32591
show more ...
|