Re: [PATCH 0/3] soc: fsl: dpio: Enable QMAN batch enqueuing

2020-02-06 Thread Roy Pledge
changed, 907 insertions(+), 92 deletions(-) Acked-by: Roy Pledge Leo - can you look at this series so we can get it integrated? Thanks

Re: [PATCH v2] soc: fsl: dpio: Add support for QBMan ring bulk enqueue.

2019-09-06 Thread Roy Pledge
he bulk enqueue of one frame > > Signed-off-by: Youri Querry Acked-by: Roy Pledge > --- > drivers/soc/fsl/dpio/dpio-service.c | 69 +++- > drivers/soc/fsl/dpio/qbman-portal.c | 772 > > drivers/soc/fsl/dpio/qbman-portal.h | 175 +++

[PATCH v3 7/7] soc/fsl/qbman: Update device tree with reserved memory

2019-08-01 Thread Roy Pledge
is reused after a kexec() Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.c | 60 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/drivers/soc/fsl/qbman/dpaa_sys.c b/drivers/soc/fsl/qbman/dpaa_sys.c index 3e0a7f3..9dd8bb5 100644

[PATCH v3 6/7] soc/fsl/qbman: Fixup qman_shutdown_fq()

2019-08-01 Thread Roy Pledge
When shutting down a FQ on a dedicated channel only the SW portal associated with that channel can dequeue from it. Make sure the correct portal is use. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 53 +++- 1 file changed, 42 insertions

[PATCH v3 5/7] soc/fsl/qbman: Disable interrupts during portal recovery

2019-08-01 Thread Roy Pledge
Disable the QBMan interrupts during recovery. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 22 +++--- drivers/soc/fsl/qbman/qman_ccsr.c | 1 + drivers/soc/fsl/qbman/qman_priv.h | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v3 4/7] soc/fsl/qbman: Fix drain_mr_fqni()

2019-08-01 Thread Roy Pledge
The drain_mr_fqni() function may be called fron uninterruptable context so convert the msleep() to an mdelay(). Also ensure that the valid bit is updated while polling. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v3 3/7] soc/fsl/qbman: Cleanup QMan queues if device was already initialized

2019-08-01 Thread Roy Pledge
If the QMan device was previously initialized make sure all the frame queues are out of service once all the portals are probed. This handles the case where the kernel is restarted without the SoC being reset (kexec for example) Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c

[PATCH v3 2/7] soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup

2019-08-01 Thread Roy Pledge
Clean the BMan buffer pools if the device had been initialized previously. This will ensure a consistent state if the kernel was soft restarted (kexec for example) Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c| 17 + drivers/soc/fsl/qbman/bman_ccsr.c | 10

[PATCH v3 1/7] soc/fsl/qbman: Rework QBMan private memory setup

2019-08-01 Thread Roy Pledge
Rework QBMan private memory setup so that the areas are not zeroed if the device was previously initialized If the QMan private memory was already initialized skip the PFDR initialization. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_ccsr.c | 26 +-- drivers/soc/fsl

[PATCH v3 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices

2019-08-01 Thread Roy Pledge
of the QBMan private memories has not changed after the execution of the Kexec. Changes since v1: - Removed a bug fix and sent it separately to ease backporting Changes since v2: - Expliciitly flush FQD memory from cache on PPC before unmapping Roy Pledge (7): soc/fsl/qbman: Rework QBMan

[PATCH v2 7/7] soc/fsl/qbman: Update device tree with reserved memory

2019-07-03 Thread Roy Pledge
is reused after a kexec() Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.c | 60 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/drivers/soc/fsl/qbman/dpaa_sys.c b/drivers/soc/fsl/qbman/dpaa_sys.c index 3e0a7f3..9dd8bb5 100644

[PATCH v2 6/7] soc/fsl/qbman: Fixup qman_shutdown_fq()

2019-07-03 Thread Roy Pledge
When shutting down a FQ on a dedicated channel only the SW portal associated with that channel can dequeue from it. Make sure the correct portal is use. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 53 +++- 1 file changed, 42 insertions

[PATCH v2 5/7] soc/fsl/qbman: Disable interrupts during portal recovery

2019-07-03 Thread Roy Pledge
Disable the QBMan interrupts during recovery. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 22 +++--- drivers/soc/fsl/qbman/qman_ccsr.c | 1 + drivers/soc/fsl/qbman/qman_priv.h | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v2 4/7] soc/fsl/qbman: Fix drain_mr_fqni()

