[PATCH v4 1/2] dw-xdata-pcie: Fix documentation build warns

2021-04-10 Thread Gustavo Pimentel
Fixes: e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver") Link: https://lore.kernel.org/linux-next/20210406214615.40cf3...@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pci

[PATCH v4 2/2] dw-xdata-pcie: Update outdated info and improve text format

2021-04-10 Thread Gustavo Pimentel
Removes old information related to the stop file interface in sysfs left by mistake during patch revision. Improves the document text format to be more user-friendly and adds basic driver related information, such as support, datasheet, and author. Signed-off-by: Gustavo Pimentel

[PATCH v4 0/2] dw-xdata-pcie: Fix documentation build warns

2021-04-10 Thread Gustavo Pimentel
: Krzysztof Wilczy??ski Cc: Stephen Rothwell Gustavo Pimentel (2): dw-xdata-pcie: Fix documentation build warns dw-xdata-pcie: Update outdated info and improve text format Documentation/misc-devices/dw-xdata-pcie.rst | 76 ++-- Documentation/misc-devices/index.rst

RE: [PATCH v2 1/2] Documentation: misc-devices: Fix indentation, formatting, and update outdated info

2021-04-07 Thread Gustavo Pimentel
On Wed, Apr 7, 2021 at 18:35:16, Greg Kroah-Hartman wrote: > On Wed, Apr 07, 2021 at 03:57:31PM +0000, Gustavo Pimentel wrote: > > On Wed, Apr 7, 2021 at 7:17:12, Greg Kroah-Hartman > > wrote: > > > > > On Tue, Apr 06, 2021 at 11:17:48PM +0200, Gustavo

[PATCH v3 2/2] misc-device: Add dw-xdata-pcie to toctree(index)

2021-04-07 Thread Gustavo Pimentel
("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver") Link: https://lore.kernel.org/linux-next/20210406214615.40cf3...@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/index.rst | 1 + 1 file changed, 1

[PATCH v3 0/2] dw-xdata-pcie: Fix documentation build warns

2021-04-07 Thread Gustavo Pimentel
Kroah-Hartman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Cc: Stephen Rothwell Gustavo Pimentel (2): dw-xdata-pcie: Fix documentation build warns and update outdated info misc-device: Add dw-xdata-pcie to toctree(index) Documentation/misc-devices/dw-xdata-pcie.rst | 62

[PATCH v3 1/2] dw-xdata-pcie: Fix documentation build warns and update outdated info

2021-04-07 Thread Gustavo Pimentel
xdata-pcie driver") Link: https://lore.kernel.org/linux-next/20210406214615.40cf3...@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 62 +++- 1 file changed, 43 insertions(+), 19

RE: [PATCH v2 1/2] Documentation: misc-devices: Fix indentation, formatting, and update outdated info

2021-04-07 Thread Gustavo Pimentel
On Wed, Apr 7, 2021 at 7:17:12, Greg Kroah-Hartman wrote: > On Tue, Apr 06, 2021 at 11:17:48PM +0200, Gustavo Pimentel wrote: > > Fixes indentation issues reported by doing *make htmldocs* as well some > > text formatting. > > > > Besides these fixes, there wa

[PATCH v2 2/2] Documentation: misc-devices: Add missing entry on the table of content related to dw-xdata-pcie

2021-04-06 Thread Gustavo Pimentel
4615.40cf3...@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/misc-devices/index.rst b/Documentation/misc-devices/index.rst index 64420b331..30ac58f 100644 --- a/Doc

[PATCH v2 1/2] Documentation: misc-devices: Fix indentation, formatting, and update outdated info

2021-04-06 Thread Gustavo Pimentel
nk: https://lore.kernel.org/linux-next/20210406214615.40cf3...@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 62 +++- 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/Doc

[PATCH v2 0/2] Documentation: misc-devices: Fix documentation issues (indentation, text format, toc) and outdated information

2021-04-06 Thread Gustavo Pimentel
: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Cc: Stephen Rothwell Gustavo Pimentel (2): Documentation: misc-devices: Fix indentation, formatting, and update outdated info Documentation: misc-devices: Add missing entry on the table of content related to dw-xdata-pcie

