Re: [PATCH v7 08/10] dmaengine: dw-edma-pcie: Discover endpoint DMA metadata
| Newsgroups | org.kernel.vger.dmaengine,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> Teach dw-edma-pcie to discover a PCI endpoint DMA function from > BAR-resident metadata. The metadata supplies the DMA register window, > channel counts, descriptor windows, optional auxiliary windows, and > endpoint-local descriptor and auxiliary addresses. Accept DesignWare > eDMA unroll, HDMA compatible, and HDMA native linked-list layouts. > > Endpoint-provided DMA channels use raw slave addresses because the host > programs transfers against endpoint physical addresses, not PCI BAR > addresses. The host-side dw-edma-pcie instance is remote-routed by > default, so delegated channels report completions through IMWr/MSI. > > Endpoint DMA metadata currently has no static PCI ID. Let an explicit > driver_override bind use the generic endpoint DMA metadata parser, but > do not treat arbitrary dynamic IDs without driver data as endpoint DMA > devices. > > The endpoint polls HOST_REQ at a low idle rate before programming DMA > window submaps and setting READY. Let the host wait for several endpoint > poll periods before treating the READY handshake as timed out. > > Signed-off-by: Koichiro Den <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=8