On Fri, Dec 22, 2023 at 04:01:43PM +0000, Jiaxun Yang wrote:
But arch_setup_dma_ops() is called only from of_dma_configure_id() and
acpi_dma_configure_id(). So it works only for DT and ACPI devices. What
about platform_device?
Ah I see, that's the problem, in MIPS's use case all DMA capable devices
are following platform's default coherency. For RISC-V we assume all device
are enabled by ACPI or DT.
Perhaps you can override it in driver, but that will make drivers platform
dependent.
I'll leave this question to Christoph.
I've already said it. You must not have DMA capable devices that aren't
declared in ACPI or OF, just like on any modern Linux platform.
What devices are you concerned about anyway Maxim?