[PATCH] Documentation: misc-devices: Add missing entry on the table of content related to dw-xdata-pcie

2021-04-06 Thread Gustavo Pimentel
Add missing entry on the table of content related to dw-xdata-pcie misc driver reported in a warning by doing *make htmldocs*. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/misc-devices/index.rst b

[PATCH] Documentation: misc-devices: Fix indentation, formatting, and update outdated info

2021-04-06 Thread Gustavo Pimentel
Fixes indentation issues reported by doing *make htmldocs* as well some text formatting. Besides these fixes, there was some outdated information related to stop file interface in sysfs. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 62

RE: linux-next: build warning after merge of the char-misc tree

2021-04-06 Thread Gustavo Pimentel
On Tue, Apr 6, 2021 at 15:15:40, Greg KH wrote: > On Tue, Apr 06, 2021 at 02:13:53PM +0000, Gustavo Pimentel wrote: > > On Tue, Apr 6, 2021 at 15:7:23, Greg KH wrote: > > > > > On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote: > > > > Hi

[PATCH v11 3/4] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-04-06 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v11 2/4] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-04-06 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 64 Documentation/misc-devices/index.rst | 1 + 2 files changed, 65 insertions(+) create mode 100644 Documentation/misc-devices

[PATCH v11 4/4] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-04-06 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 49 1 file changed, 49 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v11 0/4] misc: Add Synopsys DesignWare xData IP driver

2021-04-06 Thread Gustavo Pimentel
eg Kroah-Hartman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Cc: Stephen Rothwell Gustavo Pimentel (4): misc: Add Synopsys DesignWare xData IP driver Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver MAINTAINERS: Add Synopsys xData IP driver ma

[PATCH v11 1/4] misc: Add Synopsys DesignWare xData IP driver

2021-04-06 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile| 1 + drivers/misc/dw-xdata-pcie.c

RE: linux-next: build warning after merge of the char-misc tree

2021-04-06 Thread Gustavo Pimentel
On Tue, Apr 6, 2021 at 15:7:23, Greg KH wrote: > On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the char-misc tree, today's linux-next build (htmldocs) > > produced this warning: > > > > Documentation/misc-devices/dw-xdata-pcie.rst:20:

[PATCH v10 2/4] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc

[PATCH v10 3/4] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-03-29 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v10 4/4] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 49 1 file changed, 49 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v10 0/4] misc: Add Synopsys DesignWare xData IP driver

2021-03-29 Thread Gustavo Pimentel
re() Update ABI documentation accordingly Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Derek Kiernan Cc: Dragan Cvetic Cc: Arnd Bergmann Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??sk

[PATCH v10 1/4] misc: Add Synopsys DesignWare xData IP driver

2021-03-29 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile| 1 + drivers/misc/dw-xdata-pcie.c

RE: [PATCH v9 4/4] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
On Mon, Mar 29, 2021 at 11:40:28, Greg Kroah-Hartman wrote: > On Mon, Mar 29, 2021 at 10:25:25AM +0000, Gustavo Pimentel wrote: > > On Mon, Mar 29, 2021 at 11:8:11, Greg Kroah-Hartman > > wrote: > > > > > On Mon, Mar 29, 2021 at 11:59:40AM +0200, Gustavo Pime

RE: [PATCH v9 4/4] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
On Mon, Mar 29, 2021 at 11:8:11, Greg Kroah-Hartman wrote: > On Mon, Mar 29, 2021 at 11:59:40AM +0200, Gustavo Pimentel wrote: > > This patch describes the sysfs interface implemented on the dw-xdata-pcie > > driver. > > > > Signed-off-by: Gustavo Pimentel >

RE: [PATCH v8 5/5] FIX driver

2021-03-29 Thread Gustavo Pimentel
On Mon, Mar 29, 2021 at 11:3:3, Willy Tarreau wrote: > On Mon, Mar 29, 2021 at 11:51:38AM +0200, Gustavo Pimentel wrote: > > Signed-off-by: Gustavo Pimentel > > Please make an effort, this is in no way an acceptable commit description > for a patch. The subject is already ex

