Thread (20 messages) 20 messages, 3 authors, 2020-10-01

Re: [PATCH 10/11] soc: ti: k3-ringacc: Use correct device for allocation in RING mode

From: Grygorii Strashko <grygorii.strashko@ti.com>
Date: 2020-09-30 13:58:23
Also in: lkml


On 28/09/2020 11:34, Peter Ujfalusi wrote:
In RING mode the ringacc does not access the ring memory. In this access
mode the ringacc coherency does not have meaning.

If the ring is configured in RING mode, then the ringacc itself will not
access to the ring memory. Only the requester (user) of the ring is going
to read/write to the memory.
Extend the ring configuration parameters with a device pointer to be used
for DMA API when the ring is configured in RING mode.

Extending the ring configuration struct will allow per ring selection of
device to be used for allocation, thus allowing per ring coherency.

To avoid regression, fall back to use the ringacc dev in case the alloc_dev
is not provided.

Signed-off-by: Peter Ujfalusi <redacted>
---
  drivers/soc/ti/k3-ringacc.c       | 14 +++++++++++---
  include/linux/soc/ti/k3-ringacc.h |  5 +++++
  2 files changed, 16 insertions(+), 3 deletions(-)
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>

-- 
Best regards,
grygorii

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help