| Age | Commit message (Collapse) | Author | Files | Lines |
|
In some cases it is desired to move a channel to a specific event queue.
Such a use case is audio, where it is preferred that it is served with
highest priority compared to other DMA clients.
Signed-off-by: Peter Ujfalusi <[email protected]>
Acked-by: Sekhar Nori <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
|
|
The following parameters are no longer needed by the edma driver since the
information can be obtained from the IP's CCCFG register:
n_channel, n_region, n_slot and n_tc.
Remove the n_cc as well since in this context it has no meaning. We have
separate edma_soc_info struct/eDMA3_CC instance so this member does not
make any sense (and the driver no longer uses it).
Signed-off-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
|
|
It is no longer in use by the driver or board files.
Signed-off-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
|
|
As Joel pointed out, edma_read_position() uses memcpy_fromio() to read
the parameter ram. That's not synchronized with the internal update as
it does a byte by byte copy. We need to do a 32bit read to get a
consistent value.
Further reading destination and source is pointless. In DEV_TO_MEM
transfers we are only interested in the destination, in MEM_TO_DEV we
care about the source. In MEM_TO_MEM it really does not matter which
one you read.
Simple solution: Remove the pointers, select dest/source via a bool
and return the read value.
Remove the export of this function while at it. The only potential
user is the dmaengine and that's always builtin.
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Sekhar Nori <[email protected]>
Signed-off-by: Joel Fernandes <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
|
|
The edmacc_param struct should follow the layout of the paRAM area in the
HW. Be explicit on the size of the fields (u32) and also mark the struct
as packed to avoid any padding on non 32bit architectures.
Signed-off-by: Peter Ujfalusi <[email protected]>
Acked-by: Joel Fernandes <[email protected]>
Reviewed-and-Tested-by: Joel Fernandes <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
|
|
edma header defines DMA_COMPLETE, this causes issues as commit adfedd9a32e4 move
DMA_SUCCESS to DMA_COMPLETE. edma should properly namespace its defines and
needs a future fix
Reported-by: Olof Johansson <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
|
|
Manual trigger for events missed as a result of splitting a
scatter gather list and DMA'ing it in batches. Add a helper
function to trigger a channel incase any such events are missed.
Signed-off-by: Joel Fernandes <[email protected]>
Acked-by: Sekhar Nori <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
|
|
EDMA supports a cross bar which provides ability
to mux additional events into physical channels
present in the channel controller.
This is required when the number of events present
in the system are more than number of available
physical channels.
Changes by Joel:
* Split EDMA xbar support out of original EDMA DT parsing patch
to keep it easier for review.
* Rewrite shift and offset calculation.
Suggested-by: Sekhar Nori <[email protected]>
Suggested by: Andy Shevchenko <[email protected]>
Signed-off-by: Joel A Fernandes <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
[[email protected]: fix checkpatch errors and a minor coding improvement]
Signed-off-by: Sekhar Nori <[email protected]>
|
|
Adds support for parsing the TI EDMA DT data into the required EDMA
private API platform data. Enables runtime PM support to initialize
the EDMA hwmod. Enables build on OMAP.
Changes by Joel:
* Setup default one-to-one mapping for queue_priority and queue_tc
mapping as discussed in [1].
* Split out xbar stuff to separate patch. [1]
* Dropped unused DT helper to convert to array
* Fixed dangling pointer issue with Sekhar's changes
[1] https://patchwork.kernel.org/patch/2226761/
Signed-off-by: Matt Porter <[email protected]>
[[email protected]: fix checkpatch errors, build breakages. Introduce
edma_setup_info_from_dt() as part of that effort]
Signed-off-by: Joel A Fernandes <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
|
|
Move mach-davinci/dma.c to common/edma.c so it can be used
by OMAP (specifically AM33xx) as well.
Signed-off-by: Matt Porter <[email protected]>
Acked-by: Chris Ball <[email protected]> # davinci_mmc.c
Acked-by: Mark Brown <[email protected]>
Acked-by: Olof Johansson <[email protected]>
[[email protected]: dropped davinci sffsdr changes]
Signed-off-by: Sekhar Nori <[email protected]>
|