Commit 4cc14386e350 for kernel

commit 4cc14386e35030d016478b4ab9b10a6a95727003
Merge: 21bd909c7824 7318301e060e
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Wed Jun 17 12:20:21 2026 -0700

    Merge tag 'dma-mapping-7.2-2026-06-16' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux

    Pull dma-mapping updates from Marek Szyprowski:

     - added checks for DMA attributes in the debug code, especially to
       ensure that mappings are created and released with matching
       attributes (Leon Romanovsky)

     - better default configuration for CMA on NUMA machines (Feng Tang)

     - code cleanup in dma benchmark tool (Rosen Penev)

    * tag 'dma-mapping-7.2-2026-06-16' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux:
      dma: map_benchmark: turn dma_sg_map_param buf into a flexible array
      dma-contiguous: simplify numa cma area handling
      dma-contiguous: add kconfig option to setup numa cma area if not configured explicitly
      dma-debug: Ensure mappings are created and released with matching attributes
      dma-debug: Feed DMA attribute for unmapping flows too
      dma-debug: Record DMA attributes in debug entry
      dma-debug: Remove unused DMA attribute parameter
      ntb: Use consistent DMA attributes when freeing DMA mappings
      ntb: Store original DMA address for future release

diff --cc kernel/dma/debug.c
index 2c0e2cd89b5e,c38efc1ac8d6..026d50de340e
--- a/kernel/dma/debug.c
+++ b/kernel/dma/debug.c
@@@ -1250,15 -1280,9 +1280,16 @@@ void debug_dma_map_phys(struct device *
  	entry->size      = size;
  	entry->direction = direction;
  	entry->map_err_type = MAP_ERR_NOT_CHECKED;
+ 	entry->attrs     = attrs;

 -	if (!(attrs & DMA_ATTR_MMIO)) {
 +	if (attrs & DMA_ATTR_MMIO) {
 +		unsigned long pfn = PHYS_PFN(phys);
 +
 +		if (pfn_valid(pfn) && !PageReserved(pfn_to_page(pfn)))
 +			err_printk(dev, entry,
 +				   "dma_map_resource called for RAM address %pa\n",
 +				   &phys);
 +	} else {
  		check_for_stack(dev, phys);

  		if (!PhysHighMem(phys))