[RFC PATCH] ARM: OMAP4: ID: Improve features detection and check

2012-11-01 Thread Ivan Khoronzhuk
@vger.kernel.org Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/id.c | 25 +++-- arch/arm/mach-omap2/soc.h |8 ++-- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index cf2362c..3c47a19 100644 --- a

[PATCH] ARM: OMAP4: ID: Improve features detection and check

2012-11-05 Thread Ivan Khoronzhuk
@vger.kernel.org Acked-by: Nishanth Menon Acked-by: Santosh Shilimkar Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/id.c | 25 +++-- arch/arm/mach-omap2/soc.h |8 ++-- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-omap2/id.c b/arch

[PATCH] ARM: OMAP4: PRM: Correct reset source map

2012-12-19 Thread Ivan Khoronzhuk
In the map for reset sources register we use defines intended for using with PRM_RSTCTRL register. So fix it. Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prm44xx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach

[PATCH] ARM: OMAP4: PRM: Correct wrong instance usage for reading reset sources

2012-12-19 Thread Ivan Khoronzhuk
To read reset sources registers we have to use PRM_DEVICE_INST Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prm44xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index 7498bc7..0b61b8d 100644

[PATCH] ARM: OMAP4: PRM: fix RSTTIME and RSTST offsets

2012-12-19 Thread Ivan Khoronzhuk
From: Nishanth Menon RSTTIME is offset 0x8 and RSTST is offset 0x04 for OMAP4430 and OMAP4460. Signed-off-by: Nishanth Menon [ivan.khoronz...@ti.com: ported from k3.4] Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prm44xx.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[RFC PATCH] Input: gpio_keys: Fix suspend/resume press event lost

2013-01-21 Thread Ivan Khoronzhuk
mber press lost while resuming. Signed-off-by: Ivan Khoronzhuk --- drivers/input/keyboard/gpio_keys.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index b29ca65..33ac

[PATCH 1/2] ARM: OMAP3: PRCM: Fix incorrect read of reset sources

2012-12-17 Thread Ivan Khoronzhuk
The flag mask are incorrect, so fix it. Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prcm.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 0f51e03..dc45156 100644 --- a/arch/arm/mach-omap2

[PATCH 2/2] ARM: OMAP4: PRCM: Fix incorrect read of reset sources

2012-12-17 Thread Ivan Khoronzhuk
The address of PRM_RSTST register and flag mask are incorrect, so fix it. Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prcm.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index dc45156..02f27f2

[PATCH] ARM: OMAP4: PRM: Correct PRM_RSTST and PRM_RSTTIME registers shifts

2012-12-17 Thread Ivan Khoronzhuk
According to TRMs the assigned shifts are wrong, so correct them. --- arch/arm/mach-omap2/prm44xx.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.h b/arch/arm/mach-omap2/prm44xx.h index 22b0979..8ee1fbd 100644 --- a/arch/arm/mach-omap2/prm44

[PATCH] ARM: OMAP4: PRM: Correct PRM_RSTST and PRM_RSTTIME registers shifts

2012-12-17 Thread Ivan Khoronzhuk
According to TRMs the assigned shifts are wrong, so correct them. --- arch/arm/mach-omap2/prm44xx.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.h b/arch/arm/mach-omap2/prm44xx.h index 22b0979..8ee1fbd 100644 --- a/arch/arm/mach-omap2/prm44

[PATCH] ARM: OMAP4: PRM: Correct wrong instance usage for reading reset sources

2012-12-17 Thread Ivan Khoronzhuk
To read reset sources registers we have to use PRM_DEVICE_INST --- arch/arm/mach-omap2/prm44xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index 7498bc7..0b61b8d 100644 --- a/arch/arm/mach-omap2/prm44xx.c ++

[PATCH] ARM: OMAP4: PRM: Correct reset source map

2012-12-17 Thread Ivan Khoronzhuk
In the map for reset sources register we use defines intended for using with PRM_RSTCTRL register. So fix it. --- arch/arm/mach-omap2/prm44xx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index 7498bc7..e3

[RFC PATCH] Input: gpio_keys: Fix suspend/resume press event lost

2013-01-18 Thread Ivan Khoronzhuk
Signed-off-by: Ivan Khoronzhuk --- drivers/input/keyboard/gpio_keys.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 62bfce4..aa49aef 100644 --- a/drivers/inpu

Re: [PATCH 1/3] net: ethernet: ti: cpdma: fix lockup in cpdma_ctlr_destroy()

2016-07-22 Thread Ivan Khoronzhuk
nels[i]); cpdma_desc_pool_destroy(ctlr->pool); - spin_unlock_irqrestore(&ctlr->lock, flags); return ret; } EXPORT_SYMBOL_GPL(cpdma_ctlr_destroy); -- Regards, Ivan Khoronzhuk