2019-07-03 Thread Roy Pledge
The drain_mr_fqni() function may be called fron uninterruptable context so convert the msleep() to an mdelay(). Also ensure that the valid bit is updated while polling. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v2 2/7] soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup

2019-07-03 Thread Roy Pledge
Clean the BMan buffer pools if the device had been initialized previously. This will ensure a consistent state if the kernel was soft restarted (kexec for example) Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c| 17 + drivers/soc/fsl/qbman/bman_ccsr.c | 10

[PATCH v2 1/7] soc/fsl/qbman: Rework QBMan private memory setup

2019-07-03 Thread Roy Pledge
Rework QBMan private memory setup so that the areas are not zeroed if the device was previously initialized If the QMan private memory was already initialized skip the PFDR initialization. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_ccsr.c | 26 -- drivers/soc

[PATCH v2 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices

2019-07-03 Thread Roy Pledge
of the QBMan private memories has not changed after the execution of the Kexec. Changes since v1: - Removed a bug fix and sent it separately to ease backporting Roy Pledge (7): soc/fsl/qbman: Rework QBMan private memory setup soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior

[PATCH v2 3/7] soc/fsl/qbman: Cleanup QMan queues if device was already initialized

2019-07-03 Thread Roy Pledge
If the QMan device was previously initialized make sure all the frame queues are out of service once all the portals are probed. This handles the case where the kernel is restarted without the SoC being reset (kexec for example) Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c

[PATCH] soc/fsl/qbman: Use index when accessing device tree properties

2019-06-27 Thread Roy Pledge
The index value should be passed to the of_parse_phandle() function to ensure the correct property is read. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/dpaa_sys.c b/drivers/soc/fsl/qbman

Re: [PATCH v1 4/8] soc/fsl/qbman: Use index when accessing device tree properties

2019-05-13 Thread Roy Pledge
On 5/13/2019 12:40 PM, Joakim Tjernlund wrote: > On Mon, 2019-05-13 at 16:09 +0000, Roy Pledge wrote: >> The index value should be passed to the of_parse_phandle() >> function to ensure the correct property is read. > Is this a bug fix? Maybe for stable too? > > Jocke Yes

[PATCH v1 8/8] soc/fsl/qbman: Update device tree with reserved memory

2019-05-13 Thread Roy Pledge
is reused after a kexec() Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.c | 58 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/drivers/soc/fsl/qbman/dpaa_sys.c b/drivers/soc/fsl/qbman/dpaa_sys.c index 0b901a8..9dd8bb5 100644

[PATCH v1 7/8] soc/fsl/qbman: Fixup qman_shutdown_fq()

2019-05-13 Thread Roy Pledge
When shutting down a FQ on a dedicated channel only the SW portal associated with that channel can dequeue from it. Make sure the correct portal is use. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 53 +++- 1 file changed, 42 insertions

[PATCH v1 6/8] soc/fsl/qbman: Disable interrupts during portal recovery

2019-05-13 Thread Roy Pledge
Disable the QBMan interrupts during recovery. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 22 +++--- drivers/soc/fsl/qbman/qman_ccsr.c | 1 + drivers/soc/fsl/qbman/qman_priv.h | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v1 3/8] soc/fsl/qbman: Cleanup QMan queues if device was already initialized

2019-05-13 Thread Roy Pledge
If the QMan device was previously initialized make sure all the frame queues are out of service once all the portals are probed. This handles the case where the kernel is restarted without the SoC being reset (kexec for example) Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c

[PATCH v1 5/8] soc/fsl/qbman: Fix drain_mr_fqni()

2019-05-13 Thread Roy Pledge
The drain_mr_fqni() function may be called fron uninterruptable context so convert the msleep() to an mdelay(). Also ensure that the valid bit is updated while polling. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v1 4/8] soc/fsl/qbman: Use index when accessing device tree properties

2019-05-13 Thread Roy Pledge
The index value should be passed to the of_parse_phandle() function to ensure the correct property is read. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/dpaa_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/dpaa_sys.c b/drivers/soc/fsl/qbman

