The code looks good to me. I have also verified it on Intel KeemBay platform.
Reviewed-by: Sia Jee Heng
Tested-by: Sia Jee Heng
Thanks
Regards
Jee Heng
> -Original Message-
> From: Colin King
> Sent: 03 February 2021 9:47 PM
> To: Eugeniy Paltsev ; Vinod Koul
> ; Sia,
handshake number to the AxiDMA.
Without register to the of_dma_controller_register(), data transfer
between memory to device and device to memory operations would failed.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 26
this interface
is not supported by the AxiDMA driver.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 154 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 155 insertions(+)
diff --git a
Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 24 ++-
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-d
Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 11 +++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-dmac
Add support for device_synchronize() callback function to sync with
dmaengine_terminate_sync().
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi
on improve
the descriptor management by replacing Linked List Item (LLI) with
virtual descriptor management, only allocate hardware LLI memories from
DMA memory pool, manage DMA memory pool alloc/destroy based on channel
activity and to support device_sync callback.
Sia Jee Heng (16):
dt-
YAML schemas Device Tree (DT) binding is the new format for DT to replace
the old format. Introduce YAML schemas DT binding for dw-axi-dmac and
remove the old version.
Signed-off-by: Sia Jee Heng
---
.../bindings/dma/snps,dw-axi-dmac.txt | 39 --
.../bindings/dma/snps,dw-axi
descriptors can be allocated within a PAGE_SIZE compare to 16
descriptors in previous version. This solves the problem where an
ALSA driver expects more than 16 DMA descriptors to run.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 164
supported by the AxiDMA driver.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 --
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +
2 files changed, 106 insertions(+), 7 deletions(-)
diff --git a/drivers/dma
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac
Schemas DT binding.
Signed-off-by: Sia Jee Heng
---
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
b
DMA clients
shall invoke dmaengine_tx_status() to understand the number of bytes
been transferred so that the buffer pointer can be updated accordingly.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 43 ---
drivers
Add support for Intel KeemBay DMA registers. These registers are required
to run data transfer between device to memory and memory to device on Intel
KeemBay SoC.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 14 ++
1 file
Add support for Intel KeemBay AxiDMA device handshake programming.
Device handshake number passed in to the AxiDMA shall be written to
the Intel KeemBay AxiDMA hardware handshake registers before DMA
operations are started.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma
Add support for Intel KeemBay AxiDMA to the .compatible field.
The AxiDMA Apb region will be accessible if the compatible string
matches the "intel,kmb-axi-dma".
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 ++
device data transfer
operation. 0-padding functionality is provided to avoid
pre-processing of data on CPU.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 44 ---
1 file changed, 39 insertions(+), 5 deletions(-)
diff
ned-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 92 insertions(+), 20 deletions(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/d
Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index dc7ddf98fd04
> -Original Message-
> From: Andy Shevchenko
> Sent: 23 November 2020 6:23 PM
> To: Sia, Jee Heng
> Cc: vk...@kernel.org; eugeniy.palt...@synopsys.com;
> robh...@kernel.org; dmaeng...@vger.kernel.org; linux-
> ker...@vger.kernel.org; devicet...@vger.kernel.org
>
> -Original Message-
> From: Rob Herring
> Sent: 01 December 2020 6:29 AM
> To: Sia, Jee Heng
> Cc: vk...@kernel.org; eugeniy.palt...@synopsys.com;
> andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org;
> linux-kernel@vger.kernel.org; devicet...@vger.ker
ment by replacing Linked List Item (LLI) with
virtual descriptor management, only allocate hardware LLI memories from
DMA memory pool, manage DMA memory pool alloc/destroy based on channel
activity and to support device_sync callback.
Sia Jee Heng (16):
dt-bindings: dma: Add YAML schemas for d
descriptors can be allocated within a PAGE_SIZE compare to 16
descriptors in previous version. This solves the problem where an
ALSA driver expects more than 16 DMA descriptors to run.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 164
Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 24 ++-
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-d
YAML schemas Device Tree (DT) binding is the new format for DT to replace
the old format. Introduce YAML schemas DT binding for dw-axi-dmac and
remove the old version.
Signed-off-by: Sia Jee Heng
Reviewed-by: Rob Herring
---
.../bindings/dma/snps,dw-axi-dmac.txt | 39
this interface
is not supported by the AxiDMA driver.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 154 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 155 insertions(+)
diff --git a
Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 11 +++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-dmac
handshake number to the AxiDMA.
Without register to the of_dma_controller_register(), data transfer
between memory to device and device to memory operations would failed.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 26
DMA clients
shall invoke dmaengine_tx_status() to understand the number of bytes
been transferred so that the buffer pointer can be updated accordingly.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 43 ---
drivers
Add support for Intel KeemBay DMA registers. These registers are required
to run data transfer between device to memory and memory to device on Intel
KeemBay SoC.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 14 ++
1 file
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac
Schemas DT binding.
Signed-off-by: Sia Jee Heng
Reviewed-by: Rob Herring
---
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/snps
Add support for device_synchronize() callback function to sync with
dmaengine_terminate_sync().
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi
device data transfer
operation. 0-padding functionality is provided to avoid
pre-processing of data on CPU.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 44 ---
1 file changed, 39 insertions(+), 5 deletions(-)
diff
Add support for Intel KeemBay AxiDMA to the .compatible field.
The AxiDMA Apb region will be accessible if the compatible string
matches the "intel,kmb-axi-dma".
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 ++
supported by the AxiDMA driver.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 --
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +
2 files changed, 106 insertions(+), 7 deletions(-)
diff --git a/drivers/dma
Add support for Intel KeemBay AxiDMA device handshake programming.
Device handshake number passed in to the AxiDMA shall be written to
the Intel KeemBay AxiDMA hardware handshake registers before DMA
operations are started.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma
Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index ab145a84b0c0
ned-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 92 insertions(+), 20 deletions(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/d
snps,dma-masters:
description: |
Number of AXI masters supported by the hardware.
enum: [1, 2]
default: 2
Thanks
Regards
Jee Heng
> -Original Message-
> From: Rob Herring
> Sent: 01 December 2020 6:26 AM
> To: Sia, Jee Heng
> Cc: vk...@kernel.o
Hi Rob,
I think I still need the 'ref', but can remove the 'allOf'.
Thanks
Regards
Jee Heng
> -Original Message-
> From: Sia, Jee Heng
> Sent: 09 December 2020 11:21 AM
> To: Rob Herring
> Cc: vk...@kernel.org; eugeniy.palt...@synopsys.com;
> and
> -Original Message-
> From: Eugeniy Paltsev
> Sent: 19 November 2020 7:58 AM
> To: Sia, Jee Heng
> Cc: andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org; linux-
> ker...@vger.kernel.org; devicet...@vger.kernel.org; vk...@kernel.org;
> robh...@ker
> -Original Message-
> From: Eugeniy Paltsev
> Sent: 19 November 2020 8:10 AM
> To: Sia, Jee Heng ; vk...@kernel.org;
> robh...@kernel.org
> Cc: andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org; linux-
> ker...@vger.kernel.org; devicet...@vger.ker
> -Original Message-
> From: Eugeniy Paltsev
> Sent: 19 November 2020 7:59 AM
> To: Sia, Jee Heng
> Cc: andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org; linux-
> ker...@vger.kernel.org; devicet...@vger.kernel.org
> Subject: Re: [PATCH v4 13/15] dmaeng
concern.
> -----Original Message-
> From: Sia, Jee Heng
> Sent: 20 November 2020 8:47 AM
> To: Eugeniy Paltsev
> Cc: andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org; linux-
> ker...@vger.kernel.org; devicet...@vger.kernel.org
> Subject: RE: [PATCH v4 13/15] dmaen
Support IEC958 encoded PCM format for ADV7511 so that ADV7511 HDMI
audio driver can accept the IEC958 data from the I2S input.
Signed-off-by: Sia Jee Heng
---
drivers/gpu/drm/bridge/adv7511/adv7511.h | 1 +
drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 6 ++
2 files changed, 7
_
From: Eugeniy Paltsev
Sent: 18 January 2021 8:54 PM
To: Sia, Jee Heng ; vk...@kernel.org
Cc: andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org;
linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; robh...@kernel.org
Subject: Re: [PATCH v9 00/16] dmaengine: dw-axi-dmac: support Int
YAML schemas Device Tree (DT) binding is the new format for DT to replace
the old format. Introduce YAML schemas DT binding for dw-axi-dmac and
remove the old version.
Signed-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Reviewed-by: Rob Herring
---
.../bindings/dma/snps,dw-axi-dmac.txt
n improve
the descriptor management by replacing Linked List Item (LLI) with
virtual descriptor management, only allocate hardware LLI memories from
DMA memory pool, manage DMA memory pool alloc/destroy based on channel
activity and to support device_sync callback.
Sia Jee Heng (16):
dt-bindi
The DMA memory block is created at driver load time and exist for
device lifetime. Move the dma_pool_create() to the ->chan_resource()
callback function allowing the DMA memory blocks to be created as needed
and destroyed when the channel is freed.
Signed-off-by: Sia Jee Heng
Reviewed-by: A
supported by the AxiDMA driver.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 --
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +
2 files changed
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac
Schemas DT binding.
Signed-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Reviewed-by: Rob Herring
---
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +
1 file changed, 5 insertions(+)
diff --git a/Documentation
DMA clients
shall invoke dmaengine_tx_status() to understand the number of bytes
been transferred so that the buffer pointer can be updated accordingly.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw
handshake number to the AxiDMA.
Without register to the of_dma_controller_register(), data transfer
between memory to device and device to memory operations would failed.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw
Add support for Intel KeemBay AxiDMA device handshake programming.
Device handshake number passed in to the AxiDMA shall be written to
the Intel KeemBay AxiDMA hardware handshake registers before DMA
operations are started.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by
device data transfer
operation. 0-padding functionality is provided to avoid
pre-processing of data on CPU.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 27
Add support for Intel KeemBay DMA registers. These registers are required
to run data transfer between device to memory and memory to device on Intel
KeemBay SoC.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
drivers/dma
Add support for Intel KeemBay AxiDMA to the .compatible field.
The AxiDMA Apb region will be accessible if the compatible string
matches the "intel,kmb-axi-dma".
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
d
ned-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 92 insertions(+), 20 deletions(-)
diff --git a/drivers/dma/dw-axi-d
Add support for DMA Scatter-Gather (SG) constraint so that DMA clients can
handle the AxiDMA limitation.
Without supporting DMA constraint the default Max segment size reported by
dmaengine is 64KB, which is not supported by Intel KeemBay AxiDMA.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy
this interface
is not supported by the AxiDMA driver.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 154 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h
Add device_config() callback function so that the device address
can be passed to the dma driver.
DMA clients use this interface to pass in the device address to the
AxiDMA. Without this interface, data transfer between device to memory
and memory to device would failed.
Signed-off-by: Sia Jee
Add support for device_synchronize() callback function to sync with
dmaengine_terminate_sync().
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
1 file changed, 8
descriptors can be allocated within a PAGE_SIZE compare to 16
descriptors in previous version. This solves the problem where an
ALSA driver expects more than 16 DMA descriptors to run.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
this interface
is not supported by the AxiDMA driver.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 154 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h
Add support for device_synchronize() callback function to sync with
dmaengine_terminate_sync().
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
1 file changed, 8
DMA clients
shall invoke dmaengine_tx_status() to understand the number of bytes
been transferred so that the buffer pointer can be updated accordingly.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw
device data transfer
operation. 0-padding functionality is provided to avoid
pre-processing of data on CPU.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 26
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac
Schemas DT binding.
Signed-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Reviewed-by: Rob Herring
---
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +
1 file changed, 5 insertions(+)
diff --git a/Documentation
Add support for Intel KeemBay AxiDMA device handshake programming.
Device handshake number passed in to the AxiDMA shall be written to
the Intel KeemBay AxiDMA hardware handshake registers before DMA
operations are started.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by
Add support for DMA Scatter-Gather (SG) constraint so that DMA clients can
handle the AxiDMA limitation.
Without supporting DMA constraint the default Max segment size reported by
dmaengine is 64KB, which is not supported by Intel KeemBay AxiDMA.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy
handshake number to the AxiDMA.
Without register to the of_dma_controller_register(), data transfer
between memory to device and device to memory operations would failed.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw
Add support for Intel KeemBay DMA registers. These registers are required
to run data transfer between device to memory and memory to device on Intel
KeemBay SoC.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
drivers/dma
Add device_config() callback function so that the device address
can be passed to the dma driver.
DMA clients use this interface to pass in the device address to the
AxiDMA. Without this interface, data transfer between device to memory
and memory to device would failed.
Signed-off-by: Sia Jee
supported by the AxiDMA driver.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 --
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +
2 files changed
The DMA memory block is created at driver load time and exist for
device lifetime. Move the dma_pool_create() to the ->chan_resource()
callback function allowing the DMA memory blocks to be created as needed
and destroyed when the channel is freed.
Signed-off-by: Sia Jee Heng
Reviewed-by: A
descriptors can be allocated within a PAGE_SIZE compare to 16
descriptors in previous version. This solves the problem where an
ALSA driver expects more than 16 DMA descriptors to run.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
YAML schemas Device Tree (DT) binding is the new format for DT to replace
the old format. Introduce YAML schemas DT binding for dw-axi-dmac and
remove the old version.
Signed-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Reviewed-by: Rob Herring
---
.../bindings/dma/snps,dw-axi-dmac.txt
Add support for Intel KeemBay AxiDMA to the .compatible field.
The AxiDMA Apb region will be accessible if the compatible string
matches the "intel,kmb-axi-dma".
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
d
ned-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 92 insertions(+), 20 deletions(-)
diff --git a/drivers/dma/dw-axi-d
dw-axi-dma driver. This version improve
the descriptor management by replacing Linked List Item (LLI) with
virtual descriptor management, only allocate hardware LLI memories from
DMA memory pool, manage DMA memory pool alloc/destroy based on channel
activity and to support device_sync callba
> -Original Message-
> From: Eugeniy Paltsev
> Sent: 31 December 2020 8:44 PM
> To: Sia, Jee Heng ; Vinod Koul
>
> Cc: andriy.shevche...@linux.intel.com; dmaeng...@vger.kernel.org;
> linux-kernel@vger.kernel.org; devicet...@vger.kernel.org;
> robh...@kernel.o
ry pool, manage DMA memory pool alloc/destroy based on channel
activity and to support device_sync callback.
Sia Jee Heng (16):
dt-bindings: dma: Add YAML schemas for dw-axi-dmac
dmaengine: dw-axi-dmac: simplify descriptor management
dmaengine: dw-axi-dmac: move dma_pool_create() to
alloc_chan_res
Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 24 ++-
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-d
Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 11 +++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-dmac
handshake number to the AxiDMA.
Without register to the of_dma_controller_register(), data transfer
between memory to device and device to memory operations would failed.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 26
DMA clients
shall invoke dmaengine_tx_status() to understand the number of bytes
been transferred so that the buffer pointer can be updated accordingly.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 43 ---
drivers
Add support for device_synchronize() callback function to sync with
dmaengine_terminate_sync().
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac
Schemas DT binding.
Signed-off-by: Sia Jee Heng
Reviewed-by: Rob Herring
---
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/snps
Add support for Intel KeemBay AxiDMA device handshake programming.
Device handshake number passed in to the AxiDMA shall be written to
the Intel KeemBay AxiDMA hardware handshake registers before DMA
operations are started.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma
Add support for Intel KeemBay AxiDMA to the .compatible field.
The AxiDMA Apb region will be accessible if the compatible string
matches the "intel,kmb-axi-dma".
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 ++
device data transfer
operation. 0-padding functionality is provided to avoid
pre-processing of data on CPU.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 27 +++
1 file changed, 27 insertions(+)
diff --git a/drivers/dma
supported by the AxiDMA driver.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 --
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +
2 files changed, 106 insertions(+), 7 deletions(-)
diff --git a/drivers/dma
Add support for Intel KeemBay DMA registers. These registers are required
to run data transfer between device to memory and memory to device on Intel
KeemBay SoC.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 14 ++
1 file
ned-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 111 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 92 insertions(+), 20 deletions(-)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/d
this interface
is not supported by the AxiDMA driver.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 154 ++
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 155 insertions(+)
diff --git a
Jee Heng
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index ea527b92e0fc
YAML schemas Device Tree (DT) binding is the new format for DT to replace
the old format. Introduce YAML schemas DT binding for dw-axi-dmac and
remove the old version.
Signed-off-by: Sia Jee Heng
Reviewed-by: Rob Herring
---
.../bindings/dma/snps,dw-axi-dmac.txt | 39
descriptors can be allocated within a PAGE_SIZE compare to 16
descriptors in previous version. This solves the problem where an
ALSA driver expects more than 16 DMA descriptors to run.
Reviewed-by: Andy Shevchenko
Signed-off-by: Sia Jee Heng
---
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c| 164
descriptors can be allocated within a PAGE_SIZE compare to 16
descriptors in previous version. This solves the problem where an
ALSA driver expects more than 16 DMA descriptors to run.
Signed-off-by: Sia Jee Heng
Reviewed-by: Andy Shevchenko
Reviewed-by: Eugeniy Paltsev
Tested-by: Eugeniy Paltsev
onstraint to Max segment size.
v1:
- Initial version. Patch on top of dw-axi-dma driver. This version improve
the descriptor management by replacing Linked List Item (LLI) with
virtual descriptor management, only allocate hardware LLI memories from
DMA memory pool, manage DMA memory pool allo
YAML schemas Device Tree (DT) binding is the new format for DT to replace
the old format. Introduce YAML schemas DT binding for dw-axi-dmac and
remove the old version.
Signed-off-by: Sia Jee Heng
Reviewed-by: Eugeniy Paltsev
Reviewed-by: Rob Herring
---
.../bindings/dma/snps,dw-axi-dmac.txt
1 - 100 of 226 matches
Mail list logo