[PATCH v4 2/3] powerpc: Relax secure computing on syscall entry trace

2015-02-18 Thread Bogdan Purcareata
The secure_computing_strict will just force the kernel to panic on secure_computing failure. Once SECCOMP_FILTER support is enabled in the kernel, syscalls can be denied without system failure. v4: - rebase on top of 3.19 v3,v2: no changes Signed-off-by: Bogdan Purcareata bogdan.purcare

[PATCH v4 0/3] powerpc: Enable seccomp filter support

2015-02-18 Thread Bogdan Purcareata
syscall entry assembly to do_syscall_trace_enter Bogdan Purcareata (3): powerpc: Don't force ENOSYS as error on syscall fail powerpc: Relax secure computing on syscall entry trace powerpc: Enable HAVE_ARCH_SECCOMP_FILTER arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/entry_32.S | 7

[PATCH v4 3/3] powerpc: Enable HAVE_ARCH_SECCOMP_FILTER

2015-02-18 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 22b0940..2588b57 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -104,6 +104,7 @@ config

[PATCH v4 1/3] powerpc: Don't force ENOSYS as error on syscall fail

2015-02-18 Thread Bogdan Purcareata
v2: - move setting ENOSYS as errno from the syscall entry assembly to do_syscall_trace_enter, only in the specific case Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/entry_32.S | 7 ++- arch/powerpc/kernel/entry_64.S | 5 +++-- arch/powerpc/kernel

[PATCH 2/2] powerpc/kvm: Limit MAX_VCPUS for guests running on RT Linux

2015-02-18 Thread Bogdan Purcareata
-off-by: Mihai Caraman mihai.cara...@freescale.com Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com Reviewed-by: Scott Wood scottw...@freescale.com --- arch/powerpc/include/asm/kvm_host.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/include/asm/kvm_host.h b

[PATCH 1/2] powerpc/kvm: Convert openpic lock to raw_spinlock

2015-02-18 Thread Bogdan Purcareata
(us) 7062 [1] https://lkml.org/lkml/2010/1/11/289 Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com Reviewed-by: Scott Wood scottw...@freescale.com --- arch/powerpc/kvm/mpic.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions

[PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-02-18 Thread Bogdan Purcareata
a hanging CONFIG_PREEMPT_RT_FULL check there, with no effect, or send it against linux-stable-rt. Please apply as you consider appropriate. - applied compiled against upstream 3.19 - applied compiled against stable-rt 3.14-rt (0002 with minor fuzz) Bogdan Purcareata (2): powerpc/kvm: Convert

[PATCH v3 1/3] powerpc: Don't force ENOSYS as error on syscall fail

2015-02-13 Thread Bogdan Purcareata
to do_syscall_trace_enter, only in the specific case Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/entry_32.S | 7 ++- arch/powerpc/kernel/entry_64.S | 5 +++-- arch/powerpc/kernel/ptrace.c | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git

[PATCH v3 0/3] powerpc: Enable seccomp filter support

2015-02-13 Thread Bogdan Purcareata
://groups.google.com/forum/#!topic/libseccomp/oz42LfMDsxg [2] https://groups.google.com/forum/#!topic/libseccomp/TQWfCt_nD7c v3: - keep setting ENOSYS in syscall entry assembly when syscall tracing is disabled v2: - move setting ENOSYS from syscall entry assembly to do_syscall_trace_enter Bogdan Purcareata (3

[PATCH v3 2/3] powerpc: Relax secure computing on syscall entry trace

2015-02-13 Thread Bogdan Purcareata
The secure_computing_strict will just force the kernel to panic on secure_computing failure. Once SECCOMP_FILTER support is enabled in the kernel, syscalls can be denied without system failure. Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/ptrace.c | 4

[PATCH v3 3/3] powerpc: Enable HAVE_ARCH_SECCOMP_FILTER

2015-02-13 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 22b0940..2588b57 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -104,6 +104,7 @@ config

[PATCH v2] powerpc/mpic: Add DT option to skip readback after EOI

2015-01-27 Thread Bogdan Purcareata
the readback optional and configurable through the device tree. Skipping the readback saves a MMIO trap per interrupt. v2: updated commit message Signed-off-by: Scott Wood scottw...@freescale.com [add DT binding, update commit message] Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com

[PATCH] powerpc/mpic: Add DT option to skip readback after EOI

2015-01-14 Thread Bogdan Purcareata
Wood scottw...@freescale.com Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- Documentation/devicetree/bindings/powerpc/fsl/mpic.txt | 13 + arch/powerpc/include/asm/mpic.h| 2 ++ arch/powerpc/sysdev/mpic.c | 8

[PATCH 0/3] powerpc: Enable seccomp filter support

2015-02-08 Thread Bogdan Purcareata
/forum/#!topic/libseccomp/ktR-bQr1tGw Bogdan Purcareata (3): powerpc: Don't force ENOSYS as error on syscall fail powerpc: Relax secure computing on syscall entry trace powerpc: Enable HAVE_ARCH_SECCOMP_FILTER arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/entry_32.S | 3

[PATCH 2/3] powerpc: Relax secure computing on syscall entry trace

2015-02-09 Thread Bogdan Purcareata
The secure_computing_strict will just force the kernel to panic on secure_computing failure. Once SECCOMP_FILTER support is enabled in the kernel, syscalls can be denied without system failure. Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/ptrace.c | 4

[PATCH] powerpc: Enable HAVE_ARCH_SECCOMP_FILTER

2015-02-09 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index a2a168e..72f363e 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -104,6 +104,7 @@ config

[RFC][PATCH 1/3] powerpc: Don't force ENOSYS as error on syscall fail

2015-02-09 Thread Bogdan Purcareata
to keep overhead at a minimum. Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/entry_32.S | 3 ++- arch/powerpc/kernel/entry_64.S | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel

[PATCH 2/3] powerpc: Relax secure computing on syscall entry trace

2015-02-11 Thread Bogdan Purcareata
The secure_computing_strict will just force the kernel to panic on secure_computing failure. Once SECCOMP_FILTER support is enabled in the kernel, syscalls can be denied without system failure. Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/ptrace.c | 4

[PATCH 3/3] powerpc: Enable HAVE_ARCH_SECCOMP_FILTER

2015-02-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index a2a168e..72f363e 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -104,6 +104,7 @@ config

[PATCH v2 0/3] powerpc: Enable seccomp filter support

2015-02-11 Thread Bogdan Purcareata
/forum/#!topic/libseccomp/ktR-bQr1tGw v2: - move setting ENOSYS from syscall entry assembly to do_syscall_trace_enter Bogdan Purcareata (3): powerpc: Don't force ENOSYS as error on syscall fail powerpc: Relax secure computing on syscall entry trace powerpc: Enable HAVE_ARCH_SECCOMP_FILTER

[PATCH v2 1/3] powerpc: Don't force ENOSYS as error on syscall fail

2015-02-11 Thread Bogdan Purcareata
on do_syscall_trace_enter failure. v2: - move setting ENOSYS as errno from the syscall entry assembly to do_syscall_trace_enter, only in the specific case Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kernel/entry_32.S | 2 +- arch/powerpc/kernel/entry_64.S | 1

[PATCH] powerpc/mpic: Remove WHOAMI readback after EOI

2015-03-24 Thread Bogdan Purcareata
(at least on BookE platforms). The benefit of this change is saving a MMIO trap per interrupt when running in a KVM guest. [1] https://patchwork.ozlabs.org/patch/429098/ [2] https://patchwork.ozlabs.org/patch/433557/ Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc

[PATCH v2 1/2] powerpc/kvm: Convert openpic lock to raw_spinlock

2015-04-24 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kvm/mpic.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/kvm/mpic.c b/arch/powerpc/kvm/mpic.c index 6249cdc..2f70660 100644 --- a/arch

[PATCH v2 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-04-24 Thread Bogdan Purcareata
compiled against stable-rt 3.18-rt v2: - updated commit messages - change the fix for potentially large latencies from limiting the max number of VCPUs a guest can have to disabling the in-kernel MPIC Bogdan Purcareata (2): powerpc/kvm: Convert openpic lock to raw_spinlock powerpc/kvm

[PATCH v2 2/2] powerpc/kvm: Disable in-kernel MPIC emulation for PREEMPT_RT_FULL

2015-04-24 Thread Bogdan Purcareata
. Secondly, this should incentivize the development of a proper openpic emulation that would be better suited for RT. Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- arch/powerpc/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/Kconfig b/arch

[PATCH] staging: fsl-mc: Add missing header

2017-02-13 Thread Bogdan Purcareata
'its_fsl_mc_msi_cleanup' was not declared. Since these are properly declared, but the header is not included, add it in the source files. This way the symbol is properly exported. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- Sent against staging-testing. drivers/staging/fsl-mc/bus/

[PATCH 4/4] staging: android/ion: Use variable names in header

2017-01-11 Thread Bogdan Purcareata
Populate header function signatures with variable names as well, not just variable types. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- drivers/staging/android/ion/ion_priv.h | 38 +- 1 file changed, 19 insertions(+), 19 deletions(-)

[PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- drivers/staging/android/ion/ion-ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion-ioctl.c b/drivers/staging/android/ion/ion-ioctl.c index 7e7431d..e28fffb

[PATCH 2/4] staging: android/ion: Don't use return in void function

2017-01-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- drivers/staging/android/ion/ion_of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_of.c b/drivers/staging/android/ion/ion_of.c index 46b2bb9..7791c70 100644 --- a/drivers/staging/andro

[PATCH 3/4] staging: android/ion: Align comment mark

2017-01-11 Thread Bogdan Purcareata
Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- drivers/staging/android/ion/ion_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/android/ion/ion_priv.h index 3c3b324..00d8b53

[PATCH] staging: android/ion: Fix coding style issues

2017-01-10 Thread Bogdan Purcareata
Fix following checkpatch warnings: - Lines over 80 characters - void function with return statement - Unaligned comment mark - Header function prototypes missing variable names Sent against staging-next. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- drivers/staging/a

Re: [PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-12 Thread Bogdan Purcareata
On Thu, Jan 12, 2017 at 11:56 AM, Greg KH <gre...@linuxfoundation.org> wrote: > On Thu, Jan 12, 2017 at 12:32:26PM +0300, Dan Carpenter wrote: >> On Thu, Jan 12, 2017 at 09:54:16AM +0200, Bogdan Purcareata wrote: >> > Signed-off-by: Bogdan Purcareata <bogdan.purcare...@g

[PATCH v2 1/4] staging: android/ion: Split function call

2017-01-12 Thread Bogdan Purcareata
Fix checkpatch error of line exceeding 80 characters. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- v1 -> v2: - add changelog - fix CHECK reports from checkpatch drivers/staging/android/ion/ion-ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) d

[PATCH v2 4/4] staging: android/ion: Use variable names in header

2017-01-12 Thread Bogdan Purcareata
Populate header function signatures with variable names as well, not just variable types. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- v1 -> v2: - fix CHECK report from checkpatch drivers/staging/android/ion/ion_priv.h | 38 +

[PATCH v2 3/4] staging: android/ion: Align comment mark

2017-01-12 Thread Bogdan Purcareata
Fix missing space right before multiple line comment closing. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- v1 -> v2 - add changelog drivers/staging/android/ion/ion_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/an

[PATCH v2 2/4] staging: android/ion: Don't use return in void function

2017-01-12 Thread Bogdan Purcareata
Return statements are superfluous in void functions, and checkpatch complains about them too. Remove offending return. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- v1 -> v2 - add changelog drivers/staging/android/ion/ion_of.c | 1 - 1 file changed, 1 deletion

[PATCH] staging: android/ion: Fix coding style issues

2017-01-11 Thread Bogdan Purcareata
Fix following checkpatch warnings: - Lines over 80 characters - void function with return statement - Unaligned comment mark - Header function prototypes missing variable names Signed-off-by: Bogdan Purcareata <bogdan.purcare...@gmail.com> --- drivers/staging/android/ion/ion-ioctl.

RE: [PATCH 1/2] staging: fsl-dpaa2/eth: Fix skb use after free

2017-07-20 Thread Bogdan Purcareata
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Thursday, July 20, 2017 2:18 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: Ruxandra Ioana Radulescu <ruxandra.radule...@nxp.com>; > gre...@linuxfoundation.org

[PATCH 2/2] staging: fsl-dpaa2/eth: Error report format fixes

2017-07-20 Thread Bogdan Purcareata
Fix mishaps in error format strings. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl

[PATCH 1/2] staging: fsl-dpaa2/eth: Fix skb use after free

2017-07-20 Thread Bogdan Purcareata
Once a Tx frame descriptor is enqueued, an interrupt might be triggered to process the Tx confirmation and free the skb, hitting a memory use after free when updating the tx_bytes statistic based on skb->len. Use the frame descriptor length instead. Signed-off-by: Bogdan Purcare

[PATCH] staging: fsl-mc/dpio: Skip endianness conversion in portal config

2017-07-20 Thread Bogdan Purcareata
Writing to the register using writel does the CPU to LE conversion down the line, so it's not required here. Doing it breaks portal configuration on big endian kernels. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- drivers/staging/fsl-mc/bus/dpio/qbman-portal.

RE: [PATCH] staging: fsl-dpaa2/eth: Remove dead code

2017-06-30 Thread Bogdan Purcareata
ists.infradead.org; Bogdan > Purcareata <bogdan.purcare...@nxp.com>; stuyo...@gmail.com; Laurentiu Tudor > <laurentiu.tu...@nxp.com> > Subject: [PATCH] staging: fsl-dpaa2/eth: Remove dead code > > All possible values of the switch statement are explicitly > hand

[PATCH 0/2] net: phy: Support managed Cortina phys

2017-05-23 Thread Bogdan Purcareata
while reading PHY16 reg at 1.6 [0.232780] mdio_bus 8b96000: Error while reading PHY16 reg at 1.5 Bogdan Purcareata (2): net: phy: Update get_phy_c45_ids for Cortina PHYs drivers: phy: Add Cortina CS4340 driver drivers/net/phy/Kconfig| 5 +++ drivers/net/phy/Makefile | 1

[PATCH 2/2] drivers: phy: Add Cortina CS4340 driver

2017-05-23 Thread Bogdan Purcareata
Add basic support for Cortina PHY drivers. Support only CS4340 for now. The phys are not fully compatible with IEEE 802.3 clause 45 registers. Implement proper read_status support, so that phy polling does not cause bus register access errors. Signed-off-by: Bogdan Purcareata <bogdan.purc

[PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

2017-05-23 Thread Bogdan Purcareata
Complete the work started by the following patches 5f6c99e0 net: phy: fix a bug in get_phy_c45_ids da1da284 net/phy: tune get_phy_c45_ids to support more c45 phy in order to properly get non-standard C45 10G PHY IDs (e.g. Cortina CS4340). Signed-off-by: Bogdan Purcareata <bogdan.purc

RE: [PATCH 2/2] drivers: phy: Add Cortina CS4340 driver

2017-05-23 Thread Bogdan Purcareata
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Tuesday, May 23, 2017 6:57 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: f.faine...@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [P

RE: [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

2017-05-23 Thread Bogdan Purcareata
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Tuesday, May 23, 2017 7:04 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: f.faine...@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [

[PATCH v2] drivers: phy: Add Cortina CS4340 driver

2017-05-24 Thread Bogdan Purcareata
hy-id" device tree compatible. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- v1 -> v2: - Rename "mdio-cortina.c" to "cortina.c" since it's a phy driver. - Test probing based on the "ethernet-phy-id" compatible. In the previous version,

RE: [PATCH v2] drivers: phy: Add Cortina CS4340 driver

2017-05-24 Thread Bogdan Purcareata
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Wednesday, May 24, 2017 5:26 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: f.faine...@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [

RE: [PATCH v2] drivers: phy: Add Cortina CS4340 driver

2017-05-24 Thread Bogdan Purcareata
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Wednesday, May 24, 2017 3:59 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: f.faine...@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [

RE: [PATCH v2] drivers: phy: Add Cortina CS4340 driver

2017-05-24 Thread Bogdan Purcareata
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Wednesday, May 24, 2017 8:03 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com>; Andrew Lunn > <and...@lunn.ch> > Cc: net...@vger.kernel.org; linux-kernel@vger.kerne

RE: [PATCH v3 2/2] dt-bindings: net: Add Cortina device tree bindings

2017-05-26 Thread Bogdan Purcareata
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, May 26, 2017 4:36 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: f.faine...@gmail.com; net...@vger.kernel.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org

RE: [PATCH v3 1/2] net: phy: Add Cortina CS4340 driver (fwd)

2017-05-26 Thread Bogdan Purcareata
> -Original Message- > From: Julia Lawall [mailto:julia.law...@lip6.fr] > Sent: Friday, May 26, 2017 5:32 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: and...@lunn.ch; f.faine...@gmail.com; net...@vger.kernel.org; > devicet...@vger.kernel.org; linu

[PATCH v3 1/2] net: phy: Add Cortina CS4340 driver

2017-05-26 Thread Bogdan Purcareata
t-phy-id" device tree compatible. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- v2 -> v3: - Add probe function to check the device we're talking with is the same as the one described in the device tree. - Change the link status (GPIO interrupt status) re

[PATCH v3 2/2] dt-bindings: net: Add Cortina device tree bindings

2017-05-26 Thread Bogdan Purcareata
Add device tree description info for Cortina 10G phy devices. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- Patch introduced in v3 of the patchset. Documentation/devicetree/bindings/net/cortina.txt | 19 +++ 1 file changed, 19 insertions(+) create mode

[PATCH v3 0/2] net: phy: Support managed Cortina phys

2017-05-26 Thread Bogdan Purcareata
patch version changes per individual patches. Bogdan Purcareata (2): net: phy: Add Cortina CS4340 driver dt-bindings: net: Add Cortina device tree bindings Documentation/devicetree/bindings/net/cortina.txt | 19 drivers/net/phy/Kconfig | 5 + drivers/net/phy/Ma

RE: [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

2017-05-24 Thread Bogdan Purcareata
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Tuesday, May 23, 2017 9:12 PM > To: Andrew Lunn <and...@lunn.ch>; Bogdan Purcareata > <bogdan.purcare...@nxp.com> > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org

[PATCH v4 2/2] dt-bindings: net: Add Cortina device tree bindings

2017-05-29 Thread Bogdan Purcareata
Add device tree description info for Cortina 10G phy devices. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- v3 -> v4: - Consistency nit between phy label and reg value. - Add CORTINNA trademark info. Patch introduced in v3 of the patchset. Documentation/devicetree

[PATCH v4 1/2] net: phy: Add Cortina CS4340 driver

2017-05-29 Thread Bogdan Purcareata
t-phy-id" device tree compatible. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- v3 -> v4: - Add CORTINA trademark info. - Change id_lsb and id_msb from u32 to int to cover error checking. v2 -> v3: - Add probe function to check the device we're talking with is

[PATCH v4 0/2] net: phy: Support managed Cortina phys

2017-05-29 Thread Bogdan Purcareata
y_c45_ids to describing the device in the device tree via ethernet-phy-id. More patch version changes per individual patches. Bogdan Purcareata (2): net: phy: Add Cortina CS4340 driver dt-bindings: net: Add Cortina device tree bindings Documentation/devicetree/bindings/net/cortina.

RE: [PATCH] staging: fsl-mc/dpio: Propagate error code

2017-06-15 Thread Bogdan Purcareata
ists.infradead.org; Bogdan > Purcareata <bogdan.purcare...@nxp.com>; stuyo...@gmail.com; Laurentiu Tudor > <laurentiu.tu...@nxp.com>; Ruxandra Ioana Radulescu > <ruxandra.radule...@nxp.com>; Roy Pledge <roy.ple...@nxp.com>; Haiying Wang > <haiying.w...@nxp.com&

RE: [RESEND PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2017-09-29 Thread Bogdan Purcareata
> Introduce the DPAA2 Ethernet Switch driver, which manages Datapath Switch > (DPSW) objects discovered on the MC bus. > > Suggested-by: Alexandru Marginean > Signed-off-by: Razvan Stefanescu > --- >

[PATCH v2 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment

2017-10-29 Thread Bogdan Purcareata
-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> --- v1 -> v2: - changed *_RAW_BUF_SIZE macro to inline function drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 18 + drivers/staging/fsl-dpaa2/ethernet/d

[PATCH v2 5/5] staging: fsl-dpaa2/eth: Extra headroom in RX buffers

2017-10-29 Thread Bogdan Purcareata
. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> --- v1 -> v2: - changed *_RX_HEAD_ROOM from macro to inline function - since the patch is touching the area, did the same for *_NEEDED_HEADROOM drivers/staging/fsl

[PATCH v2 1/5] staging: fsl-dpaa2/eth: Label cleanup

2017-10-29 Thread Bogdan Purcareata
From: Ioana Radulescu <ruxandra.radule...@nxp.com> Clean up goto labels in a couple of functions, by removing/renaming redundant ones. Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- v1 -> v2: -

[PATCH v2 2/5] staging: fsl-dpaa2/eth: Split function

2017-10-29 Thread Bogdan Purcareata
From: Ioana Radulescu <ruxandra.radule...@nxp.com> Since setup_dpni() became a bit too long, move the buffer layout configuration to a separate function. Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.co

[PATCH v2 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset

2017-10-29 Thread Bogdan Purcareata
When configuring the Tx buffer layout, the software annotation size is mentioned, and MC accounts for it when configuring the frame tx_data_offset. No need to handle it in the driver as well. This results in 64B less memory allocated per frame. Signed-off-by: Bogdan Purcareata <bogdan.purc

[PATCH v2 0/5] staging: fsl-dpaa2/eth: Frame buffer work

2017-10-29 Thread Bogdan Purcareata
to prevent netstack reallocations in forwarding scenarios. Patchset sent against staging-next. v1 -> v2: - clarified one commit message - changed some macros to inline functions - more comments per individual patches Bogdan Purcareata (3): staging: fsl-dpaa2/eth: Don't account SWA in tx_data_off

RE: [PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment

2017-10-30 Thread Bogdan Purcareata
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Monday, October 30, 2017 10:56 AM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: de...@driverdev.osuosl.org; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org &

[PATCH 0/5] staging: fsl-dpaa2/eth: Frame buffer work

2017-10-27 Thread Bogdan Purcareata
scenarios. Patchset sent against staging-next. Bogdan Purcareata (3): staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset staging: fsl-dpaa2/eth: Change RX buffer alignment staging: fsl-dpaa2/eth: Extra headroom in RX buffers Ioana Radulescu (2): staging: fsl-dpaa2/eth: Label cleanup

[PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset

2017-10-27 Thread Bogdan Purcareata
When configuring the Tx buffer layout, the software annotation size is mentioned, and MC accounts for it when configuring the frame tx_data_offset. No need to handle it in the driver as well. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- drivers/staging/fsl-dpaa2/et

[PATCH 2/5] staging: fsl-dpaa2/eth: Split function

2017-10-27 Thread Bogdan Purcareata
From: Ioana Radulescu <ruxandra.radule...@nxp.com> Since setup_dpni() became a bit too long, move the buffer layout configuration to a separate function. Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --

[PATCH 1/5] staging: fsl-dpaa2/eth: Label cleanup

2017-10-27 Thread Bogdan Purcareata
From: Ioana Radulescu <ruxandra.radule...@nxp.com> Clean up goto labels in a couple of functions, by removing/renaming redundant ones. Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- drivers/staging/

[PATCH 5/5] staging: fsl-dpaa2/eth: Extra headroom in RX buffers

2017-10-27 Thread Bogdan Purcareata
. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 79 +++--- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 32 +++ 2 files changed, 6

[PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment

2017-10-27 Thread Bogdan Purcareata
-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 18 ++ drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 14 +++--- 2 files changed, 25 inse

RE: [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset

2017-10-27 Thread Bogdan Purcareata
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, October 27, 2017 5:27 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: Ruxandra Ioana Radulescu <ruxandra.radule...@nxp.com>; > gre...@linuxfoundation.org

RE: [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset

2017-10-27 Thread Bogdan Purcareata
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, October 27, 2017 5:34 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: Ruxandra Ioana Radulescu <ruxandra.radule...@nxp.com>; > gre...@linuxfoundation.org

RE: [PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment

2017-10-27 Thread Bogdan Purcareata
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, October 27, 2017 5:30 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: Ruxandra Ioana Radulescu <ruxandra.radule...@nxp.com>; > gre...@linuxfoundation.org

RE: [PATCH 3/8] staging: fsl-mc: Add SPDX license identifiers

2018-01-17 Thread Bogdan Purcareata
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, January 16, 2018 5:13 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: Laurentiu Tudor <laurentiu.tu...@nxp.com>; Ruxandra Ioana Ciocoi Radulescu > &l

[PATCH v2] staging: fsl-mc: Add SPDX license identifiers

2018-01-17 Thread Bogdan Purcareata
The fsl-mc bus and dpio driver files use a combination of GPL-2.0 and GPL-2.0+ OR BSD-3-Clause licenses. Add SPDX tags and delete the full license text, keeping the existing license for each file. Add GPL-2.0 for Kconfig / Makefile, where not present. Signed-off-by: Bogdan Purcareata

[PATCH 3/8] staging: fsl-mc: Add SPDX license identifiers

2018-01-16 Thread Bogdan Purcareata
The fsl-mc bus and dpio driver files use a combination of GPL-2.0 and GPL-2.0+ OR BSD-3-Clause licenses. Update to latter for all files. Add SPDX tags and delete the full license text. Update copyright information. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Re

[PATCH 6/8] staging: fsl-mc: Update include header

2018-01-16 Thread Bogdan Purcareata
From: Ioana Radulescu With the declarations of its_fsl_mc_msi_init/cleanup() now removed from fsl-mc-private.h, irq-gic-v3-its-fsl-mc-msi.c only needs a couple of definitions from mc.h, so include that header directly. Signed-off-by: Ioana Radulescu

[PATCH 5/8] staging: fsl-mc: Remove unnecessary dependency

2018-01-16 Thread Bogdan Purcareata
From: Ioana Radulescu The function that enables fsl-mc msi interrupts doesn't need to be explicitly called from the fsl-mc bus driver initialization routine. Mark it to be independently called at system init; this is in line with how things are handled by other GICv3

[PATCH 4/8] staging: fsl-mc: Remove dead code

2018-01-16 Thread Bogdan Purcareata
From: Ioana Radulescu Remove one unused function from irq-gic-v3-its-fsl-mc-msi.c Signed-off-by: Ioana Radulescu Reviewed-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/fsl-mc-private.h | 2 --

[PATCH 0/8] staging: fsl-mc: Cleanup

2018-01-16 Thread Bogdan Purcareata
process (.rst). [1] https://patchwork.kernel.org/patch/10081731/ Bogdan Purcareata (3): staging: fsl-mc: Cleanup dprc and dpmcp header files staging: fsl-mc: Consolidate bus core header files staging: fsl-mc: Add SPDX license identifiers Ioana Radulescu (5): staging: fsl-mc: Remove dead code

[PATCH v5 2/2] staging: fsl-mc: Move irqchip code out of staging

2018-01-26 Thread Bogdan Purcareata
Tudor <laurentiu.tu...@nxp.com> [rebased, split irqchip to separate patch] Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> --- Notes:

[PATCH v5 0/2] staging: fsl-mc: Move bus driver out of staging

2018-01-26 Thread Bogdan Purcareata
with the rest (Marc Zyngier) Bogdan Purcareata (2): staging: fsl-mc: Move core bus out of staging staging: fsl-mc: Move irqchip code out of staging Documentation/networking/dpaa2/index.rst | 8 + Documentation/networking/dpaa2/overview.rst| 404 + Documentation/networking

RE: [PATCH v5 1/2] staging: fsl-mc: Move core bus out of staging

2018-01-26 Thread Bogdan Purcareata
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, January 26, 2018 4:06 PM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com> > Cc: Laurentiu Tudor <laurentiu.tu...@nxp.com>; Ruxandra Ioana Ciocoi Radulescu > <r

[PATCH 1/8] staging: fsl-mc: Cleanup dprc and dpmcp header files

2018-01-16 Thread Bogdan Purcareata
A lot of API and associated structures are not used by current code, so remove them. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Reviewed-by: Laurentiu Tudor <laurentiu.tu...@nxp.com> --- drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 2 - drivers/staging/fsl-mc

[PATCH 2/8] staging: fsl-mc: Consolidate bus core header files

2018-01-16 Thread Bogdan Purcareata
The DPAA2 objects involved (DPMNG, DPMCP, DPRC) are used by the fsl-mc bus infrastructure only, so group the APIs and structs into fsl-mc-private.h. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Reviewed-by: Laurentiu Tudor <laurentiu.tu...@nxp.com> --- drivers/stagin

[PATCH 7/8] staging: fsl-mc: README cleanup

2018-01-16 Thread Bogdan Purcareata
From: Ioana Radulescu Minor cosmetic changes to the DPAA2 overview documentation file. Add a reference to the mc-bus driver sysfs documentation. Signed-off-by: Ioana Radulescu Reviewed-by: Laurentiu Tudor ---

[PATCH 8/8] staging: fsl-mc: Convert documentation to rst format

2018-01-16 Thread Bogdan Purcareata
From: Ioana Radulescu Update the doc file to comply with the rst format. It's not integrated into the documentation build structure yet, since it's still located in drivers/staging. Signed-off-by: Ioana Radulescu Reviewed-by: Laurentiu

[PATCH v6 0/2] staging: fsl-mc: Move bus driver out of staging

2018-02-05 Thread Bogdan Purcareata
: - split irqchip glue code to separate patch (GregKH) - integrate doc with the kernel build system -v4: - regenerated patch with renames detection disabled (Andrew Lunn) -v3: - rebased -v2: - group irqchip gic its glue code together with the rest (Marc Zyngier) Bogdan

[PATCH v6 1/2] staging: fsl-mc: Move core bus out of staging

2018-02-05 Thread Bogdan Purcareata
pdates] Signed-off-by: Laurentiu Tudor <laurentiu.tu...@nxp.com> [rebased, split irqchip to separate patch] Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zy

[PATCH v6 2/2] staging: fsl-mc: Move irqchip code out of staging

2018-02-05 Thread Bogdan Purcareata
] Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> [add Kconfig dependency on ARM_GIC_V3_ITS] Signed-off-by: Ioana Radulescu <ruxandra.radule...@nxp.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <m

RE: [PATCH v6 1/2] staging: fsl-mc: Move core bus out of staging

2018-02-06 Thread Bogdan Purcareata
> -Original Message- > From: Horia Geantă > Sent: Tuesday, February 06, 2018 9:18 AM > To: Bogdan Purcareata <bogdan.purcare...@nxp.com>; gre...@linuxfoundation.org; > Laurentiu Tudor <laurentiu.tu...@nxp.com>; Ruxandra Ioana Ciocoi Radulescu > <ruxand

[PATCH 1/3] staging: fsl-mc: Cleanup dpbp and dpcon API

2018-03-01 Thread Bogdan Purcareata
Some functions and associated structures are not used by current code, so remove them. Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- drivers/staging/fsl-mc/bus/dpbp-cmd.h | 10 -- drivers/staging/fsl-mc/bus/dpbp.c | 67 --- d

[PATCH 2/3] staging: fsl-mc: Move DPBP out of staging

2018-03-01 Thread Bogdan Purcareata
, exposing the public API Update references in the dpaa2-eth staging driver. DPBP stands for Data Path Buffer Pool - you can read more about the object in Documentation/networking/dpaa2/overview.rst Signed-off-by: Bogdan Purcareata <bogdan.purcare...@nxp.com> --- drivers/bus/fsl-mc/Ma

[PATCH 0/3] staging: fsl-mc: Move DPBP and DPCON out of staging

2018-03-01 Thread Bogdan Purcareata
. Patch 1 removes dead code from the involved source files. Patches 2-3 handle moving out the mentioned objects, one at a time. Bogdan Purcareata (3): staging: fsl-mc: Cleanup dpbp and dpcon API staging: fsl-mc: Move DPBP out of staging staging: fsl-mc: Move DPCON out of staging drivers/

[PATCH 3/3] staging: fsl-mc: Move DPCON out of staging

2018-03-01 Thread Bogdan Purcareata
, exposing the public API Update references in the dpaa2-eth staging driver. DPCON stands for Data Path Concentrator - an interface between DPIO (Data Path IO) and its users (e.g. dpaa2-eth). You can read more about DPIO in Documentation/networking/dpaa2/overview.rst Signed-off-by: Bogdan

  1   2   3   >