On Thu, 29 Aug 2024 21:20:46 +0200 Marc Kleine-Budde wrote: > + if (IS_ENABLED(CONFIG_ARCH_DMA_ADDR_T_64BIT)) > + dma_set_mask_and_coherent(&pcie->pci->dev, DMA_BIT_MASK(64)); This IS_ENABLED() is quite unusual. The driver just advertises its capability of using 64 addressing. If the platform doesn't support 64b DMA addressing and therefore dma_addr_t is narrower, everything will still work. I could be wrong, but that's how I understand it.