[PATCH v1 2/8] soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup

2019-05-13 Thread Roy Pledge
Clean the BMan buffer pools if the device had been initialized previously. This will ensure a consistent state if the kernel was soft restarted (kexec for example) Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c| 17 + drivers/soc/fsl/qbman/bman_ccsr.c | 10

[PATCH v1 1/8] soc/fsl/qbman: Rework QBMan private memory setup

2019-05-13 Thread Roy Pledge
Rework QBMan private memory setup so that the areas are not zeroed if the device was previously initialized If the QMan private memory was already initialized skip the PFDR initialization. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_ccsr.c | 26 -- drivers/soc

[PATCH v1 0/8] soc/fsl/qbman: Enable Kexec for DPAA1 devices

2019-05-13 Thread Roy Pledge
of the QBMan private memories has not changed after the execution of the Kexec. Roy Pledge (8): soc/fsl/qbman: Rework QBMan private memory setup soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup soc/fsl/qbman: Cleanup QMan queues if device was already initialized soc/fsl

[PATCH v2 1/2] bus: mc-bus: Add support for mapping shareable portals

2019-04-05 Thread Roy Pledge
for the portal memory. The new portal region is identified as shareable through the addition of a new flag. Signed-off-by: Roy Pledge --- drivers/bus/fsl-mc/dprc.c | 30 +++--- drivers/bus/fsl-mc/fsl-mc-bus.c | 15 +-- drivers/bus/fsl-mc/fsl-mc-private.h

[PATCH v2 2/2] soc: fsl: dpio: Add support for memory backed QBMan portals

2019-04-05 Thread Roy Pledge
when appropriate HW support is detected. Signed-off-by: Youri Querry Signed-off-by: Roy Pledge --- drivers/soc/fsl/dpio/dpio-driver.c | 23 -- drivers/soc/fsl/dpio/qbman-portal.c | 148 ++-- drivers/soc/fsl/dpio/qbman-portal.h | 5 ++ 3 files changed, 144

[PATCH v2 0/2] soc: fsl: dpio: Add support for memory backed QBMan portals

2019-04-05 Thread Roy Pledge
with padding in command Roy Pledge (2): bus: mc-bus: Add support for mapping shareable portals soc: fsl: dpio: Add support for memory backed QBMan portals drivers/bus/fsl-mc/dprc.c | 30 +++- drivers/bus/fsl-mc/fsl-mc-bus.c | 15 +++- drivers/bus/fsl-mc/fsl-mc-private.h

Re: [PATCH 2/2] soc: fsl: qbman: qman: avoid allocating from non existing gen_pool

2018-08-24 Thread Roy Pledge
/drivers/soc/fsl/qbman/qman.c > @@ -2729,6 +2729,9 @@ static int qman_alloc_range(struct gen_pool *p, u32 > *result, u32 cnt) > { > unsigned long addr; > > + if (!p) > + return -ENODEV; > + > addr = gen_pool_alloc(p, cnt); > if (!addr) > return -ENOMEM; Reviewed-by: Roy Pledge

Re: [PATCH 1/2] soc: fsl: qbman: qman_portal: defer probing when qman is not available

2018-08-24 Thread Roy Pledge
pdev) > } > > pcfg->pools = qm_get_pools_sdqcr(); > + if (pcfg->pools == 0) > + return -EPROBE_DEFER; > > spin_lock(_lock); > cpu = cpumask_next_zero(-1, _cpus); Reviewed-by: Roy Pledge

[PATCH] soc/fsl/qbman: Check if CPU is offline when initializing portals

2018-01-29 Thread Roy Pledge
If the affine portal for a specific CPU is offline at boot time affine its interrupt to CPU 0. If the CPU is later brought online the hotplug handler will correctly adjust the affinity. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman.

[v5 12/12] soc/fsl/qbman: Enable FSL_LAYERSCAPE config on ARM

2017-09-18 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> [Stuart: changed to use ARCH_LAYERSCAPE] Signed-off-by: Stuart Yoder <stuart.yo...@nxp.com> Signed-off-by: Roy Pl

[v5 11/12] soc/fsl/qbman: Add missing headers on ARM

2017-09-18 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Unlike PPC builds, ARM builds need following headers explicitly: +#include for ioread32be() +#includefor udelay() Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy

