aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/dma
AgeCommit message (Expand)AuthorFilesLines
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
2021-08-18dma-direct: add support for dma_coherent_default_memoryChristoph Hellwig2-0/+19
2021-08-14dma-mapping: return an unsigned int from dma_map_sg{,_attrs}Christoph Hellwig1-1/+1
2021-08-09dma-mapping: disallow .map_sg operations from returning zero on errorLogan Gunthorpe1-3/+1
2021-08-09dma-mapping: return error code from dma_dummy_map_sg()Martin Oliveira1-1/+1
2021-08-09dma-direct: return appropriate error code from dma_direct_map_sg()Logan Gunthorpe1-1/+1
2021-08-09dma-mapping: allow map_sg() ops to return negative error codesLogan Gunthorpe1-8/+74
2021-08-09dma-debug: fix debugfs initialization orderAnthony Iliopoulos1-3/+4
2021-08-09dma-debug: use memory_intersects() directlyKefeng Wang1-12/+2
2021-07-23swiotlb: Free tbl memory in swiotlb_exit()Will Deacon1-6/+15
2021-07-23swiotlb: Emit diagnostic in swiotlb_exit()Will Deacon1-0/+1
2021-07-23swiotlb: Convert io_default_tlb_mem to static allocationWill Deacon1-30/+36
2021-07-16dma-mapping: handle vmalloc addresses in dma_common_{mmap,get_sgtable}Roman Skakun1-2/+10
2021-07-13swiotlb: add overflow checks to swiotlb_bounceDominique Martinet1-3/+17
2021-07-13swiotlb: fix implicit debugfs declarationsClaire Chang1-5/+16
2021-07-13swiotlb: Add restricted DMA pool initializationClaire Chang2-0/+90
2021-07-13swiotlb: Add restricted DMA alloc/free supportClaire Chang2-14/+73
2021-07-13swiotlb: Refactor swiotlb_tbl_unmap_singleClaire Chang1-15/+20
2021-07-13swiotlb: Move alloc_size to swiotlb_find_slotsClaire Chang1-8/+9
2021-07-13swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncingClaire Chang3-2/+6
2021-07-13swiotlb: Update is_swiotlb_active to add a struct device argumentClaire Chang2-3/+3
2021-07-13swiotlb: Update is_swiotlb_buffer to add a struct device argumentClaire Chang2-6/+6
2021-07-13swiotlb: Set dev->dma_io_tlb_mem to the swiotlb pool usedClaire Chang1-4/+4
2021-07-13swiotlb: Refactor swiotlb_create_debugfsClaire Chang1-7/+14
2021-07-13swiotlb: Refactor swiotlb init functionsClaire Chang1-25/+25
2021-07-02Merge tag 'dma-mapping-5.14' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds2-5/+3
2021-06-23Merge branch 'stable/for-linus-5.14' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-8/+15
2021-06-22dma-debug: report -EEXIST errors in add_dma_entryHamza Mahfooz1-4/+2
2021-06-22dma-mapping: remove a trailing spaceZhen Lei1-1/+1
2021-06-21swiotlb: manipulate orig_addr when tlb_addr has offsetBumyong Lee1-8/+15
2021-05-04Merge branch 'stable/for-linus-5.13' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds3-334/+200
2021-05-04Merge tag 'dma-mapping-5.13' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds2-18/+153
2021-04-30kernel/dma: remove unnecessary unmap_kernel_rangeNicholas Piggin1-1/+0
2021-04-29swiotlb: don't override user specified size in swiotlb_adjust_sizeChristoph Hellwig1-0/+2
2021-04-27swiotlb: Fix the type of indexClaire Chang1-1/+2
2021-04-02dma-mapping: benchmark: Add support for multi-pages map/unmapXiang Chen1-7/+14
2021-04-02dma-mapping: benchmark: use the correct HiSilicon copyrightHao Fang1-1/+1
2021-04-01swiotlb: Make SWIOTLB_NO_FORCE perform no allocationFlorian Fainelli1-4/+14
2021-03-19swiotlb: remove swiotlb_nr_tblChristoph Hellwig1-6/+1
2021-03-19swiotlb: dynamically allocate io_tlb_default_memChristoph Hellwig1-207/+99
2021-03-19swiotlb: move global variables into a new io_tlb_mem structureClaire Chang1-190/+164
2021-03-17swiotlb: lift the double initialization protection from xen-swiotlbChristoph Hellwig1-0/+8
2021-03-17swiotlb: split swiotlb_tbl_sync_singleChristoph Hellwig3-25/+21
2021-03-17swiotlb: move orig addr and size validation into swiotlb_bounceChristoph Hellwig1-36/+23
2021-03-17swiotlb: remove the alloc_size parameter to swiotlb_tbl_unmap_singleChristoph Hellwig2-23/+24
2021-03-15dma-mapping: add a dma_alloc_noncontiguous APIChristoph Hellwig1-0/+106
2021-03-15dma-mapping: refactor dma_{alloc,free}_pagesChristoph Hellwig1-10/+19
2021-03-15dma-mapping: add a dma_mmap_pages helperChristoph Hellwig1-0/+13
2021-02-26Merge branch 'stable/for-linus-5.12' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-116/+194
2021-02-26swiotlb: Validate bounce size in the sync/unmap pathMartin Radev1-3/+50
2021-02-26swiotlb: respect min_align_maskChristoph Hellwig1-10/+31
2021-02-24Merge tag 'dma-mapping-5.12' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds2-41/+11
2021-02-22swiotlb: don't modify orig_addr in swiotlb_tbl_sync_singleChristoph Hellwig1-1/+0
2021-02-22swiotlb: refactor swiotlb_tbl_map_singleChristoph Hellwig1-90/+89
2021-02-21Merge tag 'mips_5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/l...Linus Torvalds2-3/+2
2021-02-20swiotlb: clean up swiotlb_tbl_unmap_singleChristoph Hellwig1-20/+21
2021-02-20swiotlb: factor out a nr_slots helperChristoph Hellwig1-4/+9
2021-02-20swiotlb: factor out an io_tlb_offset helperChristoph Hellwig1-7/+13
2021-02-20swiotlb: add a IO_TLB_SIZE defineChristoph Hellwig1-7/+7
2021-02-13driver core: lift dma_default_coherent into common codeChristoph Hellwig2-3/+2
2021-02-09dma-mapping: remove the {alloc,free}_noncoherent methodsChristoph Hellwig1-40/+0
2021-02-05dma-mapping: benchmark: pretend DMA is transmittingBarry Song1-1/+11
2021-02-05dma-mapping: benchmark: use u8 for reserved field in uAPI structureBarry Song1-1/+1
2021-01-27dma-mapping: benchmark: fix kernel crash when dma_map_single failsBarry Song1-1/+5
2020-12-22Merge tag 'dma-mapping-5.11' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds6-8/+384
2020-12-16Merge tag 'arm-soc-drivers-5.11' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+0
2020-12-16Merge branch 'stable/for-linus-5.11' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-2/+18
2020-12-11x86,swiotlb: Adjust SWIOTLB bounce buffer size for SEV guestsAshish Kalra1-2/+18
2020-11-27dma-mapping: add benchmark support for streaming DMA APIsBarry Song3-0/+371
2020-11-27dma-contiguous: fix a typo error in a commenttangjianqiang1-1/+1
2020-11-27dma-pool: no need to check return value of debugfs_create functionsTiezhu Yang1-3/+0
2020-11-27dma-mapping: Allow mixing bypass and mapped DMA operationAlexey Kardashevskiy2-4/+12
2020-11-23Merge tag 'v5.10-rc5' into rdma.git for-nextJason Gunthorpe1-11/+11
2020-11-18dma-mapping: remove the dma_direct_set_offset exportChristoph Hellwig1-1/+0
2020-11-17dma-mapping: remove dma_virt_opsChristoph Hellwig3-67/+0
2020-11-02swiotlb: remove the tbl_dma_addr argument to swiotlb_tbl_map_singleChristoph Hellwig1-10/+6
2020-11-02swiotlb: fix "x86: Don't panic if can not alloc buffer for swiotlb"Stefano Stabellini1-1/+5
2020-10-20dma-mapping: move more functions to dma-map-ops.hChristoph Hellwig1-1/+1
2020-10-16kernel/: fix repeated words in commentsRandy Dunlap1-1/+1
2020-10-15Merge tag 'dma-mapping-5.10' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds14-210/+773
2020-10-14Merge branch 'stable/for-linus-5.10' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-4/+2
2020-10-13dma-contiguous: simplify cma_early_percent_memory()Mike Rapoport1-10/+1
2020-10-07dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING handlingChristoph Hellwig1-61/+39
2020-10-07dma-direct: factor out a dma_direct_alloc_from_pool helperChristoph Hellwig1-19/+20
2020-10-07dma-direct check for highmem pages in dma_direct_alloc_pagesChristoph Hellwig1-0/+11
2020-10-06dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h>Christoph Hellwig3-3/+1
2020-10-06dma-mapping: move large parts of <linux/dma-direct.h> to kernel/dmaChristoph Hellwig3-2/+121
2020-10-06dma-mapping: move dma-debug.h to kernel/dma/Christoph Hellwig3-3/+125
2020-10-06dma-mapping: remove <asm/dma-contiguous.h>Christoph Hellwig1-1/+5
2020-10-06dma-mapping: merge <linux/dma-contiguous.h> into <linux/dma-map-ops.h>Christoph Hellwig5-5/+31
2020-10-06dma-contiguous: remove dma_contiguous_set_defaultChristoph Hellwig1-1/+1
2020-10-06dma-contiguous: remove dev_set_cma_areaChristoph Hellwig1-2/+2
2020-10-06dma-mapping: split <linux/dma-mapping.h>Christoph Hellwig6-3/+6
2020-10-06cma: decrease CMA_ALIGNMENT lower limit to 2Paul Cercueil1-1/+1
2020-09-25dma-mapping: add new {alloc,free}_noncoherent dma_map_ops methodsChristoph Hellwig1-6/+27
2020-09-25dma-mapping: add a new dma_alloc_pages APIChristoph Hellwig4-4/+148
2020-09-25dma-mapping: remove dma_cache_syncChristoph Hellwig2-17/+0
2020-09-21dma-debug: convert comma to semicolonXu Wang1-2/+2
2020-09-17dma-mapping: introduce DMA range map, supplanting dma_pfn_offsetJim Quinlan2-6/+52
2020-09-17dma-direct: Fix potential NULL pointer dereferenceThomas Tai1-0/+11
2020-09-11dma-mapping: move the dma_declare_coherent_memory documentationChristoph Hellwig1-0/+17
2020-09-11dma-mapping: move dma_common_{mmap,get_sgtable} out of mapping.cChristoph Hellwig3-46/+53
2020-09-11dma-direct: rename and cleanup __phys_to_dmaChristoph Hellwig2-6/+6
2020-09-11dma-direct: remove __dma_to_physChristoph Hellwig1-5/+1
2020-09-11dma-direct: use phys_to_dma_direct in dma_direct_allocChristoph Hellwig1-4/+1
2020-09-11dma-direct: lift gfp_t manipulation out of__dma_direct_alloc_pagesChristoph Hellwig1-7/+5
2020-09-11dma-direct: remove dma_direct_{alloc,free}_pagesChristoph Hellwig2-25/+16
2020-09-11dma-mapping: add (back) arch_dma_mark_clean for ia64Christoph Hellwig2-0/+9
2020-09-11dma-mapping: fix DMA_OPS dependenciesChristoph Hellwig1-0/+1
2020-09-11dma-debug: remove most exportsChristoph Hellwig1-10/+0
2020-09-11dma-mapping: remove the dma_dummy_ops exportChristoph Hellwig1-1/+0
2020-09-10swiotlb: Mark max_segment with static keywordAndy Shevchenko1-1/+1
2020-09-10swiotlb: Use %pa to print phys_addr_t variablesAndy Shevchenko1-3/+1
2020-09-01mm: cma: use CMA_MAX_NAME to define the length of cma name arrayBarry Song1-1/+1
2020-09-01dma-contiguous: provide the ability to reserve per-numa CMABarry Song2-10/+101
2020-08-27dma-pool: Fix an uninitialized variable bug in atomic_pool_expand()Dan Carpenter1-1/+1
2020-08-20Merge tag 'dma-mapping-5.9-1' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds2-71/+87
2020-08-15Merge tag 'sh-for-5.9' of git://git.libc.org/linux-shLinus Torvalds1-0/+3
2020-08-14dma-mapping: consolidate the NO_DMA definition in kernel/dma/KconfigChristoph Hellwig1-0/+3
2020-08-14dma-debug: remove debug_dma_assert_idle() functionLinus Torvalds2-50/+1
2020-08-14dma-debug: fix debug_dma_assert_idle(), use rcu_read_lock()Hugh Dickins1-18/+9
2020-08-14dma-pool: Only allocate from CMA when in same memory zoneNicolas Saenz Julienne1-1/+30
2020-08-14dma-pool: fix coherent pool allocations for IOMMU mappingsChristoph Hellwig2-70/+57
2020-08-04Merge tag 'docs-5.9' of git://git.lwn.net/linuxLinus Torvalds1-1/+1
2020-08-04Merge tag 'dma-mapping-5.9' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds6-104/+238
2020-08-04Merge tag 'uninit-macro-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2020-07-28dma-contiguous: cleanup dma_alloc_contiguousChristoph Hellwig1-17/+14
2020-07-19dma-debug: use named initializers for dir2nameChristoph Hellwig1-2/+6
2020-07-19dma-mapping: add a dma_ops_bypass flag to struct deviceChristoph Hellwig2-22/+60
2020-07-19dma-mapping: make support for dma ops optionalChristoph Hellwig2-1/+6
2020-07-16treewide: Remove uninitialized_var() usageKees Cook1-1/+1
2020-07-16dma-mapping: inline the fast path dma-direct callsChristoph Hellwig1-65/+0
2020-07-16dma-mapping: move the remaining DMA API calls out of lineChristoph Hellwig2-9/+164
2020-07-14dma-pool: do not allocate pool memory from CMANicolas Saenz Julienne1-9/+2
2020-07-14dma-pool: make sure atomic pool suits deviceNicolas Saenz Julienne1-20/+37
2020-07-14dma-pool: introduce dma_guess_pool()Nicolas Saenz Julienne1-3/+23
2020-07-14dma-pool: get rid of dma_in_atomic_pool()Nicolas Saenz Julienne1-10/+1
2020-07-14dma-direct: provide function to check physical memory area validityNicolas Saenz Julienne1-1/+1
2020-07-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netLinus Torvalds2-0/+16
2020-06-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfDavid S. Miller2-0/+16
2020-06-30dma-mapping: Add a new dma_need_sync APIChristoph Hellwig2-0/+16
2020-06-29dma-mapping: warn when coherent pool is depletedDavid Rientjes1-1/+5
2020-06-26docs: fix references for DMA*.txt filesMauro Carvalho Chehab1-1/+1
2020-06-23dma-remap: align the size in dma_common_*_remap()Eric Auger1-2/+3
2020-06-23dma-mapping: DMA_COHERENT_POOL should select GENERIC_ALLOCATORChristoph Hellwig1-1/+1
2020-06-23dma-direct: add missing set_memory_decrypted() for coherent mappingDavid Rientjes1-0/+6
2020-06-17dma-direct: check return value when encrypting or decrypting memoryDavid Rientjes1-5/+14
2020-06-17dma-direct: re-encrypt memory if dma_direct_alloc_pages() failsDavid Rientjes1-1/+6
2020-06-17dma-direct: always align allocation size in dma_direct_alloc_pages()David Rientjes1-7/+10
2020-06-17dma-direct: mark __dma_direct_alloc_pages staticChristoph Hellwig1-1/+1
2020-06-17dma-direct: re-enable mmap for !CONFIG_MMUChristoph Hellwig2-14/+1
2020-06-15dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOLDavid Rientjes1-5/+5
2020-06-09dma-pool: fix too large DMA pools on medium memory size systemsGeert Uytterhoeven1-4/+3
2020-06-06Merge tag 'dma-mapping-5.8' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds7-136/+318
2020-06-02dma-mapping: use vmap insted of reimplementing itChristoph Hellwig1-36/+12
2020-04-25dma-contiguous: fix comment for dma_release_from_contiguousPeter Collingbourne1-2/+2
2020-04-25dma-pool: scale the default DMA coherent pool size with memory capacityDavid Rientjes1-2/+12
2020-04-25dma-pool: add pool sizes to debugfsDavid Rientjes1-0/+30
2020-04-25dma-direct: atomic allocations must come from atomic coherent poolsDavid Rientjes2-10/+63
2020-04-25dma-pool: dynamically expanding atomic poolsDavid Rientjes1-38/+84
2020-04-20dma-pool: add additional coherent pools to map to gfp maskDavid Rientjes2-49/+83
2020-04-20dma-remap: separate DMA atomic pools from direct remap codeDavid Rientjes4-121/+130
2020-04-20dma-debug: make __dma_entry_alloc_check_leak() staticJason Yan1-1/+1
2020-04-08dma-debug: fix displaying of dma allocation typeGrygorii Strashko1-3/+6
2020-04-08dma-direct: fix data truncation in dma_direct_get_required_mask()Kishon Vijay Abraham I1-1/+2
2020-04-04Merge tag 'dma-mapping-5.7' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds2-17/+21
2020-03-17dma-mapping: Fix dma_pgprot() for unencrypted coherent pagesThomas Hellstrom1-0/+2
2020-03-16dma-direct: provide a arch_dma_clear_uncached hookChristoph Hellwig1-0/+2
2020-03-16dma-direct: make uncached_kernel_address more generalChristoph Hellwig1-4/+6
2020-03-16dma-direct: consolidate the error handling in dma_direct_alloc_pagesChristoph Hellwig1-7/+6
2020-03-16dma-coherent: fix integer overflow in the reserved-memory dma allocationKevin Grandemange1-6/+7
2020-02-05dma-direct: improve DMA mask overflow reportingChristoph Hellwig1-14/+7
2020-02-05dma-direct: improve swiotlb error reportingChristoph Hellwig2-28/+30
2020-02-05dma-direct: relax addressability checks in dma_direct_supportedChristoph Hellwig1-13/+11
2020-01-30dma-contiguous: CMA: give precedence to cmdlineNicolas Saenz Julienne1-1/+8
2019-12-04lib/genalloc.c: rename addr_in_gen_pool to gen_pool_has_addrHuang Shijie1-1/+1
2019-11-28Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torval...Linus Torvalds8-172/+183
2019-11-25Merge tag 'printk-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-1/+1
2019-11-21dma-mapping: treat dev->bus_dma_mask as a DMA limitNicolas Saenz Julienne1-14/+13
2019-11-21Merge branch 'for-next/zone-dma' of git://git.kernel.org/pub/scm/linux/kernel...Christoph Hellwig1-7/+6
2019-11-20dma-direct: exclude dma_direct_map_resource from the min_low_pfn checkChristoph Hellwig2-3/+3
2019-11-20dma-direct: don't check swiotlb=force in dma_direct_map_resourceChristoph Hellwig1-1/+1
2019-11-20dma-debug: clean up put_hash_bucket()Dan Carpenter1-11/+9
2019-11-20dma-mapping: drop the dev argument to arch_sync_dma_for_*Christoph Hellwig1-7/+7
2019-11-11dma-debug: increase HASH_SIZEEric Dumazet1-2/+2
2019-11-11dma-debug: reorder struct dma_debug_entry fieldsEric Dumazet1-7/+7
2019-11-11dma-mapping: merge the generic remapping helpers into dma-directChristoph Hellwig2-61/+48
2019-11-11dma-direct: provide mmap and get_sgtable method overridesChristoph Hellwig4-47/+75
2019-11-07dma-direct: remove the dma_handle argument to __dma_direct_alloc_pagesChristoph Hellwig2-3/+3
2019-11-07dma-direct: remove __dma_direct_free_pagesChristoph Hellwig2-10/+5
2019-11-01dma/direct: turn ARCH_ZONE_DMA_BITS into a variableNicolas Saenz Julienne1-7/+6
2019-10-30kernel: dma-contiguous: mark CMA parameters __initdata/__initconstShyam Saini1-4/+5
2019-10-30dma-debug: add a schedule point in debug_dma_dump_mappings()Eric Dumazet1-0/+1
2019-10-30dma-mapping: fix handling of dma-ranges for reserved memory (again)Vladimir Murzin1-7/+9