aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/dma
AgeCommit message (Expand)AuthorFilesLines
6 daysswiotlb: initialise restricted pool list_head when SWIOTLB_DYNAMIC=yWill Deacon1-0/+1
2024-04-02swiotlb: do not set total_used to 0 in swiotlb_create_debugfs_files()Dexuan Cui1-4/+0
2024-04-02swiotlb: fix swiotlb_bounce() to do partial sync's correctlyMichael Kelley1-17/+13
2024-04-02swiotlb: extend buffer pre-padding to alloc_align_mask if necessaryPetr Tesarik1-13/+46
2024-03-24Merge tag 'dma-mapping-6.9-2024-03-24' of git://git.infradead.org/users/hch/d...Linus Torvalds1-12/+33
2024-03-14Merge tag 'mm-stable-2024-03-13-20-04' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-6/+0
2024-03-13swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZEWill Deacon1-7/+11
2024-03-13swiotlb: Fix alignment checks when both allocation and DMA masks are presentWill Deacon1-2/+9
2024-03-13swiotlb: Honour dma_alloc_coherent() alignment in swiotlb_alloc()Will Deacon1-1/+3
2024-03-13swiotlb: Enforce page alignment in swiotlb_alloc()Will Deacon1-0/+6
2024-03-13swiotlb: Fix double-allocation of slots due to broken alignment handlingWill Deacon1-12/+14
2024-02-28dma-direct: Leak pages on dma_set_decrypted() failureRick Edgecombe1-4/+5
2024-02-28swiotlb: add debugfs to track swiotlb transient pool usageZhangPeng1-0/+46
2024-02-22mm/cma: drop CONFIG_CMA_DEBUGAnshuman Khandual1-6/+0
2024-01-18Merge tag 'dma-mapping-6.8-2024-01-18' of git://git.infradead.org/users/hch/d...Linus Torvalds2-1/+5
2024-01-17Merge tag 'char-misc-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+1
2024-01-15dma-debug: fix kernel-doc warningsRandy Dunlap1-1/+2
2024-01-11Merge tag 'dma-mapping-6.8-2024-01-08' of git://git.infradead.org/users/hch/d...Linus Torvalds3-37/+58
2024-01-09swiotlb: check alloc_size before the allocation of a new memory poolZhangPeng1-0/+3
2024-01-08mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDERKirill A. Shutemov2-5/+5
2024-01-04dma-debug: make dma_debug_add_bus take a const pointerGreg Kroah-Hartman1-1/+1
2023-12-15dma-mapping: clear dev->dma_mem to NULL after freeing itJoakim Zhang1-1/+3
2023-12-15swiotlb: reduce area lock contention for non-primary IO TLB poolsPetr Tesarik1-35/+55
2023-12-15dma-mapping: don't store redundant offsetsRobin Murphy1-1/+0
2023-11-08swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMICPetr Tesarik1-1/+2
2023-11-06dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover all sy...Jia He3-2/+50
2023-11-06dma-mapping: move dma_addressing_limited() out of lineJia He1-0/+15
2023-11-03swiotlb: do not free decrypted pages if dynamicPetr Tesarik1-9/+16
2023-11-01Merge tag 'dma-mapping-6.7-2023-10-30' of git://git.infradead.org/users/hch/d...Linus Torvalds4-30/+32
2023-10-25swiotlb: do not try to allocate a TLB bigger than MAX_ORDER pagesPetr Tesarik1-0/+5
2023-10-23dma-debug: Fix a typo in a debugging eye-catcherChuck Lever1-1/+1
2023-10-23swiotlb: rewrite comment explaining why the source is preserved on DMA_FROM_D...Sean Christopherson1-5/+7
2023-10-22dma-direct: warn when coherent allocations aren't supportedChristoph Hellwig1-1/+3
2023-10-22dma-direct: simplify the use atomic pool logic in dma_direct_allocChristoph Hellwig1-15/+10
2023-10-22dma-direct: add a CONFIG_ARCH_HAS_DMA_ALLOC symbolChristoph Hellwig2-10/+11
2023-10-22dma-direct: add dependencies to CONFIG_DMA_GLOBAL_POOLChristoph Hellwig1-0/+2
2023-09-27swiotlb: fix the check whether a device has used software IO TLBPetr Tesarik1-6/+20
2023-09-13swiotlb: use the calculated number of areasRoss Lagerwall1-3/+2
2023-09-08Revert "dma-contiguous: check for memory region overlap"Zhenhua Huang1-5/+0
2023-08-31dma-pool: remove a __maybe_unused label in atomic_pool_expandChristoph Hellwig1-2/+2
2023-08-30dma-contiguous: fix the Kconfig entry for CONFIG_DMA_NUMA_CMAChristoph Hellwig1-1/+1
2023-08-30dma-debug: don't call __dma_entry_alloc_check_leak() under free_entries_lockSergey Senozhatsky1-5/+15
2023-08-08swiotlb: optimize get_max_slots()Petr Tesarik1-3/+1
2023-08-08swiotlb: move slot allocation explanation comment where it belongsPetr Tesarik1-5/+5
2023-08-01swiotlb: search the software IO TLB only if the device makes use of itPetr Tesarik1-8/+6
2023-08-01swiotlb: allocate a new memory pool when existing pools are fullPetr Tesarik1-25/+123
2023-08-01swiotlb: determine potential physical address limitPetr Tesarik1-0/+14
2023-08-01swiotlb: if swiotlb is full, fall back to a transient memory poolPetr Tesarik2-9/+309
2023-08-01swiotlb: add a flag whether SWIOTLB is allowed to growPetr Tesarik2-0/+26
2023-08-01swiotlb: separate memory pool data from other allocator dataPetr Tesarik1-64/+111
2023-08-01swiotlb: add documentation and rename swiotlb_do_find_slots()Petr Tesarik1-6/+55
2023-08-01swiotlb: make io_tlb_default_mem local to swiotlb.cPetr Tesarik1-1/+38
2023-08-01swiotlb: bail out of swiotlb_init_late() if swiotlb is already allocatedPetr Tesarik1-0/+3
2023-07-31dma-contiguous: check for memory region overlapBinglei Wang1-0/+5
2023-07-31dma-contiguous: support numa CMA for specified nodeYajun Deng2-26/+84
2023-07-31dma-contiguous: support per-numa CMA for all architecturesYajun Deng2-4/+10
2023-07-31dma-mapping: move arch_dma_set_mask() declaration to headerArnd Bergmann1-6/+0
2023-07-31swiotlb: unexport is_swiotlb_activeChristoph Hellwig1-1/+0
2023-07-09Merge tag 'dma-mapping-6.5-2023-07-09' of git://git.infradead.org/users/hch/d...Linus Torvalds1-11/+35
2023-06-29Merge tag 'dma-mapping-6.5-2023-06-28' of git://git.infradead.org/users/hch/d...Linus Torvalds3-3/+14
2023-06-29swiotlb: reduce the number of areas to match actual memory pool sizePetr Tesarik1-3/+24
2023-06-29swiotlb: always set the number of areas before allocating the poolPetr Tesarik1-8/+11
2023-06-19dma-mapping: force bouncing if the kmalloc() size is not cache-line-alignedCatalin Marinas2-1/+6
2023-06-19dma-mapping: name SG DMA flag helpers consistentlyRobin Murphy1-1/+1
2023-06-19scatterlist: add dedicated config for DMA flagsRobin Murphy1-0/+3
2023-06-07swiotlb: use the atomic counter of total used slabs if availablePetr Tesarik1-0/+11
2023-06-07dma-remap: use kvmalloc_array/kvfree for larger dma memory remapgaoxu1-2/+2
2023-06-07dma-mapping: fix a Kconfig typoSui Jingfeng1-1/+1
2023-04-29Merge tag 'dma-mapping-6.4-2023-04-28' of git://git.infradead.org/users/hch/d...Linus Torvalds5-81/+175
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-3/+3
2023-04-27Merge tag 'hyperv-next-signed-20230424' of git://git.kernel.org/pub/scm/linux...Linus Torvalds1-44/+1
2023-04-27Merge tag 'modules-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+0
2023-04-20swiotlb: Omit total_used and used_hiwater if !CONFIG_DEBUG_FSPetr Tesarik1-3/+12
2023-04-17swiotlb: Remove bounce buffer remapping for Hyper-VMichael Kelley1-44/+1
2023-04-16swiotlb: track and report io_tlb_used high water marks in debugfsMichael Kelley1-0/+66
2023-04-16swiotlb: fix debugfs reporting of reserved memory poolsMichael Kelley1-2/+4
2023-04-16swiotlb: relocate PageHighMem test away from rmem_swiotlb_setupDoug Berger1-5/+5
2023-04-13dma-mapping: benchmark: remove MODULE_LICENSE in non-modulesNick Alcock1-1/+0
2023-04-07dma-mapping: provide CONFIG_ARCH_DMA_DEFAULT_COHERENTJiaxun Yang2-1/+8
2023-04-07dma-mapping: provide a fallback dma_default_coherentJiaxun Yang1-0/+4
2023-04-06swiotlb: fix a braino in the alignment check fixPetr Tesarik1-3/+3
2023-04-05mm, treewide: redefine MAX_ORDER sanelyKirill A. Shutemov1-3/+3
2023-03-30dma-debug: Use %pa to format phys_addr_tGeert Uytterhoeven1-4/+4
2023-03-28dma-debug: add cacheline to user/kernel space dump messagesDesnes Nunes1-58/+64
2023-03-28dma-debug: small dma_debug_entry's comment and variable name updatesDesnes Nunes1-4/+5
2023-03-28dma-direct: cleanup parameters to dma_direct_optimal_gfp_maskPetr Tesarik1-8/+7
2023-03-22swiotlb: fix slot alignment checksPetr Tesarik1-6/+10
2023-03-22swiotlb: use wrap_area_index() instead of open-coding itPetr Tesarik1-4/+1
2023-03-15swiotlb: fix the deadlock in swiotlb_do_find_slotsGuoRui.Yu1-4/+6
2023-02-22swiotlb: mark swiotlb_memblock_alloc() as __initRandy Dunlap1-1/+2
2023-02-16swiotlb: remove swiotlb_max_segmentChristoph Hellwig1-8/+0
2022-12-21dma-mapping: reject GFP_COMP for noncoherent allocationsChristoph Hellwig1-0/+4
2022-11-21dma-mapping: reject __GFP_COMP in dma_alloc_attrsChristoph Hellwig1-0/+8
2022-11-01swiotlb: reduce the swiotlb buffer size on allocation failureAlexey Kardashevskiy1-24/+39
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-3/+7
2022-10-03dma: kmsan: unpoison DMA mappingsAlexander Potapenko1-3/+7
2022-09-20swiotlb: don't panic!Robin Murphy1-11/+19
2022-09-20swiotlb: replace kmap_atomic() with memcpy_{from,to}_page()Fabio M. De Francesco1-6/+4
2022-09-07dma-mapping: mark dma_supported staticChristoph Hellwig1-2/+1
2022-09-07swiotlb: fix a typoChao Gao1-1/+1
2022-09-07swiotlb: avoid potential left shift overflowChao Gao1-1/+4
2022-09-07dma-debug: improve search for partial syncsRobin Murphy1-4/+2
2022-09-07Revert "swiotlb: panic if nslabs is too small"Yu Zhao1-5/+1
2022-08-08Merge tag 'rproc-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remo...Linus Torvalds1-2/+8
2022-08-06Merge tag 'dma-mapping-5.20-2022-08-06' of git://git.infradead.org/users/hch/...Linus Torvalds4-58/+303
2022-07-28swiotlb: fix passing local variable to debugfs_create_ulong()Tianyu Lan1-3/+9
2022-07-28dma-mapping: reformat comment to suppress htmldoc warningLogan Gunthorpe1-9/+9
2022-07-26dma-mapping: add flags to dma_map_ops to indicate PCI P2PDMA supportLogan Gunthorpe1-0/+18
2022-07-26dma-direct: support PCI P2PDMA pages in dma-direct map_sgLogan Gunthorpe2-7/+44
2022-07-26dma-mapping: allow EREMOTEIO return code for P2PDMA transfersLogan Gunthorpe1-1/+4
2022-07-22swiotlb: clean up some coding style and minor issuesTianyu Lan1-11/+15
2022-07-19dma-mapping: add dma_opt_mapping_size()John Garry1-0/+12
2022-07-18swiotlb: move struct io_tlb_slot to swiotlb.cChristoph Hellwig1-0/+6
2022-07-18swiotlb: ensure a segment doesn't cross the area boundaryChao Gao1-1/+10
2022-07-18swiotlb: consolidate rounding up default_nslabsChao Gao1-17/+16
2022-07-18swiotlb: remove unused fields in io_tlb_memChao Gao1-2/+0
2022-07-18swiotlb: fix use after free on error handling pathDan Carpenter1-1/+1
2022-07-13swiotlb: split up the global swiotlb lockTianyu Lan1-40/+189
2022-07-12swiotlb: fail map correctly with failed io_tlb_default_memRobin Murphy1-1/+1
2022-06-24dma-mapping: Add dma_release_coherent_memory to DMA APIMark-PK Tsai1-2/+8
2022-06-23dma-direct: use the correct size for dma_set_encrypted()Dexuan Cui1-3/+2
2022-06-22swiotlb: panic if nslabs is too smallDongli Zhang1-1/+5
2022-06-22swiotlb: remove a useless return in swiotlb_initDongli Zhang1-1/+1
2022-06-02swiotlb: fix setting ->force_bounceChristoph Hellwig1-8/+6
2022-06-02dma-debug: make things less spammy under memory pressureRob Clark1-1/+1
2022-05-23dma-direct: don't over-decrypt memoryRobin Murphy1-2/+2
2022-05-17swiotlb: max mapping size takes min align mask into accountTianyu Lan1-1/+12
2022-05-13swiotlb: use the right nslabs-derived sizes in swiotlb_init_lateChristoph Hellwig1-8/+11
2022-05-13swiotlb: use the right nslabs value in swiotlb_init_remapChristoph Hellwig1-3/+4
2022-05-13swiotlb: don't panic when the swiotlb buffer can't be allocatedChristoph Hellwig1-2/+4
2022-05-11dma-debug: change allocation mode from GFP_NOWAIT to GFP_ATIOMICMikulas Patocka1-1/+1
2022-05-11dma-direct: don't fail on highmem CMA pages in dma_direct_alloc_pagesChristoph Hellwig1-17/+10
2022-04-18swiotlb: remove swiotlb_init_with_tbl and swiotlb_init_late_with_tblChristoph Hellwig1-57/+20
2022-04-18swiotlb: provide swiotlb_init variants that remap the bufferChristoph Hellwig1-3/+33
2022-04-18swiotlb: pass a gfp_mask argument to swiotlb_init_lateChristoph Hellwig1-5/+2
2022-04-18swiotlb: add a SWIOTLB_ANY flag to lift the low memory restrictionChristoph Hellwig1-2/+9
2022-04-18swiotlb: make the swiotlb_init interface more usefulChristoph Hellwig1-16/+19
2022-04-18swiotlb: rename swiotlb_late_init_with_default_sizeChristoph Hellwig1-4/+2
2022-04-18swiotlb: simplify swiotlb_max_segmentChristoph Hellwig1-17/+3
2022-04-18swiotlb: make swiotlb_exit a no-op if SWIOTLB_FORCE is setChristoph Hellwig1-0/+3
2022-04-18dma-direct: use is_swiotlb_active in dma_direct_map_pageChristoph Hellwig1-1/+1
2022-04-14dma-direct: avoid redundant memory sync for swiotlbChao Gao1-1/+2
2022-04-01dma-mapping: move pgprot_decrypted out of dma_pgprotChristoph Hellwig2-4/+8
2022-03-29Merge tag 'dma-mapping-5.18' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds6-96/+36
2022-03-28Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE""Linus Torvalds1-4/+8
2022-03-26Revert "swiotlb: rework "fix info leak with DMA_FROM_DEVICE""Linus Torvalds1-15/+8
2022-03-23Merge tag 'arm-soc-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/soc...Linus Torvalds1-2/+0
2022-03-22cma: factor out minimum alignment requirementDavid Hildenbrand1-3/+1
2022-03-10dma-mapping: benchmark: extract a common header file for map_benchmark defini...Tian Tao1-24/+1
2022-03-07swiotlb: rework "fix info leak with DMA_FROM_DEVICE"Halil Pasic1-8/+15
2022-03-03dma-debug: fix return value of __setup handlersRandy Dunlap1-2/+2
2022-03-03dma-mapping: remove CONFIG_DMA_REMAPChristoph Hellwig3-18/+9
2022-02-14swiotlb: fix info leak with DMA_FROM_DEVICEHalil Pasic1-1/+2
2022-02-12ARM: ixp4xx: Drop custom DMA coherency and bouncingLinus Walleij1-2/+0
2022-01-26swiotlb: simplify array allocationRobin Murphy1-2/+1
2022-01-26swiotlb: tidy up includesRobin Murphy1-18/+13
2022-01-26swiotlb: simplify debugfs setupRobin Murphy1-30/+10
2022-01-26swiotlb: do not zero buffer in set_memory_decrypted()Kirill A. Shutemov1-2/+0
2022-01-16Merge tag 'hyperv-next-signed-20220114' of git://git.kernel.org/pub/scm/linux...Linus Torvalds1-2/+48
2022-01-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+2
2022-01-15dma/pool: create dma atomic pool only if dma zone has managed pagesBaoquan He1-2/+2
2022-01-04swiotlb: Add CONFIG_HAS_IOMEM check around swiotlb_mem_remap()Wei Liu1-0/+7
2021-12-20swiotlb: Add swiotlb bounce buffer remap function for HV IVMTianyu Lan1-2/+41
2021-12-08dma-direct: add a dma_direct_use_pool helperChristoph Hellwig1-6/+12
2021-12-07dma-direct: factor the swiotlb code out of __dma_direct_alloc_pagesChristoph Hellwig1-9/+15
2021-12-07dma-direct: drop two CONFIG_DMA_RESTRICTED_POOL conditionalsChristoph Hellwig1-4/+2
2021-12-07dma-direct: warn if there is no pool for force unencrypted allocationsChristoph Hellwig1-4/+5
2021-12-07dma-direct: fail allocations that can't be made coherentChristoph Hellwig1-2/+3
2021-12-07dma-direct: refactor the !coherent checks in dma_direct_allocChristoph Hellwig1-25/+41
2021-12-07dma-direct: factor out a helper for DMA_ATTR_NO_KERNEL_MAPPING allocationsChristoph Hellwig1-11/+20
2021-12-07dma-direct: clean up the remapping checks in dma_direct_allocChristoph Hellwig1-22/+26
2021-12-07dma-direct: always leak memory that can't be re-encryptedChristoph Hellwig1-4/+10
2021-12-07dma-direct: don't call dma_set_decrypted for remapped allocationsChristoph Hellwig1-7/+6
2021-12-07dma-direct: factor out dma_set_{de,en}crypted helpersChristoph Hellwig1-31/+25
2021-11-09Merge tag 'dma-mapping-5.16' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-3/+2
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2021-11-06memblock: use memblock_free for freeing virtual pointersMike Rapoport1-1/+1
2021-11-06memblock: rename memblock_free to memblock_phys_freeMike Rapoport1-1/+1
2021-11-06memblock: drop memblock_free_early_nid() and memblock_free_early()Mike Rapoport1-1/+1
2021-11-04Merge tag 'iommu-updates-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-5/+8
2021-11-01Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-4/+0
2021-11-01Merge tag 'x86_cc_for_v5.16_rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-2/+2
2021-10-31Merge branches 'apple/dart', 'arm/mediatek', 'arm/renesas', 'arm/smmu', 'arm/...Joerg Roedel1-5/+8
2021-10-27dma-mapping: use 'bitmap_zalloc()' when applicableChristophe JAILLET1-3/+2
2021-10-20Merge tag 'dma-mapping-5.15-2' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds3-36/+48
2021-10-18dma-debug: teach add_dma_entry() about DMA_ATTR_SKIP_CPU_SYNCHamza Mahfooz3-24/+36
2021-10-11dma-debug: fix sg checks in debug_dma_map_sg()Gerald Schaefer1-6/+6
2021-10-11dma-mapping: fix the kerneldoc for dma_map_sgtable()Logan Gunthorpe1-6/+6
2021-10-04treewide: Replace the use of mem_encrypt_active() with cc_platform_has()Tom Lendacky1-2/+2
2021-10-01dma-mapping: remove bogus test for pfn_valid from dma_map_resourceMike Rapoport1-4/+0
2021-09-29swiotlb: Support aligned swiotlb buffersDavid Stevens1-5/+8
2021-09-17Merge tag 'dma-mapping-5.15-1' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds2-2/+4
2021-09-13dma-debug: prevent an error message from causing runtime problemsHamza Mahfooz1-1/+2
2021-09-06dma-mapping: fix the kerneldoc for dma_map_sg_attrsChristoph Hellwig1-1/+2
2021-09-03Merge branch 'stable/for-linus-5.15' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds4-111/+319
2021-08-31swiotlb: use depends on for DMA_RESTRICTED_POOLClaire Chang1-2/+1
2021-08-19dma-mapping: make the global coherent pool conditionalChristoph Hellwig1-22/+27
2021-08-18dma-mapping: add a dma_init_global_coherent helperChristoph Hellwig1-18/+14
2021-08-18dma-mapping: simplify dma_init_coherent_memoryChristoph Hellwig1-45/+33
2021-08-18dma-mapping: allow using the global coherent pool for !ARMChristoph Hellwig1-0/+2