[PATCH v9 0/4] misc: Add Add Synopsys DesignWare xData IP driver

2021-03-29 Thread Gustavo Pimentel
gan Cvetic Cc: Arnd Bergmann Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Gustavo Pimentel (4): misc: Add Synopsys DesignWare xData IP driver Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver MAINT

[PATCH v9 4/4] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 46 1 file changed, 46 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v9 1/4] misc: Add Synopsys DesignWare xData IP driver

2021-03-29 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile| 1 + drivers/misc/dw-xdata-pcie.c

[PATCH v9 2/4] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc

[PATCH v9 3/4] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-03-29 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v8 4/5] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 46 1 file changed, 46 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v8 5/5] FIX driver

2021-03-29 Thread Gustavo Pimentel
Signed-off-by: Gustavo Pimentel --- drivers/misc/dw-xdata-pcie.c | 99 +--- 1 file changed, 57 insertions(+), 42 deletions(-) diff --git a/drivers/misc/dw-xdata-pcie.c b/drivers/misc/dw-xdata-pcie.c index 43fdd35..011516b 100644 --- a/drivers/misc/dw

[PATCH v8 1/5] misc: Add Synopsys DesignWare xData IP driver

2021-03-29 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile| 1 + drivers/misc/dw-xdata-pcie.c

[PATCH v8 3/5] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-03-29 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v8 2/5] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-03-29 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc

[PATCH v8 0/5] misc: Add Add Synopsys DesignWare xData IP driver

2021-03-29 Thread Gustavo Pimentel
artman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Gustavo Pimentel (5): misc: Add Synopsys DesignWare xData IP driver Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver MAINTAINERS: Add Synopsys xData IP driver maintainer docs: ABI: Add sysfs doc

RE: [PATCH v7 1/5] misc: Add Synopsys DesignWare xData IP driver

2021-03-28 Thread Gustavo Pimentel
On Sun, Mar 28, 2021 at 13:49:13, Greg Kroah-Hartman wrote: > On Sat, Mar 27, 2021 at 04:06:51AM +0100, Gustavo Pimentel wrote: > > Add Synopsys DesignWare xData IP driver. This driver enables/disables > > the PCI traffic generator module pertain to the Synopsys DesignWar

[PATCH v7 5/5] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-03-26 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 46 1 file changed, 46 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v7 4/5] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-03-26 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v7 1/5] misc: Add Synopsys DesignWare xData IP driver

2021-03-26 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/dw-xdata-pcie.c | 401 +++ 1 file changed, 401 insertions

[PATCH v7 3/5] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-03-26 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc

[PATCH v7 0/5] misc: Add Add Synopsys DesignWare xData IP driver

2021-03-26 Thread Gustavo Pimentel
: Dragan Cvetic Cc: Arnd Bergmann Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: Jonathan Corbet Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Gustavo Pimentel (5): misc: Add Synopsys DesignWare xData IP driver misc: Add Synopsys DesignWare xData IP driver to Makefile and Kconfig Documentation

[PATCH v7 2/5] misc: Add Synopsys DesignWare xData IP driver to Makefile and Kconfig

2021-03-26 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver to Makefile and Kconfig. This driver enables/disables the PCIe traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile | 1 + 2 files changed

RE: [PATCH v6 1/5] misc: Add Synopsys DesignWare xData IP driver

