• Yajun Deng's avatar
    dma-contiguous: support numa CMA for specified node · bf29bfaa
    Yajun Deng authored
    The kernel parameter 'cma_pernuma=' only supports reserving the same
    size of CMA area for each node. We need to reserve different sizes of
    CMA area for specified nodes if these devices belong to different nodes.
    
    Adding another kernel parameter 'numa_cma=' to reserve CMA area for
    the specified node. If we want to use one of these parameters, we need to
    enable DMA_NUMA_CMA.
    
    At the same time, print the node id in cma_declare_contiguous_nid() if
    CONFIG_NUMA is enabled.
    Signed-off-by: default avatarYajun Deng <yajun.deng@linux.dev>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    bf29bfaa
contiguous.c 13.8 KB