Re: [PATCH] net: ethernet: ti: cpdma: remove used_desc counter

2016-08-04 Thread Ivan Khoronzhuk
g values on SMP. Hence, remove used_desc from struct cpdma_desc_pool. Signed-off-by: Grygorii Strashko Reviewed-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/davinci_cpdma.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/ti/dav

[PATCH 1/2] net: core: ethtool: add per queue bandwidth command

2016-08-04 Thread Ivan Khoronzhuk
Signed-off-by: Ivan Khoronzhuk --- include/linux/ethtool.h | 4 ++ include/uapi/linux/ethtool.h | 2 + net/core/ethtool.c | 102 +++ 3 files changed, 108 insertions(+) diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index

[PATCH] net: ethernet: ti: cpsw: split common driver data and slaves data

2016-08-04 Thread Ivan Khoronzhuk
Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 761 +++-- 1 file changed, 359 insertions(+), 402 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index c51f346..38b04bf 100644 --- a/drivers/net

[PATCH 2/2] net: core: ethtool: add ringparam perqueue command

2016-08-04 Thread Ivan Khoronzhuk
It useful feature to be able to configure number of buffers for every queue. Signed-off-by: Ivan Khoronzhuk --- include/linux/ethtool.h | 4 ++ net/core/ethtool.c | 104 2 files changed, 108 insertions(+) diff --git a/include/linux

[PATCH 0/2] Add ability to configure ethernet h/w shaper

2016-08-04 Thread Ivan Khoronzhuk
used to set per-channel bandwidth, second to tune number of per-channel descriptors. It can solve issues described by Schuyler. In case if per-channel bandwidth is equal to maximum for every channel, the driver could be switched to priority mode. Ivan Khoronzhuk (2): net: core: ethtool: add per

[PATCH 0/3] net: ethernet: ti: cpsw: split driver data and per ndev data

2016-08-04 Thread Ivan Khoronzhuk
In dual_emac mode the driver can handle 2 network devices. Each of them can use its own private data and common data/resources. This patchset splits common driver data/resources and private per net device data. Doesn't have bad impact on performance. Based on net-next/master Ivan Khoronzh

[PATCH 3/3] net: ethernet: ti: cpsw: split common driver data and private net data

2016-08-04 Thread Ivan Khoronzhuk
- no functional changes - reduce code size - reduce memory usage - reduce number of conversion to priv function - reduce number of arguments for some functions - increase code readability - create prerequisites to add multichannel support, when channels are shared between net devices Signed-off-by:

[PATCH] priority improvement

2016-08-04 Thread Ivan Khoronzhuk
Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 45 +- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 9ddaccc..cd12f52 100644 --- a/drivers/net

[PATCH 2/3] net: ethernet: ti: cpsw: remove redundant check in napi poll

2016-08-04 Thread Ivan Khoronzhuk
No need to check number of handled packets, when in most cases (> 99%) it's not 0. It can be 0 only in rarely cases, even in this case it's not bad to print just 0. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 8 ++-- 1 file changed, 2 insertions(+)

Re: [PATCH 0/2] Add ability to configure ethernet h/w shaper

2016-08-04 Thread Ivan Khoronzhuk
Please, ignore it It was sent by mistake On 05.08.16 00:11, Ivan Khoronzhuk wrote: These two patches can be used to set per queue bandwidth with ethtool. I've create them as logical continuation of patchset from intel, that have introduced per-queue setting command month ago for et

Re: [PATCH] net: ethernet: ti: cpsw: split common driver data and slaves data

2016-08-04 Thread Ivan Khoronzhuk
Please, ignore it. It was sent by mistake. On 05.08.16 00:11, Ivan Khoronzhuk wrote: Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 761 +++-- 1 file changed, 359 insertions(+), 402 deletions(-) diff --git a/drivers/net/ethernet/ti

[PATCH 1/3] net: ethernet: ti: cpsw: simplify submit routine

2016-08-04 Thread Ivan Khoronzhuk
As second net dev is created only in case of dual_emac mode, port number can be figured out in simpler way. Also no need to pass redundant ndev struct. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions

Re: [PATCH 1/2] net: core: ethtool: add per queue bandwidth command

2016-08-04 Thread Ivan Khoronzhuk
Please, ignore it It was sent by mistake On 05.08.16 00:11, Ivan Khoronzhuk wrote: Signed-off-by: Ivan Khoronzhuk --- include/linux/ethtool.h | 4 ++ include/uapi/linux/ethtool.h | 2 + net/core/ethtool.c | 102 +++ 3 files changed

Re: [PATCH] priority improvement

