RE: [PATCH 2/2] aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-06-07 Thread Po Liu
Hi Bjorn, > -Original Message- > > On Mon, Jun 06, 2016 at 10:01:44AM -0400, Murali Karicheri wrote: > > On 06/06/2016 03:32 AM, Po Liu wrote: > > > Hi Bjorn, > > > I confirm we met same problem with KeyStone base on DesignWare > desig

RE: [PATCH 2/2] aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-06-06 Thread Po Liu
Hi Bjorn, I confirm we met same problem with KeyStone base on DesignWare design. Best regards, Liu Po > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Saturday, June 04, 2016 11:49 AM > To: Murali Karicheri > Cc: Po Liu; linux-...@

RE: [PATCH 2/2] aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-06-07 Thread Po Liu
Hi Bjorn, Thanks for the kindly reply. All these are helpful. > From: Bjorn Helgaas [mailto:helg...@kernel.org] > On Wed, June 08, 2016 6:47 AM > > On Tue, Jun 07, 2016 at 10:07:40AM +, Po Liu wrote: > > Hi Bjorn, > > > > > -Original Message--

[PATCH v2 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-06-14 Thread Po Liu
NXP some platforms aer interrupt was not MSI/MSI-X/INTx but using interrupt line independently. This patch add a "aer" interrupt-names for aer interrupt. Signed-off-by: Po Liu <po@nxp.com> --- Changes for V2: - None. .../devicetree/bindings/pci/layerscape-pci.

[PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-06-14 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po Liu

[PATCH v3 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-06-14 Thread Po Liu
NXP some platforms aer interrupt was not MSI/MSI-X/INTx but using interrupt line independently. This patch add a "aer" interrupt-names for aer interrupt. Signed-off-by: Po Liu <po@nxp.com> --- changes for v3: - None; .../devicetree/bindings/pci/layerscape-pci.

[PATCH v2 2/2] pci/aer: interrupt fixup in the quirk

2016-06-14 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po Liu

[PATCH 1/2] freescale/dts: add pcie aer interrupt-name property in the dts

2016-05-26 Thread Po Liu
Freescale some platforms aer interrupt was not MSI/MSI-X/INTx but using interrupt line independently. This patch add a "aer" interrupt-names for aer interrupt. Signed-off-by: Po Liu <po@nxp.com> --- .../devicetree/bindings/pci/layerscape-pci.txt | 2 +- a

[PATCH 2/2] aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-05-26 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Signed-off-by: Po Liu <po@nxp.com> --- drivers/pc

RE: [PATCH 1/2] freescale/dts: add pcie aer interrupt-name property in the dts

2016-06-01 Thread Po Liu
> -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Wednesday, June 01, 2016 10:40 PM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; Shawn Guo; &g

RE: [PATCH 2/2] aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-06-01 Thread Po Liu
Hi Bjorn, > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Thursday, June 02, 2016 11:48 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.

RE: [PATCH v3 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-06-16 Thread Po Liu
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Thursday, June 16, 2016 8:36 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.o

RE: [PATCH v2 2/2] pci/aer: interrupt fixup in the quirk

2016-06-16 Thread Po Liu
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Thursday, June 16, 2016 9:54 PM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; Bjorn Hel

[PATCH] dspi: config dspi master regmap with right mode depend on BE or LE

2016-04-13 Thread Po Liu
When kernel config with big endian mode, spi master need to config regmap data value to be little endian mode. Or else, the kernel boot will hang. Signed-off-by: Po Liu <po@nxp.com> --- drivers/spi/spi-fsl-dspi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/s

RE: [PATCH] dspi: config dspi master regmap with right mode depend on BE or LE

2016-04-18 Thread Po Liu
the val_format_endian_default. Best regards, Liu Po Best regards, Liu Po EXT:8038 -Original Message- From: Mark Brown [mailto:broo...@kernel.org] Sent: Monday, April 18, 2016 6:11 PM To: Scott Wood Cc: Po Liu; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] dspi: config

RE: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-07-04 Thread Po Liu
gt; Sent: Monday, July 04, 2016 4:44 PM > To: Po Liu; linux-...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org > Cc: Bjorn Helgaas; Shawn Guo; Marc Zyngier; Rob Herring; Roy Zang; > Mingkai Hu; Stuart Yoder; Ya

RE: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-07-01 Thread Po Liu
Hi Dongdong, > -Original Message- > From: Dongdong Liu [mailto:liudongdo...@huawei.com] > Sent: Thursday, June 23, 2016 1:44 PM > To: Po Liu; linux-...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet...@vger.kerne

RE: [PATCH v2 2/2] pci/aer: interrupt fixup in the quirk

2016-07-01 Thread Po Liu
Hi Bjorn, So could we keep it in the pci/quirk.c ? If yes, I would only move the binding description in the documentation into this driver the next version. > -Original Message- > From: Po Liu > Sent: Friday, June 17, 2016 11:31 AM > To: 'Bjorn Helgaas'

RE: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-08-22 Thread Po Liu
; meaning. Do you mean I should upload again the first version patch which fix it in the portdrv_core.c ? I would upload again if yes. Thanks! Best regards, Liu Po > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Saturday, July 30, 2016 6:42 AM

RE: [PATCH v4 2/2] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-05 Thread Po Liu
Hi Rob, Best regards, Liu Po > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Friday, September 02, 2016 11:17 PM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet.

[PATCH v4 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-08-31 Thread Po Liu
irq. This is intend to fixup the Layerscape platforms which aer interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Signed-off-by: Po Liu <po@nxp.com> --- changes for V4: - Add comments explain why to add this patch - Move the binding changes to pci

[PATCH v4 2/2] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-08-31 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po Liu

RE: [PATCH v4 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-09-13 Thread Po Liu
...@kernel.org] Sent: Tuesday, September 13, 2016 6:14 AM To: Po Liu Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; Bjorn Helgaas; Shawn Guo; Marc Zyngier; Rob Herring; Roy Zang; Vincent Hu; Stuart Yoder; Leo Li; Arnd

[PATCH v5 2/3] arm64/dts: add pcie aer interrupt-name property in the dts

2016-09-12 Thread Po Liu
ce the aer interrupt service irq. This is intend to fixup the Layerscape platforms which aer interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Signed-off-by: Po Liu <po@nxp.com> --- changes for v5: - Seperate arm and arm64 dts modification into two patches arc

[PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-12 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po Liu

[PATCH v5 1/3] arm/dts: add pcie aer interrupt-name property in the dts

2016-09-12 Thread Po Liu
This patch is intend to fixup the Layerscape platforms which aer interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Signed-off-by: Po Liu <po@nxp.com> --- changes for v5: - Seperate arm arm64 dts changes arch/arm/boot/dts/ls1021a.dtsi | 6 -- 1 file c

[PATCH v6 1/3] arm/dts-ls1021: add pcie aer/pme interrupt-name property in the dts

2016-09-30 Thread Po Liu
t, replace the aer/pme interrupt service irqs. This patch is intend to fixup the Layerscape platforms which aer/pme interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Since the interrupt-names "intr" never been used. Remove it. Signed-off-by: Po Liu <po@nx

[PATCH v6 3/3] pci:add support aer/pme interrupts with none MSI/MSI-X/INTx mode

2016-09-30 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer/pme interrupts with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po Liu

[PATCH v6 2/3] arm64/dts-ls1043-ls2080: add pcie aer/pme interrupt-name property in the dts

2016-09-30 Thread Po Liu
terrupt line for pcie root port, replace the aer/pme interrupt service irqs. This is intend to fixup the Layerscape platforms which aer/pmes interrupts was not MSI/MSI-X/INTx, but using interrupt line independently. Since the interrupt-names "intr" never been used. Remove it. Signed-

RE: [PATCH v6 3/3] pci:add support aer/pme interrupts with none MSI/MSI-X/INTx mode

2016-10-08 Thread Po Liu
Hi Rob, Best regards, Liu Po > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Sunday, October 09, 2016 4:50 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet.

RE: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-09-21 Thread Po Liu
Hi Bjorn, > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Wednesday, September 21, 2016 4:47 AM > To: Po Liu > Cc: Roy Zang; Arnd Bergmann; devicet...@vger.kernel.org; Marc Zyngier; > linux-...@vger.kernel.org; linux-kernel@vger.

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-21 Thread Po Liu
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Tuesday, September 20, 2016 8:39 PM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.o

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-17 Thread Po Liu
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Sunday, September 18, 2016 8:52 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.o

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-21 Thread Po Liu
Hi Bjorn, > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Thursday, September 22, 2016 6:38 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.ke

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-26 Thread Po Liu
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Friday, September 23, 2016 9:06 PM > To: Po Liu > Cc: Shawn Guo; linux-...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet...

RE: Re: [v5,net-next 0/4] Introduce a flow gate control action and apply IEEE

2020-05-03 Thread Po Liu
Hi David, Stephen, > -Original Message- > From: David Miller > Sent: 2020年5月2日 7:09 > To: Po Liu > Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; > vinicius.go...@intel.com; v...@buslov.dev; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru

[v3,iproute2 1/2] iproute2:tc:action: add a gate control action

2020-05-03 Thread Po Liu
lter add dev eth0 parent : protocol ip \ flower skip_hw ip_proto icmp dst_mac 10:00:80:00:00:00 \ action gate index 12 base-time 13570 \ sched-entry CLOSE 2 \ clockid CLOCK_TAI Signed-off-by: Po Liu --- These patches continue requ

[v3,iproute2 2/2] iproute2: add gate action man page

2020-05-03 Thread Po Liu
This patch is to add the man page for the tc gate action. Signed-off-by: Po Liu --- man/man8/tc-gate.8 | 123 + 1 file changed, 123 insertions(+) create mode 100644 man/man8/tc-gate.8 diff --git a/man/man8/tc-gate.8 b/man/man8/tc-gate.8 new file

RE: [EXT] Re: [v4,net-next 1/4] net: qos: introduce a gate control flow action

2020-04-29 Thread Po Liu
Hi Vlad, > -Original Message- > From: Vlad Buslov > Sent: 2020年4月30日 1:04 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru Marginean ; >

RE: Re: [v4,net-next 2/4] net: schedule: add action gate offloading

2020-04-30 Thread Po Liu
Hi Vlad, > -Original Message- > From: Vlad Buslov > Sent: 2020年4月30日 1:41 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru Marginean ; >

[v5,net-next 0/4] Introduce a flow gate control action and apply IEEE

2020-04-30 Thread Po Liu
try would refer the gate action parameters. Stream filter instance entry would refer the stream gate index and assign a stream handle value matches to the stream identify instance. Po Liu (4): net: qos: introduce a gate control flow action net: schedule: add action gate offloading net: enetc:

[v5,net-next 1/4] net: qos: introduce a gate control flow action

2020-04-30 Thread Po Liu
v eth0 parent : protocol ip \ flower skip_hw ip_proto icmp dst_mac 10:00:80:00:00:00 \ action gate index 12 base-time 13570 \ sched-entry close 2 -1 -1 \ clockid CLOCK_TAI Signed-off-by: Po Liu --- include/net/tc_act/tc_gate.h

[v5,net-next 2/4] net: schedule: add action gate offloading

2020-04-30 Thread Po Liu
Add the gate action to the flow action entry. Add the gate parameters to the tc_setup_flow_action() queueing to the entries of flow_action_entry array provide to the driver. Signed-off-by: Po Liu --- include/net/flow_offload.h | 10 include/net/tc_act/tc_gate.h | 99

[v5,net-next 4/4] net: enetc: add tc flower psfp offload driver

2020-04-30 Thread Po Liu
te module. Keep the gate open for 200ms and limit the traffic volume to 8MB in this sched-entry. Then direct the frames to the ingress queue 1. Signed-off-by: Po Liu --- drivers/net/ethernet/freescale/enetc/enetc.c | 25 +- drivers/net/ethernet/freescale/enetc/enetc.h | 46 +- .../net

[v5,net-next 3/4] net: enetc: add hw tc hw offload features for PSPF capability

2020-04-30 Thread Po Liu
not enable for any entry of per stream filtering and stream gate or stream identify but get how much capabilities for each feature. Signed-off-by: Po Liu --- drivers/net/ethernet/freescale/enetc/enetc.c | 23 + drivers/net/ethernet/freescale/enetc/enetc.h | 48 +++ .../net

RE: Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Po Liu
Hi Jamal, > -Original Message- > From: Jamal Hadi Salim > Sent: 2020年6月23日 20:18 > To: Po Liu ; da...@davemloft.net; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; ido...@idosch.org > Cc: j...@resnulli.us; vinicius.go...@intel.com; v...@buslov.dev; Claudiu &

[v2,net-next 1/4] net: qos: add tc police offloading action with max frame size limit

2020-06-24 Thread Po Liu
From: Po Liu Current police offloading support the 'burst'' and 'rate_bytes_ps'. Some hardware own the capability to limit the frame size. If the frame size larger than the setting, the frame would be dropped. For the police action itself already accept the 'mtu' parameter in tc command

[v2,net-next 2/4] net: enetc: add support max frame size for tc flower offload

2020-06-24 Thread Po Liu
From: Po Liu Base on the tc flower offload police action add max frame size by the parameter 'mtu'. Tc flower device driver working by the IEEE 802.1Qci stream filter can implement the max frame size filtering. Add it to the current hardware tc flower stearm filter driver. Signed-off-by: Po Liu

[v2,net-next 4/4] net: enetc add tc flower offload flow metering policing action

2020-06-24 Thread Po Liu
From: Po Liu Flow metering entries in IEEE 802.1Qci is an optional function for a flow filtering module. Flow metering is two rates two buckets and three color marker to policing the frames. This patch only enable one rate one bucket and in color blind mode. Flow metering instance

[v2,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-24 Thread Po Liu
From: Po Liu Hardware device may include more than one police entry. Specifying the action's index make it possible for several tc filters to share the same police action when installing the filters. Propagate this index to device drivers through the flow offload intermediate representation, so

RE:Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-24 Thread Po Liu
> -Original Message- > From: Jamal Hadi Salim > Sent: 2020年6月24日 20:45 > To: Po Liu ; da...@davemloft.net; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; ido...@idosch.org > Cc: j...@resnulli.us; vinicius.go...@intel.com; v...@buslov.dev; Claudiu > Man

RE: Re: [v3,iproute2 1/2] iproute2:tc:action: add a gate control action

2020-05-05 Thread Po Liu
Hi Stephen, David, > -Original Message- > From: Stephen Hemminger > Sent: 2020年5月5日 8:05 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; v...@buslov.dev; > Claudiu Manoil ; Vladimir

RE: Re: [v3,iproute2 1/2] iproute2:tc:action: add a gate control action

2020-05-05 Thread Po Liu
Hi Stephen, > -Original Message- > From: Stephen Hemminger > Sent: 2020年5月5日 8:07 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; v...@buslov.dev; > Claudiu Manoil ; Vladimir Oltean &g

[v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Po Liu
lter add dev eth0 parent : protocol ip \ flower skip_hw ip_proto icmp dst_mac 10:00:80:00:00:00 \ action gate index 12 base-time 13570 \ sched-entry CLOSE 2 \ clockid CLOCK_TAI Signed-off-by: Po Liu --- These patches continue requ

[v4,iproute2-next 2/2] iproute2-next: add gate action man page

2020-05-06 Thread Po Liu
This patch is to add the man page for the tc gate action. Signed-off-by: Po Liu --- man/man8/tc-gate.8 | 123 + 1 file changed, 123 insertions(+) create mode 100644 man/man8/tc-gate.8 diff --git a/man/man8/tc-gate.8 b/man/man8/tc-gate.8 new file

RE: [EXT] Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Po Liu
Hi Davide, > -Original Message- > From: Davide Caratti > Sent: 2020年5月6日 20:54 > To: Po Liu ; dsah...@gmail.com; linux- > ker...@vger.kernel.org; net...@vger.kernel.org > Cc: vinicius.go...@intel.com; step...@networkplumber.org; > da...@davemloft.net; v...@buslo

RE: Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Po Liu
Hi Stephen, > -Original Message- > From: Stephen Hemminger > Sent: 2020年5月6日 23:22 > To: Po Liu > Cc: dsah...@gmail.com; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; > da...@davemloft.net; v...@buslov.dev; Claudiu Manoi

[net-next] net:enetc: bug fix for qos sfi operate space after freed

2020-05-07 Thread Po Liu
'Dan Carpenter' reported: This code frees "sfi" and then dereferences it on the next line: > kfree(sfi); > clear_bit(sfi->index, epsfp.psfp_sfi_bitmap); This "sfi->index" should be "index". Reported-by: Dan Carpente

RE: Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-07 Thread Po Liu
Hi Stephen, > -Original Message- > From: Po Liu > Sent: 2020年5月7日 10:53 > To: Stephen Hemminger > Cc: dsah...@gmail.com; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; > da...@davemloft.net; v...@buslov.dev; Claudiu Manoi

[v5,iproute2-next 2/2] iproute2-next: add gate action man page

2020-05-08 Thread Po Liu
This patch is to add the man page for the tc gate action. Signed-off-by: Po Liu --- changes before v4: No changes. changes from v4: - Update the examples with input/output time and size routine support man/man8/tc-gate.8 | 123 + 1 file changed, 123

[v5,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-08 Thread Po Liu
here would be 2ns for this case. #tc filter add dev eth0 parent : protocol ip \ flower skip_hw ip_proto icmp dst_mac 10:00:80:00:00:00 \ action gate index 12 base-time 13570ns \ sched-entry CLOSE 2ns \ clockid CLOCK_TAI

[v2,net-next] net:qos: police action offloading parameter 'burst' change to the original value

2020-06-29 Thread Po Liu
Since 'tcfp_burst' with TICK factor, driver side always need to recover it to the original value, this patch moves the generic calculation and recover to the 'burst' original value before offloading to device driver. Signed-off-by: Po Liu Acked-by: Vladimir Oltean --- drivers/net/dsa/ocelot

RE: Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-26 Thread Po Liu
Hi Jamal, > -Original Message- > From: Jamal Hadi Salim > Sent: 2020年6月26日 21:28 > To: Po Liu ; da...@davemloft.net; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; ido...@idosch.org > Cc: j...@resnulli.us; vinicius.go...@intel.com; v...@buslov.dev; Claudiu &

[iproute2-next] action police: make 'mtu' could be set independently in police action

2020-06-27 Thread Po Liu
Current police action must set 'rate' and 'burst'. 'mtu' parameter set the max frame size and could be set alone without 'rate' and 'burst' in some situation. Offloading to hardware for example, 'mtu' could limit the flow max frame size. Signed-off-by: Po Liu --- tc/m_police.c | 4 ++-- 1 file

RE: Re: [iproute2-next] action police: make 'mtu' could be set independently in police action

2020-06-28 Thread Po Liu
Hi Stephen, > -Original Message- > From: Stephen Hemminger > Sent: 2020年6月29日 4:16 > To: Po Liu > Cc: dsah...@gmail.com; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; da...@davemloft.net; j...@mojatatu.com; > v...@buslov.dev; Claudiu Manoil ; Vladimir

[v2,iproute2-next 1/2] action police: change the print message quotes style

2020-06-28 Thread Po Liu
Change the double quotes to single quotes in fprintf message to make it more readable. Signed-off-by: Po Liu --- v1->v2 changes: - Patch new added tc/m_police.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tc/m_police.c b/tc/m_police.c index a5bc20c0..7eb47

[v2,iproute2-next 2/2] action police: make 'mtu' could be set independently in police action

2020-06-28 Thread Po Liu
Current police action must set 'rate' and 'burst'. 'mtu' parameter set the max frame size and could be set alone without 'rate' and 'burst' in some situation. Offloading to hardware for example, 'mtu' could limit the flow max frame size. Signed-off-by: Po Liu --- v1->v2 changes: - fix the pr

[v1,net-next] net:qos: police action offloading parameter 'burst' change to the original value

2020-06-28 Thread Po Liu
Since 'tcfp_burst' with TICK factor, driver side always need to recover it to the original value, this patch moves the generic calculation and recover to the 'burst' original value before offloading to device driver. Signed-off-by: Po Liu Signed-off-by: Vladimir Oltean --- drivers/net/dsa

[v2,net-next] net: qos offload add flow status with dropped count

2020-06-19 Thread Po Liu
From: Po Liu This patch adds a drop frames counter to tc flower offloading. Reporting h/w dropped frames is necessary for some actions. Some actions like police action and the coming introduced stream gate action would produce dropped frames which is necessary for user. Status update shows how

RE: Re: [RFC,net-next 8/9] net: qos: police action add index for tc flower offloading

2020-06-21 Thread Po Liu
Hi Ido, > -Original Message- > From: Ido Schimmel > Sent: 2020年6月21日 18:04 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; vinicius.go...@intel.com; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru Marginean ; Xia

[v1,net-next 1/4] net: qos: add tc police offloading action with max frame size limit

2020-06-23 Thread Po Liu
From: Po Liu Current police offloading support the 'burst'' and 'rate_bytes_ps'. Some hardware own the capability to limit the frame size. If the frame size larger than the setting, the frame would be dropped. For the police action itself already accept the 'mtu' parameter in tc command

[v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Po Liu
From: Po Liu Hardware may own many entries for police flow. So that make one(or multi) flow to be policed by one hardware entry. This patch add the police action index provide to the driver side make it mapping the driver hardware entry index. Signed-off-by: Po Liu --- include/net

[v1,net-next 2/4] net: enetc: add support max frame size for tc flower offload

2020-06-23 Thread Po Liu
From: Po Liu Base on the tc flower offload police action add max frame size by the parameter 'mtu'. Tc flower device driver working by the IEEE 802.1Qci stream filter can implement the max frame size filtering. Add it to the current hardware tc flower stearm filter driver. Signed-off-by: Po Liu

[v1,net-next 4/4] net: enetc add tc flower offload flow metering policing action

2020-06-23 Thread Po Liu
From: Po Liu Flow metering entries in IEEE 802.1Qci is an optional function for a flow filtering module. Flow metering is two rates two buckets and three color marker to policing the frames. This patch only enable one rate one bucket and in color blind mode. Flow metering instance

RE: [EXT] Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Po Liu
Hi Ido, > -Original Message- > From: Ido Schimmel > Sent: 2020年6月23日 15:10 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; j...@resnulli.us; vinicius.go...@intel.com; > v...@buslov.dev; Claudiu Manoil ; Vladimir

RE:Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Po Liu
Hi Ido, Sorry, ignore previous email. > -Original Message- > From: Ido Schimmel > Sent: 2020年6月23日 15:10 > To: Po Liu > Cc: da...@davemloft.net; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; j...@resnulli.us; vinicius.go...@intel.com; > v...@buslo

RE: Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Po Liu
Hi Jamal, > -Original Message- > From: Jamal Hadi Salim > Sent: 2020年6月23日 18:09 > To: Po Liu ; da...@davemloft.net; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; ido...@idosch.org > Cc: j...@resnulli.us; vinicius.go...@intel.com; v...@buslov.dev; Claudiu &

RE: [PATCH] net: tsn: add an netlink interface between kernel and application layer

2019-01-02 Thread Po Liu
Hi Vinicius, Thanks! As comments below. Br, Po Liu > -Original Message- > From: Vinicius Costa Gomes [mailto:vinicius.go...@intel.com] > Sent: 2019年1月3日 3:02 > To: Po Liu ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: da...@davemloft.net; haus...@cis

RE: [PATCH] net: tsn: add an netlink interface between kernel and application layer

2019-01-03 Thread Po Liu
Hi Ilias, Br, Po Liu > -Original Message- > From: Ilias Apalodimas [mailto:ilias.apalodi...@linaro.org] > Sent: 2019年1月3日 17:16 > To: Vinicius Costa Gomes > Cc: Po Liu ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; da...@davemloft.net; haus...@cisco

RE: [PATCH] net: tsn: add an netlink interface between kernel and application layer

2019-01-04 Thread Po Liu
Hi Ilias, > -Original Message- > From: Ilias Apalodimas [mailto:ilias.apalodi...@linaro.org] > Sent: 2019年1月3日 19:39 > To: Po Liu > Cc: Vinicius Costa Gomes ; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; da...@davemloft.net; haus...@cisco.com; > nicola

[PATCH] net: tsn: add an netlink interface between kernel and application layer

2018-12-27 Thread PO LIU
: This patch not support the pure software only TSN protocols(like Qcc) but hardware related configuration. TSN Protocols supports by this patch: Qbv/Qci/Qbu/Credit-base Shaper(Qav). This patch verified on NXP ls1028ardb board. Will add more protocols in the future. Signed-off-by: Po Liu

RE: [PATCH] net: tsn: add an netlink interface between kernel and application layer

2018-12-28 Thread PO LIU
not only the end station and also the switch. LS1028 is such a kind of device. And your advises are precious for us. Let's make out an easy and flexible interface for TSN. Br, Po Liu > -Original Message- > From: Vinicius Costa Gomes [mailto:vinicius.go...@intel.com] > Sent: 20

RE: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-09-21 Thread Po Liu
Hi Bjorn, > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Wednesday, September 21, 2016 4:47 AM > To: Po Liu > Cc: Roy Zang; Arnd Bergmann; devicet...@vger.kernel.org; Marc Zyngier; > linux-...@vger.kernel.org; linux-kernel@vger.

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-21 Thread Po Liu
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Tuesday, September 20, 2016 8:39 PM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.o

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-21 Thread Po Liu
Hi Bjorn, > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Thursday, September 22, 2016 6:38 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.ke

[PATCH v4 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-08-31 Thread Po Liu
irq. This is intend to fixup the Layerscape platforms which aer interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Signed-off-by: Po Liu --- changes for V4: - Add comments explain why to add this patch - Move the binding changes to pci code patch arch/arm/b

[PATCH v4 2/2] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-08-31 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-17 Thread Po Liu
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Sunday, September 18, 2016 8:52 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.o

RE: [PATCH v4 2/2] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-05 Thread Po Liu
Hi Rob, Best regards, Liu Po > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Friday, September 02, 2016 11:17 PM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet.

RE: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-08-22 Thread Po Liu
; meaning. Do you mean I should upload again the first version patch which fix it in the portdrv_core.c ? I would upload again if yes. Thanks! Best regards, Liu Po > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Saturday, July 30, 2016 6:42 AM

[PATCH v5 2/3] arm64/dts: add pcie aer interrupt-name property in the dts

2016-09-12 Thread Po Liu
ce the aer interrupt service irq. This is intend to fixup the Layerscape platforms which aer interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Signed-off-by: Po Liu --- changes for v5: - Seperate arm and arm64 dts modification into two patches arch/arm64/bo

[PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-12 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po

[PATCH v5 1/3] arm/dts: add pcie aer interrupt-name property in the dts

2016-09-12 Thread Po Liu
This patch is intend to fixup the Layerscape platforms which aer interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Signed-off-by: Po Liu --- changes for v5: - Seperate arm arm64 dts changes arch/arm/boot/dts/ls1021a.dtsi | 6 -- 1 file changed, 4 insertions(+),

RE: [PATCH v4 1/2] nxp/dts: add pcie aer interrupt-name property in the dts

2016-09-13 Thread Po Liu
...@kernel.org] Sent: Tuesday, September 13, 2016 6:14 AM To: Po Liu Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; Bjorn Helgaas; Shawn Guo; Marc Zyngier; Rob Herring; Roy Zang; Vincent Hu; Stuart Yoder; Leo Li; Arnd

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-26 Thread Po Liu
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Friday, September 23, 2016 9:06 PM > To: Po Liu > Cc: Shawn Guo; linux-...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet...

RE: [PATCH v6 3/3] pci:add support aer/pme interrupts with none MSI/MSI-X/INTx mode

2016-10-08 Thread Po Liu
Hi Rob, Best regards, Liu Po > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Sunday, October 09, 2016 4:50 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet.

[PATCH v6 1/3] arm/dts-ls1021: add pcie aer/pme interrupt-name property in the dts

2016-09-30 Thread Po Liu
t, replace the aer/pme interrupt service irqs. This patch is intend to fixup the Layerscape platforms which aer/pme interrupt was not MSI/MSI-X/INTx, but using interrupt line independently. Since the interrupt-names "intr" never been used. Remove it. Signed-off-by: Po Liu ---

[PATCH v6 3/3] pci:add support aer/pme interrupts with none MSI/MSI-X/INTx mode

2016-09-30 Thread Po Liu
On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer/pme interrupts with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it. Signed-off-by: Po

[PATCH v6 2/3] arm64/dts-ls1043-ls2080: add pcie aer/pme interrupt-name property in the dts

2016-09-30 Thread Po Liu
terrupt line for pcie root port, replace the aer/pme interrupt service irqs. This is intend to fixup the Layerscape platforms which aer/pmes interrupts was not MSI/MSI-X/INTx, but using interrupt line independently. Since the interrupt-names "intr" never been used. Remove it. Signed

RE: [PATCH] dspi: config dspi master regmap with right mode depend on BE or LE

2016-04-18 Thread Po Liu
the val_format_endian_default. Best regards, Liu Po Best regards, Liu Po EXT:8038 -Original Message- From: Mark Brown [mailto:broo...@kernel.org] Sent: Monday, April 18, 2016 6:11 PM To: Scott Wood Cc: Po Liu; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] dspi: config

  1   2   >