aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/dma/direct.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-28dma-direct: Leak pages on dma_set_decrypted() failureRick Edgecombe1-4/+5
2023-12-15dma-mapping: don't store redundant offsetsRobin Murphy1-1/+0
2023-11-06dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover all sy...Jia He1-0/+40
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 Hellwig1-10/+2
2023-08-01swiotlb: if swiotlb is full, fall back to a transient memory poolPetr Tesarik1-1/+1
2023-06-19dma-mapping: name SG DMA flag helpers consistentlyRobin Murphy1-1/+1
2023-03-28dma-direct: cleanup parameters to dma_direct_optimal_gfp_maskPetr Tesarik1-8/+7
2022-08-06Merge tag 'dma-mapping-5.20-2022-08-06' of git://git.infradead.org/users/hch/...Linus Torvalds1-6/+37
2022-07-26dma-direct: support PCI P2PDMA pages in dma-direct map_sgLogan Gunthorpe1-6/+37
2022-06-23dma-direct: use the correct size for dma_set_encrypted()Dexuan Cui1-3/+2
2022-05-23dma-direct: don't over-decrypt memoryRobin Murphy1-2/+2
2022-05-11dma-direct: don't fail on highmem CMA pages in dma_direct_alloc_pagesChristoph Hellwig1-17/+10
2022-04-01dma-mapping: move pgprot_decrypted out of dma_pgprotChristoph Hellwig1-2/+8
2022-03-03dma-mapping: remove CONFIG_DMA_REMAPChristoph Hellwig1-11/+7
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-09-03Merge branch 'stable/for-linus-5.15' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-15/+42
2021-08-18dma-direct: add support for dma_coherent_default_memoryChristoph Hellwig1-0/+15
2021-08-09dma-direct: return appropriate error code from dma_direct_map_sg()Logan Gunthorpe1-1/+1
2021-07-13swiotlb: Add restricted DMA alloc/free supportClaire Chang1-12/+37
2021-07-13swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncingClaire Chang1-1/+1
2021-07-13swiotlb: Update is_swiotlb_active to add a struct device argumentClaire Chang1-1/+1
2021-07-13swiotlb: Update is_swiotlb_buffer to add a struct device argumentClaire Chang1-3/+3
2021-03-17swiotlb: split swiotlb_tbl_sync_singleChristoph Hellwig1-4/+4
2020-11-18dma-mapping: remove the dma_direct_set_offset exportChristoph Hellwig1-1/+0
2020-10-16kernel/: fix repeated words in commentsRandy Dunlap1-1/+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: move large parts of <linux/dma-direct.h> to kernel/dmaChristoph Hellwig1-1/+1
2020-10-06dma-mapping: merge <linux/dma-contiguous.h> into <linux/dma-map-ops.h>Christoph Hellwig1-1/+0
2020-10-06dma-mapping: split <linux/dma-mapping.h>Christoph Hellwig1-0/+1
2020-09-25dma-mapping: add a new dma_alloc_pages APIChristoph Hellwig1-1/+51
2020-09-17dma-mapping: introduce DMA range map, supplanting dma_pfn_offsetJim Quinlan1-2/+49
2020-09-11dma-direct: rename and cleanup __phys_to_dmaChristoph Hellwig1-4/+4
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 Hellwig1-24/+15
2020-09-11dma-mapping: add (back) arch_dma_mark_clean for ia64Christoph Hellwig1-0/+3
2020-08-14dma-pool: fix coherent pool allocations for IOMMU mappingsChristoph Hellwig1-4/+9
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 Hellwig1-9/+0
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 Torvalds1-0/+6
2020-06-30dma-mapping: Add a new dma_need_sync APIChristoph Hellwig1-0/+6
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 Hellwig1-14/+0
2020-04-25dma-direct: atomic allocations must come from atomic coherent poolsDavid Rientjes1-7/+39
2020-04-20dma-pool: add additional coherent pools to map to gfp maskDavid Rientjes1-6/+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 Torvalds1-11/+14
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-02-05dma-direct: improve DMA mask overflow reportingChristoph Hellwig1-14/+7
2020-02-05dma-direct: improve swiotlb error reportingChristoph Hellwig1-9/+7
2020-02-05dma-direct: relax addressability checks in dma_direct_supportedChristoph Hellwig1-13/+11
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 Hellwig1-2/+2
2019-11-20dma-direct: don't check swiotlb=force in dma_direct_map_resourceChristoph Hellwig1-1/+1
2019-11-20dma-mapping: drop the dev argument to arch_sync_dma_for_*Christoph Hellwig1-7/+7
2019-11-11dma-mapping: merge the generic remapping helpers into dma-directChristoph Hellwig1-12/+48
2019-11-11dma-direct: provide mmap and get_sgtable method overridesChristoph Hellwig1-0/+59
2019-11-07dma-direct: remove the dma_handle argument to __dma_direct_alloc_pagesChristoph Hellwig1-2/+2
2019-11-07dma-direct: remove __dma_direct_free_pagesChristoph Hellwig1-8/+3
2019-11-01dma/direct: turn ARCH_ZONE_DMA_BITS into a variableNicolas Saenz Julienne1-7/+6
2019-09-11Merge branches 'arm/omap', 'arm/exynos', 'arm/smmu', 'arm/mediatek', 'arm/qco...Joerg Roedel1-1/+1
2019-09-11swiotlb: Split size parameter to map/unmap APIsLu Baolu1-1/+1
2019-08-21dma-direct: fix zone selection after an unaddressable CMA allocationChristoph Hellwig1-1/+9
2019-08-10dma-direct: don't truncate dma_required_mask to bus addressing capabilitiesLucas Stach1-3/+0
2019-08-10dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPINGChristoph Hellwig1-2/+5
2019-07-19dma-direct: correct the physical addr in dma_direct_sync_sg_for_cpu/deviceFugang Duan1-7/+11
2019-07-17dma-direct: only limit the mapping size if swiotlb could be usedChristoph Hellwig1-6/+4
2019-07-16dma-direct: Force unencrypted DMA under SME for certain DMA masksTom Lendacky1-12/+4
2019-06-25dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common codeChristoph Hellwig1-0/+14
2019-06-25dma-direct: handle DMA_ATTR_NON_CONSISTENT in common codeChristoph Hellwig1-2/+2
2019-06-25dma-mapping: add a dma_alloc_need_uncached helperChristoph Hellwig1-2/+2
2019-06-03dma-direct: provide generic support for uncached kernel segmentsChristoph Hellwig1-2/+15
2019-06-03dma-contiguous: add dma_{alloc,free}_contiguous() helpersNicolin Chen1-20/+4
2019-04-08dma-mapping: remove leftover NULL device supportChristoph Hellwig1-1/+1
2019-03-10Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-0/+11
2019-03-10Merge tag 'dma-mapping-5.1' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-0/+14
2019-03-06dma: Introduce dma_max_mapping_size()Joerg Roedel1-0/+11
2019-02-18dma-direct: we might need GFP_DMA for 32-bit dma masksChristoph Hellwig1-2/+1
2019-02-01dma-mapping: remove the default map_resource implementationChristoph Hellwig1-0/+14
2018-12-28Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-93/+129
2018-12-17dma-direct: do not include SME mask in the DMA supported checkLendacky, Thomas1-1/+6
2018-12-13dma-mapping: bypass indirect calls for dma-directChristoph Hellwig1-29/+8
2018-12-13dma-direct: merge swiotlb_dma_ops into the dma_direct codeChristoph Hellwig1-32/+81
2018-12-13dma-direct: use dma_direct_map_page to implement dma_direct_map_sgChristoph Hellwig1-9/+5
2018-12-13dma-direct: improve addressability error reportingChristoph Hellwig1-21/+15
2018-12-06dma-direct: remove the mapping_error dma_map_ops methodChristoph Hellwig1-7/+1
2018-12-01dma-direct: reject highmem pages from dma_alloc_from_contiguousChristoph Hellwig1-0/+12
2018-12-01dma-direct: provide page based alloc/free helpersChristoph Hellwig1-10/+22
2018-10-31mm: remove include/linux/bootmem.hMike Rapoport1-1/+1
2018-10-19swiotlb: remove the overflow bufferChristoph Hellwig1-2/+0
2018-10-09dma-direct: respect DMA_ATTR_NO_WARNChristoph Hellwig1-0/+3
2018-10-09dma-direct: document the zone selection logicChristoph Hellwig1-1/+8
2018-10-05dma-direct: fix return value of dma_direct_supportedAlexander Duyck1-3/+1
2018-10-01dma-direct: always allow dma mask <= physiscal memory sizeChristoph Hellwig1-12/+16
2018-10-01dma-direct: implement complete bus_dma_mask handlingChristoph Hellwig1-10/+11
2018-10-01dma-direct: refine dma_direct_alloc zone selectionChristoph Hellwig1-10/+21
2018-10-01dma-direct: add an explicit dma_direct_get_required_maskChristoph Hellwig1-3/+19
2018-09-20dma-mapping: consolidate the dma mmap implementationsChristoph Hellwig1-11/+0
2018-09-20dma-mapping: merge direct and noncoherent opsChristoph Hellwig1-6/+115
2018-09-01kernel/dma/direct: take DMA offset into account in dma_direct_supportedChristoph Hellwig1-2/+2
2018-08-17kernel/dma: remove unsupported gfp_mask parameter from dma_alloc_from_contigu...Marek Szyprowski1-1/+2
2018-07-27dma-mapping: Generalise dma_32bit_limit flagRobin Murphy1-3/+3
2018-06-14dma-mapping: move all DMA mapping code to kernel/dmaChristoph Hellwig1-0/+204