2016-08-04 Thread Ivan Khoronzhuk
Please, ignore it It was sent by mistake On 05.08.16 00:11, Ivan Khoronzhuk wrote: Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 45 +- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c

Re: [PATCH 2/2] net: core: ethtool: add ringparam perqueue command

2016-08-04 Thread Ivan Khoronzhuk
Please, ignore it It was sent by mistake On 05.08.16 00:11, Ivan Khoronzhuk wrote: It useful feature to be able to configure number of buffers for every queue. Signed-off-by: Ivan Khoronzhuk --- include/linux/ethtool.h | 4 ++ net/core/ethtool.c | 104

Re: [PATCH 3/3] net: ethernet: ti: cpsw: split common driver data and private net data

2016-08-05 Thread Ivan Khoronzhuk
On 05.08.16 15:14, Grygorii Strashko wrote: On 08/05/2016 12:14 AM, Ivan Khoronzhuk wrote: Simplify driver by splitting common driver data and net dev private data. In case of dual_emac mode 2 networks devices are created, each of them contains its own private data. But 2 net devices share a

[PATCH v2 07/14] net: ethernet: ti: cpsw: replace pdev on dev

2016-08-06 Thread Ivan Khoronzhuk
No need to hold pdev link when only dev is needed. This allows to simplify a bunch of cpsw->pdev->dev now and farther. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 65 ++ 1 file changed, 34 insertions(+), 31 deletions(-) diff

[PATCH v2 14/14] net: ethernet: ti: cpsw: move ale, cpts and drivers params under cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The ale, cpts, version, limit, freq, interrupt pacing parameters are common per net device that uses the same h/w. So, move them to common driver structure. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 237 ++--- 1 file changed, 106

[PATCH v2 08/14] net: ethernet: ti: cpsw: move links on h/w registers to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The pointers on h/w registers are common for every cpsw_private instance, so no need to hold them for every ndev. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 97 +++--- 1 file changed, 53 insertions(+), 44 deletions(-) diff --git a

[PATCH v2 11/14] net: ethernet: ti: cpsw: move data platform data and slaves info to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
These data are common per net dev. No need to hold it in every priv instance, so move them under cpsw_common. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 271 + 1 file changed, 140 insertions(+), 131 deletions(-) diff --git a

[PATCH v2 05/14] net: ethernet: ti: cpsw: don't check slave num in runtime

2016-08-06 Thread Ivan Khoronzhuk
No need to check const slave num in runtime for every packet, and ndev for slaves w/o ndev is anyway NULL. So remove redundant check. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti

[PATCH v2 01/14] net: ethernet: ti: cpsw: simplify submit routine

2016-08-06 Thread Ivan Khoronzhuk
As second net dev is created only in case of dual_emac mode, port number can be figured out in simpler way. Also no need to pass redundant ndev struct. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions

[PATCH v2 06/14] net: ethernet: ti: cpsw: create common struct to hold shared driver data

2016-08-06 Thread Ivan Khoronzhuk
This patch simply create holder for common data and as a start moves pdev var to it. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 62 ++ 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c

[PATCH v2 13/14] net: ethernet: ti: cpsw: move napi struct to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The napi structs are common for both net devices in dual_emac mode, In order to not hold duplicate links to them, move to cpsw_common. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 50 +++--- 1 file changed, 22 insertions(+), 28

[PATCH v2 12/14] net: ethernet: ti: cpsw: fix int dbg message

2016-08-06 Thread Ivan Khoronzhuk
for both devices if any of them is allowed to. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 29ff489

[PATCH v2 10/14] net; ethernet: ti: cpsw: move irq stuff under cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
The irq data are common per net device. So no need to hold these data per net dev, move it under cpsw_common. Also delete irq_num var, as after optimization it's not needed. Correct number of irqs to 2, as anyway, driver is using only 2, at least for now. Signed-off-by: Ivan Khoro

[PATCH v2 04/14] net: ethernet: ti: cpsw: remove clk var from priv

2016-08-06 Thread Ivan Khoronzhuk
There is no need to hold link to clk, it's used only once while probe. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 30

[PATCH v2 03/14] net: ethernet: ti: cpsw: remove priv from cpsw_get_slave_port() parameters list

2016-08-06 Thread Ivan Khoronzhuk
There is no need in priv here. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 85ee9f5..30e1ddb 100644 --- a/drivers/net

[PATCH v2 02/14] net: ethernet: ti: cpsw: remove redundant check in napi poll

2016-08-06 Thread Ivan Khoronzhuk
No need to check number of handled packets, when in most cases (> 99%) it's not 0. It can be 0 only in rare cases, even in this case it's not bad to print just 0. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 8 ++-- 1 file changed, 2 insertions(+)