2021-03-24 Thread Gustavo Pimentel
Hi Greg, On Tue, Mar 23, 2021 at 13:0:4, Greg Kroah-Hartman wrote: > On Fri, Feb 12, 2021 at 06:28:03PM +0100, Gustavo Pimentel wrote: > > +static const struct attribute_group xdata_attr_group = { > > + .attrs = default_attrs, > > + .name =

RE: [PATCH v7 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-18 Thread Gustavo Pimentel
On Thu, Feb 18, 2021 at 19:27:30, Bjorn Helgaas wrote: > On Thu, Feb 18, 2021 at 08:03:58PM +0100, Gustavo Pimentel wrote: > > Add pci_find_vsec_capability() to locate a Vendor-Specific Extended > > Capability with the specified VSEC ID. > > > > The Vendor-Specifi

[PATCH v7 02/15] dmaengine: dw-edma: Fix comments offset characters' alignment

2021-02-18 Thread Gustavo Pimentel
Fix comments offset characters' alignment to follow the same structure of similar comments. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-regs.h | 214 +- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/drivers/dma/dw-edma

[PATCH v7 07/15] dmaengine: dw-edma: Improve number of channels check

2021-02-18 Thread Gustavo Pimentel
It was added some extra checks to ensure that the driver doesn't try to use more DMA channels than actually are available in hardware. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 21 + drivers/dma/dw-edma/dw-edma-core.h | 2 ++ 2 files changed

[PATCH v7 00/15] dmaengine: dw-edma: HDMA support

2021-02-18 Thread Gustavo Pimentel
kernel.org Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Vinod Koul Cc: Dan Williams Cc: Bjorn Helgaas Cc: Krzysztof Wilczy??ski Cc: Lukas Wunner Gustavo Pimentel (15): dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures dmaengine: dw-edma: Fix comments offset c

[PATCH v7 11/15] dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct

2021-02-18 Thread Gustavo Pimentel
Move struct dentry variable from static definition (dw-edma-v0-debugfs.c) into dw_edma struct (dw-edma-core.h) Also the variable was renamed from base_dir to debugfs. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 2 +- drivers/dma/dw-edma/dw-edma-core.h

[PATCH v7 03/15] dmaengine: dw-edma: Add support for the HDMA feature

2021-02-18 Thread Gustavo Pimentel
Add support for the HDMA feature. This new feature enables the current eDMA IP to use a deeper prefetch of the linked list, which reduces the algorithm execution latency observed when loading the elements of the list, causing more stable and higher data transfer. Signed-off-by: Gustavo Pimentel

[PATCH v7 06/15] dmaengine: dw-edma: Add device_prep_interleave_dma() support

2021-02-18 Thread Gustavo Pimentel
Add device_prep_interleave_dma() support to Synopsys DMA driver. This feature implements a similar data transfer mechanism to the scatter-gather implementation. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 85 ++ drivers/dma/dw

[PATCH v7 05/15] dmaengine: dw-edma: Add PCIe VSEC data retrieval support

2021-02-18 Thread Gustavo Pimentel
The latest eDMA IP development implements a Vendor-Specific Extended Capability that contains the eDMA BAR, offset, map format, and the number of read/write channels available. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 20 --- drivers/dma/dw-edma/dw-edma

[PATCH v7 09/15] dmaengine: dw-edma: Improve the linked list and data blocks definition

2021-02-18 Thread Gustavo Pimentel
its own linked list and data space well defined, which allows different sizes and locations. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 51 +- drivers/dma/dw-edma/dw-edma-core.h | 9 +- drivers/dma/dw-edma/dw-edma-pcie.c | 185

[PATCH v7 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-18 Thread Gustavo Pimentel
Add pci_find_vsec_capability() to locate a Vendor-Specific Extended Capability with the specified VSEC ID. The Vendor-Specific Extended Capability (VSEC) allows one or more proprietary capabilities defined by the vendor which aren't standard or shared between vendors. Signed-off-by: Gustavo

[PATCH v7 14/15] dmaengine: dw-edma: Revert fix scatter-gather address calculation

2021-02-18 Thread Gustavo Pimentel
Reverting the applied patch because it caused a regression on ARC700 platform (32 bits). Fixes: 05655541c950 ("dmaengine: dw-edma: Fix scatter-gather address calculation") Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 8 1 file changed, 4 insert

[PATCH v7 01/15] dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures

2021-02-18 Thread Gustavo Pimentel
will generate a 64 bits message instead of two messages of 32 bits. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-core.c| 254 +++ drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 48 +++--- drivers/dma/dw-edma/dw-edma-v0-regs.h| 149 +- 3

[PATCH v7 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes

2021-02-18 Thread Gustavo Pimentel
this solution is based on FPGA and might be subjected to timmings constrains. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers

[PATCH v7 13/15] dmaengine: dw-edma: Change DMA abreviation from lower into upper case

2021-02-18 Thread Gustavo Pimentel
To keep code consistent, some comments with dma keyword written in lower case are now in upper case. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma

[PATCH v7 08/15] dmaengine: dw-edma: Reorder variables to keep consistency

2021-02-18 Thread Gustavo Pimentel
that and no functional changes are expected. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c index eb6f8b3..63c62e1 100644 --- a/drivers/dma

[PATCH v7 12/15] dmaengine: dw-edma: Fix crash on loading/unloading driver

2021-02-18 Thread Gustavo Pimentel
When the driver is compiled as a module and loaded if we try to unload it, the Kernel shows a crash log. This Kernel crash is due to the dma_async_device_unregister() call done after deleting the channels, this patch fixes this issue. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw

[PATCH v7 15/15] dmaengine: dw-edma: Add pcim_iomap_table return check

2021-02-18 Thread Gustavo Pimentel
Currently, is missing a null check on a pcim_iomap_table() return value and this can lead to a null pointer dereference if the desired BAR wasn't mapped previously. Fix this by adding a null check and returning -ENOMEM. Addresses-Coverity: ("Dereference null return") Signed-off-b

RE: [PATCH v6 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-18 Thread Gustavo Pimentel
es it easier to read the caller.] > > When you post new versions of a series, please cc people who commented > on previous versions. Noted. > > On Fri, Feb 12, 2021 at 06:37:39PM +0100, Gustavo Pimentel wrote: > > Adds another helper to ones that already exist ca

RE: [PATCH 2/3] dmaengine: dw-edma: Add missing call to 'pci_free_irq_vectors()' in probe function

2021-02-15 Thread Gustavo Pimentel
return err; > + goto err_free_irq; > } > > /* Saving data structure reference */ > pci_set_drvdata(pdev, chip); > > return 0; > + > +err_free_irq: > + pci_free_irq_vectors(pdev); > + return err; > } > > static void dw_edma_pcie_remove(struct pci_dev *pdev) > -- > 2.25.0 Acked-by: Gustavo Pimentel

[PATCH v6 15/15] dmaengine: dw-edma: Add pcim_iomap_table return check

2021-02-12 Thread Gustavo Pimentel
Currently, is missing a null check on a pcim_iomap_table() return value and this can lead to a null pointer dereference if the desired BAR wasn't mapped previously. Fix this by adding a null check and returning -ENOMEM. Addresses-Coverity: ("Dereference null return") Signed-off-b

[PATCH v6 14/15] dmaengine: dw-edma: Revert fix scatter-gather address calculation

2021-02-12 Thread Gustavo Pimentel
Reverting the applied patch because it caused a regression on ARC700 platform (32 bits). Fixes: 05655541c950 ("dmaengine: dw-edma: Fix scatter-gather address calculation") Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 8 1 file changed, 4 insert

[PATCH v6 13/15] dmaengine: dw-edma: Change DMA abreviation from lower into upper case

2021-02-12 Thread Gustavo Pimentel
To keep code consistent, some comments with dma keyword written in lower case are now in upper case. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma

[PATCH v6 12/15] dmaengine: dw-edma: Fix crash on loading/unloading driver

2021-02-12 Thread Gustavo Pimentel
When the driver is compiled as a module and loaded if we try to unload it, the Kernel shows a crash log. This Kernel crash is due to the dma_async_device_unregister() call done after deleting the channels, this patch fixes this issue. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw

[PATCH v6 09/15] dmaengine: dw-edma: Improve the linked list and data blocks definition

2021-02-12 Thread Gustavo Pimentel
its own linked list and data space well defined, which allows different sizes and locations. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 51 +- drivers/dma/dw-edma/dw-edma-core.h | 9 +- drivers/dma/dw-edma/dw-edma-pcie.c | 185

[PATCH v6 11/15] dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct

2021-02-12 Thread Gustavo Pimentel
Move struct dentry variable from static definition (dw-edma-v0-debugfs.c) into dw_edma struct (dw-edma-core.h) Also the variable was renamed from base_dir to debugfs. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 2 +- drivers/dma/dw-edma/dw-edma-core.h

[PATCH v6 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes

2021-02-12 Thread Gustavo Pimentel
this solution is based on FPGA and might be subjected to timmings constrains. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers

[PATCH v6 08/15] dmaengine: dw-edma: Reorder variables to keep consistency

2021-02-12 Thread Gustavo Pimentel
that and no functional changes are expected. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c index 1ddea34..41384ff 100644 --- a/drivers/dma

[PATCH v6 07/15] dmaengine: dw-edma: Improve number of channels check

2021-02-12 Thread Gustavo Pimentel
It was added some extra checks to ensure that the driver doesn't try to use more DMA channels than actually are available in hardware. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 21 + drivers/dma/dw-edma/dw-edma-core.h | 2 ++ 2 files changed

[PATCH v6 06/15] dmaengine: dw-edma: Add device_prep_interleave_dma() support

2021-02-12 Thread Gustavo Pimentel
Add device_prep_interleave_dma() support to Synopsys DMA driver. This feature implements a similar data transfer mechanism to the scatter-gather implementation. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 85 ++ drivers/dma/dw

[PATCH v6 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-12 Thread Gustavo Pimentel
like container) defined by PCI-SIG that allows the one or more proprietary capabilities defined by the vendor which aren't standard or shared between the manufactures. Signed-off-by: Gustavo Pimentel --- drivers/pci/pci.c | 34 ++ include/linux/pci.h

[PATCH v6 05/15] dmaengine: dw-edma: Add PCIe VSEC data retrieval support

2021-02-12 Thread Gustavo Pimentel
The latest eDMA IP development implements a Vendor-Specific Extended Capability that contains the eDMA BAR, offset, map format, and the number of read/write channels available. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 20 --- drivers/dma/dw-edma/dw-edma

[PATCH v6 03/15] dmaengine: dw-edma: Add support for the HDMA feature

2021-02-12 Thread Gustavo Pimentel
Add support for the HDMA feature. This new feature enables the current eDMA IP to use a deeper prefetch of the linked list, which reduces the algorithm execution latency observed when loading the elements of the list, causing more stable and higher data transfer. Signed-off-by: Gustavo Pimentel

[PATCH v6 02/15] dmaengine: dw-edma: Fix comments offset characters' alignment

2021-02-12 Thread Gustavo Pimentel
Fix comments offset characters' alignment to follow the same structure of similar comments. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-regs.h | 214 +- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/drivers/dma/dw-edma

[PATCH v6 01/15] dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures

2021-02-12 Thread Gustavo Pimentel
will generate a 64 bits message instead of two messages of 32 bits. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-core.c| 254 +++ drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 48 +++--- drivers/dma/dw-edma/dw-edma-v0-regs.h| 149 +- 3

[PATCH v6 00/15] dmaengine: dw-edma: HDMA support

2021-02-12 Thread Gustavo Pimentel
accordingly to Bjorn Helgaas's feedback V6: Rework driver accordingly to Krzysztof Wilczy??ski's feedback Cc: Vinod Koul Cc: Dan Williams Cc: Bjorn Helgaas Cc: dmaeng...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-...@vger.kernel.org Gustavo Pimentel (15): dmaengine: dw-edma: Ad

[PATCH v6 5/5] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-02-12 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 46 1 file changed, 46 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v6 4/5] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-02-12 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v6 2/5] misc: Add Synopsys DesignWare xData IP driver to Makefile and Kconfig

2021-02-12 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver to Makefile and Kconfig. This driver enables/disables the PCIe traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile | 1 + 2 files changed

[PATCH v6 3/5] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-02-12 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc

[PATCH v6 0/5] misc: Add Add Synopsys DesignWare xData IP driver

2021-02-12 Thread Gustavo Pimentel
-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Gustavo Pimentel (5): misc: Add Synopsys DesignWare xData IP driver misc: Add Synopsys DesignWare xData IP driver to Makefile and Kconfig Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver MAINTAINERS: Add

[PATCH v6 1/5] misc: Add Synopsys DesignWare xData IP driver

2021-02-12 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/dw-xdata-pcie.c | 390 +++ 1 file changed, 390 insertions

RE: [PATCH v5 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 12:50:46, Krzysztof Wilczyński wrote: > Hi Gustavo, > > [...] > > + * Typically this function will be called by the pci driver, which passes > > It would be "PCI" here. Nicely catch. > > > + * through argument the 'struct pci_dev *' already pointing for the device >

RE: [PATCH v5 05/15] dmaengine: dw-edma: Add PCIe VSEC data retrieval support

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 12:59:48, Krzysztof Wilczyński wrote: > Hi Gustavo, > > > + /* > > +* Tries to find if exists a PCIe Vendor-Specific Extended Capability > > +* for the DMA, if exists one, then reconfigures with the new data > [...] > > What about "if one exists" and "then

RE: [PATCH v5 3/6] misc: Add Synopsys DesignWare xData IP driver to Kconfig

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 11:29:43, Krzysztof Wilczyński wrote: > Hi Gustavo, > > [...] > > +config DW_XDATA_PCIE > > + depends on PCI > > + tristate "Synopsys DesignWare xData PCIe driver" > > + help > > + This driver allows controlling Synopsys DesignWare PCIe traffic > > +

RE: [PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 10:33:25, Greg Kroah-Hartman wrote: > On Thu, Feb 11, 2021 at 10:21:07AM +0000, Gustavo Pimentel wrote: > > On Thu, Feb 11, 2021 at 9:59:26, Greg Kroah-Hartman > > wrote: > > > > > On Thu, Feb 11, 2021 at 09:50:33AM +, Gustavo Pimen

RE: [PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 9:59:26, Greg Kroah-Hartman wrote: > On Thu, Feb 11, 2021 at 09:50:33AM +0000, Gustavo Pimentel wrote: > > On Thu, Feb 11, 2021 at 9:30:16, Greg Kroah-Hartman > > wrote: > > > > > On Thu, Feb 11, 2021 at 10:08:38AM +0100, Gustavo P

RE: [PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 9:30:16, Greg Kroah-Hartman wrote: > On Thu, Feb 11, 2021 at 10:08:38AM +0100, Gustavo Pimentel wrote: > > +static ssize_t write_show(struct device *dev, struct device_attribute > > *attr, > > + char *buf) > > +{ &

RE: [PATCH v5 2/6] misc: Add Synopsys DesignWare xData IP driver to Makefile

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 9:28:9, Greg Kroah-Hartman wrote: > On Thu, Feb 11, 2021 at 10:08:39AM +0100, Gustavo Pimentel wrote: > > Add Synopsys DesignWare xData IP driver to Makefile. > > > > This driver enables/disables the PCIe traffic generator module > > pertain

[PATCH v5 01/15] dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures

2021-02-11 Thread Gustavo Pimentel
will generate a 64 bits message instead of two messages of 32 bits. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-core.c| 254 +++ drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 48 +++--- drivers/dma/dw-edma/dw-edma-v0-regs.h| 149 +- 3

[PATCH v5 08/15] dmaengine: dw-edma: Reorder variables to keep consistency

2021-02-11 Thread Gustavo Pimentel
that and no functional changes are expected. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c index 7077d79..9e79eb5 100644 --- a/drivers/dma

[PATCH v5 00/15] dmaengine: dw-edma: HDMA support

2021-02-11 Thread Gustavo Pimentel
accordingly to Bjorn Helgaas's feedback Gustavo Pimentel (15): dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures dmaengine: dw-edma: Fix comments offset characters' alignment dmaengine: dw-edma: Add support for the HDMA feature PCI: Add pci_find_vsec_capability() to

[PATCH v5 02/15] dmaengine: dw-edma: Fix comments offset characters' alignment

2021-02-11 Thread Gustavo Pimentel
Fix comments offset characters' alignment to follow the same structure of similar comments. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-regs.h | 214 +- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/drivers/dma/dw-edma

[PATCH v5 09/15] dmaengine: dw-edma: Improve the linked list and data blocks definition

2021-02-11 Thread Gustavo Pimentel
their own linked list and data space well defined, which allows different sizes and locations. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 51 +- drivers/dma/dw-edma/dw-edma-core.h | 9 +- drivers/dma/dw-edma/dw-edma-pcie.c | 185

  1   2   3   4   5   6   7   8   >