forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
dma-mux support #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Sutter099
wants to merge
17
commits into
Troyself:duo/v6.12
Choose a base branch
from
Sutter099:duo/dma-mux
base: duo/v6.12
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add devicetree binding for Sophgo CV1800B SoC reset controller. Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Ze Huang <[email protected]> Reviewed-by: Conor Dooley <[email protected]>
Add reset controller support for Sophgo CV1800B SoC reusing the reset-simple driver. Signed-off-by: Jisheng Zhang <[email protected]>
Add the reset device tree node and reset phandle to uart nodes. Although, the resets are deasserted by default. Add them for completeness. Signed-off-by: Jisheng Zhang <[email protected]>
Signed-off-by: AnnanLiu <[email protected]> Signed-off-by: Ze Huang <[email protected]>
…driver Commit 8ec99b0 ("irqchip/sifive-plic: Convert PLIC driver into aplatform driver")[1] broke timer initialization because the PLIC IRQdomain is no longer available in a TIMER_OF_DECLARE. The following error was observed: [ 0.024789] irq: no irq domain found for interrupt-controller@70000000 ! Following [2], fix this by moving the IRQ handling code to a platform driver. Tested by changing system clocksource. Link: https://lore.kernel.org/linux-arm-kernel/[email protected]/ [1] Link: https://lore.kernel.org/linux-riscv/[email protected]/ [2] Signed-off-by: Ze Huang <[email protected]>
Signed-off-by: Ze Huang <[email protected]>
dw_apb_timer_of cannot get clock resource without name "timer". Signed-off-by: Ze Huang <[email protected]>
The DMA IP of Sophgo CV18XX/SG200X is based on a DW AXI CORE, with an additional channel remap register located in the top system control area. The DMA channel is exclusive to each core. In addition, the DMA multiplexer is a subdevice of system controller, so this binding only contains necessary properties for the multiplexer itself. Add the dmamux binding for CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Conor Dooley <[email protected]>
Sophgo CV18XX/SG200X use DW AXI CORE with a multiplexer for remapping its request lines. The multiplexer supports at most 8 request lines. Add driver for Sophgo CV18XX/SG200X DMA multiplexer. Signed-off-by: Inochi Amaoto <[email protected]>
On platforms other than Intel KeemBay AxiDMA, apb_regs are not supported. Add a check on apb_regs to prevent unnecessary calls to dw_axi_dma_set_hw_channel and dw_axi_dma_set_byte_halfword.
|
you tested it on loopback mode. did you? |
The Duo DMA controller supports a 32-bit bus width. If the configuration is incorrect, the DMA block transfer size may exceed the hardware's maximum supported size, resulting in data loss during transfers. Link to tests: https://gist.github.com/Sutter099/4fa99bb2d89e5af975983124704b3861 Signed-off-by: Ze Huang <[email protected]>
Author
|
Yes, tested in mem2mem mode. https://gist.github.com/Sutter099/4fa99bb2d89e5af975983124704b3861 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This series of patches adds support for DMA multiplexing (DMA-MUX) on the CV18XX/SG200X platform.
The CV18XX/SG200X platform uses the DesignWare AXI DMA IP, which includes an additional channel mapping register in the system control region. This register is used to configure the physical DMA channels to different peripherals. Each core has exclusive access to its DMA channels.
Testing was performed with UART1 using following dts configs:
Both transmit and receive operations work correctly in DMA mode.