[PATCH v2 00/14] net: ethernet: ti: cpsw: split driver data and per ndev data

2016-08-06 Thread Ivan Khoronzhuk
hernet: ti: cpsw: move data platform data and slaves info to cpsw_common net: ethernet: ti: cpsw: fix int dbg message net: ethernet: ti: cpsw: move napi struct to cpsw_common net: ethernet: ti: cpsw: move ale, cpts and drivers params under Based on net-next/master Ivan Khoronzhuk (14): net

[PATCH v2 09/14] net: ethernet: ti: cpsw: move cpdma resources to cpsw_common

2016-08-06 Thread Ivan Khoronzhuk
Every net device private struct holds links to shared cpdma resources. No need to save and every time synchronize these resources per net dev. So, move it to common driver struct. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 97

[PATCH] net: ethernet: ti: cpsw: fix tx vlan priority mapping

2018-04-12 Thread Ivan Khoronzhuk
The CPDMA_TX_PRIORITY_MAP in real is vlan pcp field priority mapping register and basically replaces vlan pcp field for tagged packets. So, set it to be 1:1 mapping. Signed-off-by: Ivan Khoronzhuk --- Based on net/master drivers/net/ethernet/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH net-next] net: ethernet: ti: cpsw: drop vid0 configuration in dual_mac modey

2018-11-26 Thread Ivan Khoronzhuk
On Mon, Nov 26, 2018 at 12:57:20PM -0600, Grygorii Strashko wrote: On 11/26/18 10:26 AM, Ivan Khoronzhuk wrote: On Sun, Nov 25, 2018 at 05:46:26PM -0600, Grygorii Strashko wrote: In dual_mac mode CPSW driver uses vid1 and vid2 by default to implement dual mac mode wich are used to configure

[PATCH v2 net-next 6/6] Documentation: networking: cpsw: add MQPRIO & CBS offload examples

2018-06-14 Thread Ivan Khoronzhuk
This document describes MQPRIO and CBS Qdisc offload configuration for cpsw driver based on examples. It potentially can be used in audio video bridging (AVB) and time sensitive networking (TSN). Signed-off-by: Ivan Khoronzhuk --- Documentation/networking/ti-cpsw.txt | 540

[RFC PATCH 2/6] net: ethernet: ti: cpdma: fit rated channels in backward order

2018-05-18 Thread Ivan Khoronzhuk
According to TRM tx rated channels should be in 7..0 order, so correct it. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/davinci_cpdma.c | 31 - 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b

[RFC PATCH 5/6] net: ethernet: ti: cpsw: restore shaper configuration while down/up

2018-05-18 Thread Ivan Khoronzhuk
frames are sent via ALE. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 47 ++ 1 file changed, 47 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index c7710b0e1c17..c3e88be36c1b 100644 --- a/drivers/net

