dma: edma: Provide granular residue accounting
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 6 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 6 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 0/6] dma: edma: Provide granular residue accounting
Quoted 8 lines · Thomas Gleixner
Quoted 5 lines · Russell King - ARM Linux
Quoted 2 lines · Thomas Gleixner
The next obstacle was the missing per SG element reporting. We really can't wait for a full SG list for notification.
Err, dmaengine doesn't have per-SG element reporting.
Quoted 7 lines
enum
dma_residue_granularity{
DMA_RESIDUE_GRANULARITY_DESCRIPTOR= 0,
DMA_RESIDUE_GRANULARITY_SEGMENT= 1,
DMA_RESIDUE_GRANULARITY_BURST= 2,
};tells a different story.
That's to do with the residue though, not to do with callbacks.
Quoted 8 lines
Quoted 4 lines
If it's just that the FIFO is spread over 4 consecutive locations (effectively due to not decoding bits 2,3 of the address bus for the register) then reading the first register four times is just as acceptable as reading them consecutively.
It's not a FIFO. It's four different consecutive registers, which are DMA readable. And you need to read all of them...
Quoted 8 lines
Quoted 5 lines
The reason that kind of thing was done in old days was to allow the ARM ldmia/stmia instructions to be used to access FIFOs, thereby allowing multiple words to be transferred with a single instruction. I can't believe that there's still people designing for that especially if they have a DMA engine...
In that case it's a magic DMA extension superglued beside the already horrible register interface of that particular IP block.
So it's more a copy-from-peripheral-to-memory - a DMA copy operation triggered in a similar manner to the DMA slave mode. There are a number of use cases for this, but no one has yet put their head above the parapet to spear-head that cause. :)
Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.