[v5 10/12] soc/fsl/qbman: different register offsets on ARM

2017-09-18 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman.c | 22 ++ drivers/s

[v5 08/12] soc/fsl/qbman: Rework portal mapping calls for ARM/PPC

2017-09-18 Thread Roy Pledge
Rework portal mapping for PPC and ARM. The PPC devices require a cacheable coherent mapping while ARM will work with a non-cachable/write combine mapping. This also eliminates the need for manual cache flushes on ARM. This also fixes the code so sparse checking is clean. Signed-off-by: Roy Pledge

[v5 07/12] soc/fsl/qbman: Fix ARM32 typo

2017-09-18 Thread Roy Pledge
From: Valentin Rothberg <valentinrothb...@gmail.com> The Kconfig symbol for 32bit ARM is 'ARM', not 'ARM32'. Signed-off-by: Valentin Rothberg <valentinrothb...@gmail.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com&

[v5 06/12] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-09-18 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Not relevant and arch dependent. Overkill for PPC. Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/dpaa_sys.h | 4 1 file changed, 4 deleti

[v5 04/12] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-09-18 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatible with the shared-dma-pool usage. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 12 +- Documen

[v5 09/12] soc/fsl/qbman: add QMAN_REV32

2017-09-18 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Add revision 3.2 of the QBMan block. This is the version for LS1043A and LS1046A SoCs. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 +

[v5 05/12] soc/fsl/qbman: Drop set/clear_bits usage

2017-09-18 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Replace PPC specific set/clear_bits API with standard bit twiddling so driver is portalable outside PPC. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: R

[v5 01/12] soc/fsl/qbman: Add common routine for QBMan private allocations

2017-09-18 Thread Roy Pledge
The QBMan device uses several memory regions to manage frame queues and buffers. Add a common routine for extracting and initializing these reserved memory areas. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/Makefile | 2 +- drivers/soc/fsl/qbman/dpaa_sys.

[v5 00/12] soc/fsl/qbman: Enable QBMan on ARM Platforms

2017-09-18 Thread Roy Pledge
on ARM Madalin Bucur (4): soc/fsl/qbman: Drop set/clear_bits usage soc/fsl/qbman: add QMAN_REV32 soc/fsl/qbman: different register offsets on ARM soc/fsl/qbman: Enable FSL_LAYERSCAPE config on ARM Roy Pledge (5): soc/fsl/qbman: Add common routine for QBMan private allocations soc/fsl

[v5 02/12] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-09-18 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_ccsr.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/fsl/qbman/bman_ccsr.c b/drivers/soc/fsl

[v5 03/12] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-09-18 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 93 ++- drivers/soc/fsl/qbman/qman_priv.

Re: [v4 07/11] soc/fsl/qbman: Rework portal mapping calls for ARM/PPC

2017-09-18 Thread Roy Pledge
On 9/15/2017 5:49 PM, Catalin Marinas wrote: > On Thu, Sep 14, 2017 at 07:07:50PM +0000, Roy Pledge wrote: >> On 9/14/2017 10:00 AM, Catalin Marinas wrote: >>> On Thu, Aug 24, 2017 at 04:37:51PM -0400, Roy Pledge wrote: >>>> @@ -123,23 +122,34 @@ static int bman_porta

Re: [v4 07/11] soc/fsl/qbman: Rework portal mapping calls for ARM/PPC

2017-09-14 Thread Roy Pledge
On 9/14/2017 10:00 AM, Catalin Marinas wrote: > On Thu, Aug 24, 2017 at 04:37:51PM -0400, Roy Pledge wrote: >> diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c >> index ff8998f..e31c843 100644 >> --- a/drivers/soc/fsl/qbman/bman.c >> +++ b/d

