Re: [PATCH v6 5/6] PCI: dwc: Implement endpoint DMA channel delegation
[email protected] Tue, 04 Aug 2026 03:46:01 +0000
| Newsgroups | org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> Implement the EPC DMA channel delegation operations for DesignWare > endpoint controllers. The DWC backend uses the local DesignWare eDMA > provider to reserve the requested hardware channel and returns it as an > opaque EPC DMA channel handle to generic endpoint functions. >=20 > Validate the requested direction and hardware channel against the > linked-list channel counts before delegation. >=20 > DWC eDMA/HDMA generates DMA requests with a programmable requester > function number. For delegated channels, the host-side dw-edma-pcie > instance bound to the exposed DMA function reserves the channel and > programs its own PCI_FUNC() into the per-channel requester field; the > endpoint-side chip func_no does not participate in that handoff. >=20 > Reject VF requests because the RC-programmable DWC eDMA/HDMA register > window is assigned to a PF BAR only. >=20 > Reclaim releases the delegated local channel through the DesignWare eDMA > provider, which returns it to endpoint ownership. Propagate the EPC > quiesce request so bind failure paths can release unexposed reservations > without touching DMA engine state. >=20 > Signed-off-by: Koichiro Den <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260804033855.2115= [email protected]?part=3D5