riscv: fix issue of no DMA buffer for eth
* By default, dev.coherent_dma_mask is DMA_BIT_MASK(32) for all devices. But when we put the kernel over 4GB physical memory, devices can not get DMA buffer with this default mask. Setting this mask to DMA_BIT_MASK(64) can fix this issue. Note that by default arch_setup_pdev_archdata() is defined as a weak function.
Showing
arch/riscv/mm/dma.c
0 → 100644
想要评论请 注册 或 登录