Re: [v4 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-09-14 Thread Roy Pledge
On 9/14/2017 9:49 AM, Catalin Marinas wrote: > On Thu, Aug 24, 2017 at 04:37:49PM -0400, Roy Pledge wrote: >> From: Claudiu Manoil <claudiu.man...@nxp.com> >> >> Not relevant and arch dependent. Overkill for PPC. >> >> Signed-off-by: Claudiu Manoil <cla

[v4 11/11] fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM

2017-08-24 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> [Stuart: changed to use ARCH_LAYERSCAPE] Signed-off-by: Stuart Yoder <stuart.yo...@nxp.com> Signed-off-by: Roy Pl

[v4 10/11] soc/fsl/qbman: Add missing headers on ARM

2017-08-24 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Unlike PPC builds, ARM builds need following headers explicitly: +#include for ioread32be() +#includefor udelay() Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy

[v4 09/11] soc/fsl/qbman: different register offsets on ARM

2017-08-24 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman.c | 22 ++ drivers/s

[v4 07/11] soc/fsl/qbman: Rework portal mapping calls for ARM/PPC

2017-08-24 Thread Roy Pledge
Rework portal mapping for PPC and ARM. The PPC devices require a cacheable coherent mapping while ARM will work with a non-cachable/write combine mapping. This also eliminates the need for manual cache flushes on ARM Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/

[v4 08/11] soc/fsl/qbman: add QMAN_REV32

2017-08-24 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Add revision 3.2 of the QBMan block. This is the version for LS1043A and LS1046A SoCs. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 +

[v4 06/11] soc/fsl/qbman: Fix ARM32 typo

2017-08-24 Thread Roy Pledge
From: Valentin Rothberg <valentinrothb...@gmail.com> The Kconfig symbol for 32bit ARM is 'ARM', not 'ARM32'. Signed-off-by: Valentin Rothberg <valentinrothb...@gmail.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com&

[v4 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-08-24 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Not relevant and arch dependent. Overkill for PPC. Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/dpaa_sys.h | 4 1 file changed, 4 deleti

[v4 04/11] soc/fsl/qbman: Drop set/clear_bits usage

2017-08-24 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Replace PPC specific set/clear_bits API with standard bit twiddling so driver is portalable outside PPC. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: R

[v4 03/11] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-08-24 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatible with the shared-dma-pool usage. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 12 +- Documen

[v4 02/11] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-08-24 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 138 +- drivers/soc/fsl/qbman/qman_priv.h

[v4 01/11] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-08-24 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_ccsr.c | 35 ++- drivers/soc/fsl/qbman/bman_priv.h | 3 +++ 2 files changed, 37 insertions

[v4 00/11] soc/fsl/qbman: Enable QBMan on ARM Platforms

2017-08-24 Thread Roy Pledge
/qbman: Drop L1_CACHE_BYTES compile time check soc/fsl/qbman: Add missing headers on ARM Madalin Bucur (4): soc/fsl/qbman: Drop set/clear_bits usage soc/fsl/qbman: add QMAN_REV32 soc/fsl/qbman: different register offsets on ARM fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM Roy Pledge

[PATCH] soc/fsl/qbman: Check if CPU is offline when initializing portals

2017-05-25 Thread Roy Pledge
If the affine portal for a specific CPU is offline at boot time affine its interrupt to CPU 0. If the CPU is later brought online the hotplug handler will correctly adjust the affinity. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman.

Re: [PATCH v2] drivers:soc:fsl:qbman:qman.c: Sleep instead of stuck hacking jiffies.

2017-05-04 Thread Roy Pledge
On 5/4/2017 5:07 PM, Scott Wood wrote: > On Thu, 2017-05-04 at 06:58 +0200, Karim Eshapa wrote: >> +stop = jiffies + 1; >> +/* >> + * if MR was full and h/w had other FQRNI entries to produce, we >> + * need to allow it time to produce those entries once the >> + * existing

[PATCH v3 10/11] soc/fsl/qbman: Add missing headers on ARM

2017-05-01 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Unlike PPC builds, ARM builds need following headers explicitly: +#include for ioread32be() +#includefor udelay() Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy

[PATCH v3 11/11] fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM

2017-05-01 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> [Stuart: changed to use ARCH_LAYERSCAPE] Signed-off-by: Stuart Yoder <stuart.yo...@nxp.com> Signed-off-by: Roy Pl

[PATCH v3 08/11] soc/fsl/qbman: add QMAN_REV32

2017-05-01 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Add revision 3.2 of the QBMan block. This is the version for LS1043A and LS1046A SoCs. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 +

[PATCH v3 07/11] soc/fsl/qbman: Rework ioremap() calls for ARM/PPC

2017-05-01 Thread Roy Pledge
Rework ioremap() for PPC and ARM. The PPC devices require a non-coherent mapping while ARM will work with a non-cachable/write combine mapping. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_portal.c | 12 +--- drivers/soc/fsl/qbman/qman_portal.

[PATCH v3 06/11] soc/fsl/qbman: Fix ARM32 typo

2017-05-01 Thread Roy Pledge
From: Valentin Rothberg <valentinrothb...@gmail.com> The Kconfig symbol for 32bit ARM is 'ARM', not 'ARM32'. Signed-off-by: Valentin Rothberg <valentinrothb...@gmail.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com&

[PATCH v3 09/11] soc/fsl/qbman: different register offsets on ARM

2017-05-01 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman.c | 22 ++ drivers/s

[PATCH v3 04/11] soc/fsl/qbman: Drop set/clear_bits usage

2017-05-01 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Replace PPC specific set/clear_bits API with standard bit twiddling so driver is portalable outside PPC. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: R

[PATCH v3 03/11] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-05-01 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatiable with the shared-dma-pool usage. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 12 +- Documen

[PATCH v3 02/11] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-05-01 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 138 +- drivers/soc/fsl/qbman/qman_priv.h

[PATCH v3 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-05-01 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Not relevant and arch dependent. Overkill for PPC. Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/dpaa_sys.h | 4 1 file changed, 4 deleti

[PATCH v3 00/11] soc/fsl/qbman: Enable QBMan on ARM Platforms

2017-05-01 Thread Roy Pledge
/qbman: Add missing headers on ARM Madalin Bucur (4): soc/fsl/qbman: Drop set/clear_bits usage soc/fsl/qbman: add QMAN_REV32 soc/fsl/qbman: different register offsets on ARM fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM Roy Pledge (4): soc/fsl/qbman: Use shared-dma-pool for BMan

[PATCH v3 01/11] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-05-01 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_ccsr.c | 35 ++- drivers/soc/fsl/qbman/bman_priv.h | 3 +++ 2 files changed, 37 insertions

Re: [PATCH v2 07/11] soc/fsl/qbman: Rework ioremap() calls for ARM/PPC

2017-05-01 Thread Roy Pledge
On 4/23/2017 9:47 PM, Scott Wood wrote: > On Wed, 2017-04-19 at 16:48 -0400, Roy Pledge wrote: >> Rework ioremap() for PPC and ARM. The PPC devices require a >> non-coherent mapping while ARM will work with a non-cachable/write >> combine mapping. >> >> S

[PATCH v2 10/11] soc/fsl/qbman: Add missing headers on ARM

2017-04-19 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Unlike PPC builds, ARM builds need following headers explicitly: +#include for ioread32be() +#includefor udelay() Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy

[PATCH v2 06/11] soc/fsl/qbman: Fix ARM32 typo

2017-04-19 Thread Roy Pledge
From: Valentin Rothberg <valentinrothb...@gmail.com> The Kconfig symbol for 32bit ARM is 'ARM', not 'ARM32'. Signed-off-by: Valentin Rothberg <valentinrothb...@gmail.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com&

[PATCH v2 11/11] fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM

2017-04-19 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> [Stuart: changed to use ARCH_LAYERSCAPE] Signed-off-by: Stuart Yoder <stuart.yo...@nxp.com> Signed-off-by: Roy Pl

[PATCH v2 09/11] soc/fsl/qbman: different register offsets on ARM

2017-04-19 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman.c | 22 ++ drivers/s

[PATCH v2 07/11] soc/fsl/qbman: Rework ioremap() calls for ARM/PPC

2017-04-19 Thread Roy Pledge
Rework ioremap() for PPC and ARM. The PPC devices require a non-coherent mapping while ARM will work with a non-cachable/write combine mapping. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_portal.c | 16 +--- drivers/soc/fsl/qbman/qman_portal.

[PATCH v2 08/11] soc/fsl/qbman: add QMAN_REV32

2017-04-19 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Add revision 3.2 of the QBMan block. This is the version for LS1043A and LS1046A SoCs. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 +

[PATCH v2 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-04-19 Thread Roy Pledge
From: Claudiu Manoil <claudiu.man...@nxp.com> Not relevant and arch dependent. Overkill for PPC. Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/dpaa_sys.h | 4 1 file changed, 4 deleti

[PATCH v2 04/11] soc/fsl/qbman: Drop set/clear_bits usage

2017-04-19 Thread Roy Pledge
From: Madalin Bucur <madalin.bu...@nxp.com> Replace PPC specific set/clear_bits API with standard bit twiddling so driver is portalable outside PPC. Signed-off-by: Madalin Bucur <madalin.bu...@nxp.com> Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com> Signed-off-by: R

[PATCH v2 03/11] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-04-19 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatiable with the shared-dma-pool usage. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 11 ++- Documen

[PATCH v2 02/11] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-04-19 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 136 +- drivers/soc/fsl/qbman/qman_priv.h

[PATCH v2 01/11] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-04-19 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_ccsr.c | 35 ++- drivers/soc/fsl/qbman/bman_priv.h | 3 +++ 2 files changed, 37 insertions

[PATCH v2 00/11] soc/fsl/qbman: Enable QBMan on ARM Platforms

2017-04-19 Thread Roy Pledge
compile time check soc/fsl/qbman: Add missing headers on ARM Madalin Bucur (4): soc/fsl/qbman: Drop set/clear_bits usage soc/fsl/qbman: add QMAN_REV32 soc/fsl/qbman: different register offsets on ARM fsl/soc/qbman: Enable FSL_LAYERSCAPE config on ARM Roy Pledge (4): soc/fsl/qbman: Use

[PATCH] soc/fsl/qbman: Disable IRQs for deferred QBMan work

2017-04-17 Thread Roy Pledge
-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index 3d891db..18eefc3 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -

Re: [RFC PATCH 4/5] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-04-03 Thread Roy Pledge
On 4/3/2017 11:42 AM, Rob Herring wrote: > On Wed, Mar 29, 2017 at 05:13:56PM -0400, Roy Pledge wrote: >> Updates the QMan and BMan device tree bindings for reserved memory >> nodes. This makes the reserved memory allocation compatiable with > s/compatiable/compatible/ > &

[RFC PATCH 5/5] powerpc: Add HAVE_GENERIC_DMA_COHERENT options to Kconfig

2017-03-29 Thread Roy Pledge
Enable HAVE_GENERIC_DMA_COHERENT to enable use of shared-dma-pool reserved memory mappings Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 186e060..0e80e8b

[RFC PATCH 4/5] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-03-29 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatiable with the shared-dma-pool usage. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 10 +- Documen

[RFC PATCH 3/5] dts: arch/powerpc: Update Freescale DTS for QBMan memory allocations

2017-03-29 Thread Roy Pledge
QBMan now uses the shared-dma-pool mechansim to manage early memory reservations. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- arch/powerpc/boot/dts/fsl/b4qds.dtsi| 6 ++ arch/powerpc/boot/dts/fsl/b4si-post.dtsi| 15 --- arch/powerpc/boot/dts/fsl/cyrus

[RFC PATCH 2/5] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-03-29 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman_ccsr.c | 119 +- drivers/soc/fsl/qbman/qman_priv.h

[RFC PATCH 1/5] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-03-29 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/bman_ccsr.c | 27 ++- drivers/soc/fsl/qbman/bman_priv.h | 3 +++ 2 files changed, 29 insertions(+), 1 de

[RFC PATCH 0/5] soc/fsl/qbman: Rework private memory allocations

2017-03-29 Thread Roy Pledge
the reservations compatiable string must include "shared-dma-pool" and specify "no-map". This set of changes updates the QBMan driver, PPC device trees and bindings to use the above mechasism. This work was encouraged as part of preparing this driver to work on ARM processors. Roy P

[RESEND PATCH] soc/qbman: Disable IRQs for deferred QBMan work

2017-03-10 Thread Roy Pledge
-by: Roy Pledge <roy.ple...@nxp.com> --- drivers/soc/fsl/qbman/qman.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index d67b8e1..f1a242a 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -

RE: [v2 04/11] soc/fsl: Introduce drivers for the DPAA QMan

2015-09-15 Thread Roy Pledge
soc/fsl: Introduce drivers for the DPAA QMan > > On Wed, Aug 12, 2015 at 04:14:50PM -0400, Roy Pledge wrote: > > +/* Lock/unlock frame queues, subject to the "LOCKED" flag. This is > > +about > > + * inter-processor locking only. Note, FQLOCK() is always called &

  1   2   >