[RFC PATCH 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload

2018-05-18 Thread Ivan Khoronzhuk
. For consistency reasons, in role of talker and listener, tools from patchset "TSN: Add qdisc based config interface for CBS" were used and can be seen here: https://www.spinics.net/lists/netdev/msg460869.html Based on net-next/master Ivan Khoronzhuk (6): net: ethernet: ti: cpsw:

[RFC PATCH 6/6] Documentation: networking: cpsw: add MQPRIO & CBS offload examples

2018-05-18 Thread Ivan Khoronzhuk
This document describes MQPRIO and CBS Qdisc offload configuration for cpsw driver based on examples. It potentially can be used in audio video bridging (AVB) and time sensitive networking (TSN). Signed-off-by: Ivan Khoronzhuk --- Documentation/networking/cpsw.txt | 540

[RFC PATCH 3/6] net: ethernet: ti: cpsw: add MQPRIO Qdisc offload

2018-05-18 Thread Ivan Khoronzhuk
part only maps L2 prio to classes of traffic, but not to transmit queues, so to direct traffic to traffic class vlan has to be created with appropriate egress map. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 82 ++ 1 file changed, 82 inser

[RFC PATCH 4/6] net: ethernet: ti: cpsw: add CBS Qdisc offload

2018-05-18 Thread Ivan Khoronzhuk
ged while reconnection, not always is true, so inform user in case speed of interface was changed, as it can impact on dependent shapers configuration. For more examples see Documentation. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 221

[RFC PATCH 1/6] net: ethernet: ti: cpsw: use cpdma channels in backward order for txq

2018-05-18 Thread Ivan Khoronzhuk
them, let assign tx cpdma channels in backward order to queues. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index a7285dd

[RFC PATCH net-next 4/4] net: ethernet: ti: cpsw: fix vlan configuration while down/up

2018-10-16 Thread Ivan Khoronzhuk
patch fixes it, restoring only vlan ALE entries and all other unicast/multicast entries are restored by system calling rx_mode ndo. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw.c

[PATCH 2/2] net: ethernet: ti: cpsw: fix lost of mcast packets while rx_mode update

2018-10-12 Thread Ivan Khoronzhuk
igned-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 46 +- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 832bce07c385..b7a6a2a0f71d 100644 --- a/drivers/net/ethern

[PATCH 0/2] net: ethernet: ti: cpsw fix mcast packet lost

2018-10-12 Thread Ivan Khoronzhuk
The patchset omits redundant refresh of mcast address table and prevents mcast packet lost. Based on net-next/master tested on am572x evm Ivan Khoronzhuk (2): net: ethernet: ti: cpsw_ale: use const for API having pointer on mac address net: ethernet: ti: cpsw: fix lost of mcast packets

[PATCH 1/2] net: ethernet: ti: cpsw_ale: use const for API having pointer on mac address

2018-10-12 Thread Ivan Khoronzhuk
It allows to use function under callbacks with same const qualifier of mac address for farther changes. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw_ale.c | 12 ++-- drivers/net/ethernet/ti/cpsw_ale.h | 8 2 files changed, 10 insertions(+), 10 deletions

[PATCH net-next] net: ethernet: ti: cpsw: use for mcast entries only host port

2018-10-12 Thread Ivan Khoronzhuk
, exactly like it's done in cpsw_ale_set_allmulti(). Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/cpsw.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c

[PATCH net-next] net: ethernet: ti: cpsw: don't flush mcast entries while switch promisc mode

2018-10-18 Thread Ivan Khoronzhuk
ync() them, but no need. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master Tasted on am572x EVM and BBB drivers/net/ethernet/ti/cpsw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 226be2a56c1f..0e475020a674 10

Re: [RFC PATCH net-next 2/4] net: 8021q: vlan_core: allow use list of vlans for real device

2018-10-19 Thread Ivan Khoronzhuk
On Fri, Oct 19, 2018 at 01:22:20PM +0200, Bjørn Mork wrote: Ivan Khoronzhuk writes: @@ -236,6 +239,13 @@ __vlan_find_dev_deep_rcu(struct net_device *real_dev, return NULL; } +static inline int +vlan_for_each(struct net_device *dev, + int (*action)(struct net_device *dev

[PATCH net-next] net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode

2018-10-19 Thread Ivan Khoronzhuk
devices, including single port boards like Beagle Bone. Signed-off-by: Ivan Khoronzhuk --- Based on net-nex/master and is logical continuation of the https://lore.kernel.org/patchwork/patch/1001633/ drivers/net/ethernet/ti/cpsw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net

[PATCH 1/2] firmware: dmi_scan: add symbol to get SMBIOS entry area

2015-01-23 Thread Ivan Khoronzhuk
There are situations when code needs to access SMBIOS entry table area. For example, to pass it via sysfs to userspace when it's not allowed to get SMBIOS info via /dev/mem. Signed-off-by: Ivan Khoronzhuk --- drivers/firmware/dmi_scan.c | 34 ++ include/

[PATCH 0/2] firmware: dmi-sysfs: add SMBIOS

2015-01-23 Thread Ivan Khoronzhuk
ent SMBIOS entry. So this patch series adds SMBIOS area to dmi sysfs in order to allow utils in question to work correctly with dmi sysfs. Ivan Khoronzhuk (2): firmware: dmi_scan: add symbol to get SMBIOS entry area firmware: dmi-sysfs: add SMBIOS entry point area attribute drivers/firmware/d

[PATCH 2/2] firmware: dmi-sysfs: add SMBIOS entry point area attribute

2015-01-23 Thread Ivan Khoronzhuk
There are situations when code needs to access SMBIOS entry table area, but cannot use /dev/mem for this. As the table format is consistent only for a version, and can be changed, use binary attribute to give access to raw SMBIOS entry table area. Signed-off-by: Ivan Khoronzhuk --- drivers

Re: [PATCH 1/2] firmware: dmi_scan: add symbol to get SMBIOS entry area

2015-01-26 Thread Ivan Khoronzhuk
On 01/26/2015 10:44 AM, Ard Biesheuvel wrote: On 23 January 2015 at 20:21, Ivan Khoronzhuk wrote: There are situations when code needs to access SMBIOS entry table area. For example, to pass it via sysfs to userspace when it's not allowed to get SMBIOS info via /dev/mem. Signed-off-by:

[Patch v2 0/2] firmware: dmi-sysfs: add SMBIOS entry point area raw attribute

2015-01-26 Thread Ivan Khoronzhuk
table size - changed format of get_smbios_entry_area symbol returned pointer on const smbios table firmware: dmi-sysfs: add SMBIOS entry point area attribute - adopted to updated get_smbios_entry_area symbol - removed redundant array to save smbios table Ivan

[Patch v2 2/2] firmware: dmi-sysfs: add SMBIOS entry point area attribute

2015-01-26 Thread Ivan Khoronzhuk
There are situations when code needs to access SMBIOS entry table area, but cannot use /dev/mem for this. As the table format is consistent only for a version, and can be changed, use binary attribute to give access to raw SMBIOS entry table area. Signed-off-by: Ivan Khoronzhuk --- drivers

[Patch v2 1/2] firmware: dmi_scan: add symbol to get SMBIOS entry area

2015-01-26 Thread Ivan Khoronzhuk
There are situations when code needs to access SMBIOS entry table area. For example, to pass it via sysfs to userspace when it's not allowed to get SMBIOS info via /dev/mem. Signed-off-by: Ivan Khoronzhuk --- drivers/firmware/dmi_scan.c | 26 ++ include/linux/

Re: [Patch v2 0/2] firmware: dmi-sysfs: add SMBIOS entry point area raw attribute

2015-01-27 Thread Ivan Khoronzhuk
On 01/27/2015 06:23 PM, Grant Likely wrote: On Mon, 26 Jan 2015 15:28:36 +0200 , Ivan Khoronzhuk wrote: Some utils, like dmidecode and smbios, needs to access SMBIOS entry table area in order to get information like SMBIOS version, size, etc. Currently it's done via /dev/mem. Bu

[Patch v3] firmware: dmi-sysfs: add SMBIOS entry point area raw attribute

2015-01-28 Thread Ivan Khoronzhuk
ent SMBIOS entry. So this patch adds SMBIOS area to dmi-sysfs in order to allow utils in question to work correctly with dmi sysfs interface. Reviewed-by: Ard Biesheuvel Signed-off-by: Ivan Khoronzhuk --- v1: https://lkml.org/lkml/2015/1/23/643 v2: https://lkml.org/lkml/2015/1/26/345 v3..v2:

[Patch 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-02 Thread Ivan Khoronzhuk
ed by Jean Delvare. Signed-off-by: Ivan Khoronzhuk --- .../ABI/testing/sysfs-firmware-dmi-tables | 22 ++ drivers/firmware/dmi-sysfs.c | 11 ++- drivers/firmware/dmi_scan.c| 80 ++ include/l

[Patch 0/3] firmware: dmi_scan: add SBMIOS entry point and DMI tables

2015-04-02 Thread Ivan Khoronzhuk
gn dmi_kobj = NULL in case of error - don't export dmi_kobj if CONFIG_DMI is not set - improve read callback for table attributes Ivan Khoronzhuk (3): firmware: dmi_scan: rename dmi_table to dmi_decode_table firmware: dmi_scan: add SBMIOS entry and DMI tables Documentation: ABI: sy

[Patch 3/3] Documentation: ABI: sysfs-firmware-dmi: add -entries suffix to file name

2015-04-02 Thread Ivan Khoronzhuk
"dmi" kobject. Signed-off-by: Ivan Khoronzhuk --- .../ABI/testing/{sysfs-firmware-dmi => sysfs-firmware-dmi-entries} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Documentation/ABI/testing/{sysfs-firmware-dmi => sysfs-firmware-dmi-entries} (99%) diff --gi

[Patch 1/3] firmware: dmi_scan: rename dmi_table to dmi_decode_table

2015-04-02 Thread Ivan Khoronzhuk
The "dmi_table" function looks like data instance, but it does DMI table decode. This patch renames it to "dmi_decode_table" name as more appropriate. That allows us to use "dmi_table" name for correct purposes. Signed-off-by: Ivan Khoronzhuk --- drivers/firmware

[Patch v2 0/3] firmware: dmi_scan: add SBMIOS entry point and DMI tables

2015-04-20 Thread Ivan Khoronzhuk
/kobject.h in header Ivan Khoronzhuk (3): firmware: dmi_scan: rename dmi_table to dmi_decode_table firmware: dmi_scan: add SBMIOS entry and DMI tables Documentation: ABI: sysfs-firmware-dmi: add -entries suffix to file name ...sfs-firmware-dmi => sysfs-firmware-dmi-entries} | 2 +-

[Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-20 Thread Ivan Khoronzhuk
ed by Jean Delvare. Signed-off-by: Ivan Khoronzhuk --- .../ABI/testing/sysfs-firmware-dmi-tables | 22 ++ drivers/firmware/dmi-sysfs.c | 17 +++-- drivers/firmware/dmi_scan.c| 82 ++ include/l

[Patch v2 3/3] Documentation: ABI: sysfs-firmware-dmi: add -entries suffix to file name

2015-04-20 Thread Ivan Khoronzhuk
"dmi" kobject. Reviewed-by: Jean Delvare Signed-off-by: Ivan Khoronzhuk --- .../ABI/testing/{sysfs-firmware-dmi => sysfs-firmware-dmi-entries} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Documentation/ABI/testing/{sysfs-firmware-dmi => sysfs-firmware-dmi

[Patch v2 1/3] firmware: dmi_scan: rename dmi_table to dmi_decode_table

2015-04-20 Thread Ivan Khoronzhuk
The "dmi_table" function looks like data instance, but it does DMI table decode. This patch renames it to "dmi_decode_table" name as more appropriate. That allows us to use "dmi_table" name for correct purposes. Reviewed-by: Jean Delvare Signed-off-by: Ivan Kho

[Patch v3 3/3] Documentation: ABI: sysfs-firmware-dmi: add -entries suffix to file name

2015-04-21 Thread Ivan Khoronzhuk
"dmi" kobject. Reviewed-by: Jean Delvare Signed-off-by: Ivan Khoronzhuk --- .../ABI/testing/{sysfs-firmware-dmi => sysfs-firmware-dmi-entries} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Documentation/ABI/testing/{sysfs-firmware-dmi => sysfs-firmware-dmi

[Patch v3 1/3] firmware: dmi_scan: rename dmi_table to dmi_decode_table

2015-04-21 Thread Ivan Khoronzhuk
The "dmi_table" function looks like data instance, but it does DMI table decode. This patch renames it to "dmi_decode_table" name as more appropriate. That allows us to use "dmi_table" name for correct purposes. Reviewed-by: Jean Delvare Signed-off-by: Ivan Kho

[Patch v3 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-21 Thread Ivan Khoronzhuk
ed by Jean Delvare. Tested-by: Roy Franz Signed-off-by: Ivan Khoronzhuk --- .../ABI/testing/sysfs-firmware-dmi-tables | 22 ++ drivers/firmware/dmi-sysfs.c | 17 +++-- drivers/firmware/dmi_scan.c| 78 ++ include/l

[Patch v3 0/3] firmware: dmi_scan: add SBMIOS entry point and DMI tables

2015-04-21 Thread Ivan Khoronzhuk
path in dmi-sysfs - don't use globally dmi_table var - use "DMI" in attribute name - correct error path in dmi_init - leave dmi_kobj even in case of error - include linux/kobject.h in header Ivan Khoronzhuk (3): firmware: dmi_scan: rena

[PATCH] net: ethernet: ti: cpsw: disable mq feature for "AM33xx ES1.0" devices

2018-05-16 Thread Ivan Khoronzhuk
isions allowing mq. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/cpsw.c | 109 ++--- 1 file changed, 60 insertions(+), 49 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c ind

Re: [PATCH net-next 1/6] net: core: dev_addr_lists: add VID to device address

2019-03-01 Thread Ivan Khoronzhuk
On Wed, Feb 27, 2019 at 08:24:00PM -0800, Florian Fainelli wrote: On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: Despite this is supposed to be used for Ethernet VLANs, not Ethernet addresses with space for VID also can reuse this, so VID is considered as virtual ID extension, not belonging

Re: [PATCH net-next 2/6] net: 8021q: vlan_dev: add vid tag to addresses of uc and mc lists

2019-03-01 Thread Ivan Khoronzhuk
On Wed, Feb 27, 2019 at 08:09:44PM -0800, Florian Fainelli wrote: On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: Update vlan mc and uc addresses with VID tag while propagating addresses to lower devices, do this only if address is not synced. It allows at end driver level to distinguish

Re: [PATCH net-next 3/6] net: 8021q: vlan_dev: add vid tag for vlan device own address

2019-03-01 Thread Ivan Khoronzhuk
On Wed, Feb 27, 2019 at 08:13:34PM -0800, Florian Fainelli wrote: On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: The vlan device address is held separately from uc/mc lists and handled differently. The vlan dev address is bound with real device address only if it's inherited from init, i

Re: [PATCH net-next 4/6] ethernet: eth: add default vid len for all ehternet kind devices

2019-03-01 Thread Ivan Khoronzhuk
On Wed, Feb 27, 2019 at 08:29:20PM -0800, Florian Fainelli wrote: On 2/26/2019 10:45 AM, Ivan Khoronzhuk wrote: IVDF - individual virtual device filtering. Allows to set per vlan l2 address filters on end real network device (for unicast and for multicast) and drop redundant not expected

[PATCH net-next 4/6] ethernet: eth: add default vid len for all ehternet kind devices

2019-02-26 Thread Ivan Khoronzhuk
meone can guid where it's applicable, then it could become a little bit more limited. Signed-off-by: Ivan Khoronzhuk --- include/linux/if_vlan.h | 1 + net/8021q/Kconfig | 12 net/8021q/vlan_core.c | 12 net/8021q/vlan_dev.c| 1 + net/ethernet/eth.c |

[PATCH net-next 6/6] net: ethernet: ti: cpsw: add macvlan and ucast/vlan filtering support

2019-02-26 Thread Ivan Khoronzhuk
ty to handle macvlan and vlan ucasts, synchronizing ucast tables for these devices with cpsw ALE table exclusively. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 62 ++ 1 file changed, 56 insertions(+), 6 deletions(-) diff --git a/drivers/net/eth

[PATCH net-next 5/6] net: ethernet: ti: cpsw: update mc filtering to use IVDF

2019-02-26 Thread Ivan Khoronzhuk
disabled - mc is updated only for real device as before. The previous method is harder to reuse and vlan filtering is limited only for vlans directly connected to real netdev, so drop it in flavor of IVDF decision. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/Kconfig | 1 + drivers

[PATCH net-next 1/6] net: core: dev_addr_lists: add VID to device address

2019-02-26 Thread Ivan Khoronzhuk
By default, vid 0 is used for real devices to distinguish it from virtual addresses. See next patches to see how it's used. Signed-off-by: Ivan Khoronzhuk --- include/linux/netdevice.h | 4 ++ net/core/dev_addr_lists.c | 124 +++--- 2 files changed, 1

[PATCH net-next 0/6] net: add individual virtual device filtering

2019-02-26 Thread Ivan Khoronzhuk
virtual device https://lkml.org/lkml/2018/12/3/817 Ivan Khoronzhuk (6): net: core: dev_addr_lists: add VID to device address net: 8021q: vlan_dev: add vid tag to addresses of uc and mc lists net: 8021q: vlan_dev: add vid tag for vlan device own address ethernet: eth: add default vid len for al

[PATCH net-next 2/6] net: 8021q: vlan_dev: add vid tag to addresses of uc and mc lists

2019-02-26 Thread Ivan Khoronzhuk
Update vlan mc and uc addresses with VID tag while propagating addresses to lower devices, do this only if address is not synced. It allows at end driver level to distinguish addresses belonging to vlan devices. Signed-off-by: Ivan Khoronzhuk --- include/linux/if_vlan.h | 1 + net/8021q/vlan.h

[PATCH net-next 3/6] net: 8021q: vlan_dev: add vid tag for vlan device own address

2019-02-26 Thread Ivan Khoronzhuk
llows to control and sync vlan device address and disable concrete vlan packet income when vlan interface is down. Signed-off-by: Ivan Khoronzhuk --- net/8021q/vlan.c | 3 ++ net/8021q/vlan_dev.c | 76 +--- 2 files changed, 60 insertions(+), 19 deleti

[PATCH net] net: octeon: mgmt: fix xmit hang as busy

2021-04-02 Thread Ivan Khoronzhuk
2958489503fc0ab Signed-off-by: Ivan Khoronzhuk --- Based on net/master drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c index ecffebd513be..be1c

[PATCH] mips: kernel: setup: fix crash kernel resource allocation

2021-02-06 Thread Ivan Khoronzhuk
eseve it out of loop by inserting it in iomem_resource. Fixes: a94e4f24ec83 ("MIPS: init: Drop boot_mem_map") Signed-off-by: Ivan Khoronzhuk --- Based on linux-next/master arch/mips/kernel/setup.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/mips/k

Re: [PATCH] mips: kernel: setup: fix crash kernel resource allocation

2021-02-08 Thread Ivan Khoronzhuk
On Sun, Feb 07, 2021 at 11:19:03AM +0800, Jinyang He wrote: On 02/06/2021 08:59 PM, Ivan Khoronzhuk wrote: In order to avoid crash kernel corruption, its memory is reserved early in memblock and as result, in time when resources are inited it's not present in memblock.memory, so crash k

Re: [PATCH] mips: kernel: setup: fix crash kernel resource allocation

2021-02-08 Thread Ivan Khoronzhuk
On Sun, Feb 07, 2021 at 11:18:42AM +0200, Mike Rapoport wrote: On Sat, Feb 06, 2021 at 12:59:40PM +, Ivan Khoronzhuk wrote: In order to avoid crash kernel corruption, its memory is reserved early in memblock and as result, in time when resources are inited it's not prese

  1   2   3   4   5   6   7   8   >