* [PATCH net 0/3] Few mvneta fixes
@ 2016-03-08 12:57 Gregory CLEMENT
0 siblings, 0 replies; 8+ messages in thread
From: Gregory CLEMENT @ 2016-03-08 12:57 UTC (permalink / raw)
To: linux-arm-kernel
Hi David,
here is a patch set of few fixes. Without the first one, a kernel
configured with debug features ended to hang when the driver is built
as a module and is removed. This is quite is annoying for debugging!
The second patch fix a forgotten flag at the initial submission of the
driver.
The third patch is only really a cosmetic one so I have no problem to
not apply it for 4.5 and wait for 4.6.
I really would like to see the first one applied for 4.5 and for the
second I let you judge if it something needed for now or that should
wait the next release.
Thanks,
Gregory
Dmitri Epshtein (2):
net: mvneta: enable change MAC address when interface is up
net: mvneta: fix error messages in mvneta_port_down function
Gregory CLEMENT (1):
net: mvneta: Fix spinlock usage
drivers/net/ethernet/marvell/mvneta.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH net 0/3] Few mvneta fixes
@ 2017-12-19 16:59 Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 1/3] net: mvneta: clear interface link status on port disable Gregory CLEMENT
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Gregory CLEMENT @ 2017-12-19 16:59 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
here it is a small series of fixes found on the mvneta driver. They
had been already used in the vendor kernel and are now ported to
mainline.
Thanks,
Gregory
Yelena Krivosheev (3):
net: mvneta: clear interface link status on port disable
net: mvneta: use proper rxq_number in loop on rx queues
net: mvneta: eliminate wrong call to handle rx descriptor error
drivers/net/ethernet/marvell/mvneta.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
--
2.15.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH net 1/3] net: mvneta: clear interface link status on port disable
2017-12-19 16:59 [PATCH net 0/3] Few mvneta fixes Gregory CLEMENT
@ 2017-12-19 16:59 ` Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 2/3] net: mvneta: use proper rxq_number in loop on rx queues Gregory CLEMENT
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Gregory CLEMENT @ 2017-12-19 16:59 UTC (permalink / raw)
To: linux-arm-kernel
From: Yelena Krivosheev <yelena@marvell.com>
When port connect to PHY in polling mode (with poll interval 1 sec),
port and phy link status must be synchronize in order don't loss link
change event.
[gregory.clement at free-electrons.com: add fixes tag]
Cc: <stable@vger.kernel.org>
Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network unit")
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Tested-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
drivers/net/ethernet/marvell/mvneta.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index bc93b69cfd1e..16b2bfb2cf51 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -1214,6 +1214,10 @@ static void mvneta_port_disable(struct mvneta_port *pp)
val &= ~MVNETA_GMAC0_PORT_ENABLE;
mvreg_write(pp, MVNETA_GMAC_CTRL_0, val);
+ pp->link = 0;
+ pp->duplex = -1;
+ pp->speed = 0;
+
udelay(200);
}
--
2.15.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH net 2/3] net: mvneta: use proper rxq_number in loop on rx queues
2017-12-19 16:59 [PATCH net 0/3] Few mvneta fixes Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 1/3] net: mvneta: clear interface link status on port disable Gregory CLEMENT
@ 2017-12-19 16:59 ` Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 3/3] net: mvneta: eliminate wrong call to handle rx descriptor error Gregory CLEMENT
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Gregory CLEMENT @ 2017-12-19 16:59 UTC (permalink / raw)
To: linux-arm-kernel
From: Yelena Krivosheev <yelena@marvell.com>
When adding the RX queue association with each CPU, a typo was made in
the mvneta_cleanup_rxqs() function. This patch fixes it.
[gregory.clement at free-electrons.com: add commit log and fixes tag]
Cc: stable at vger.kernel.org
Fixes: 2dcf75e2793c ("net: mvneta: Associate RX queues with each CPU")
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Tested-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
drivers/net/ethernet/marvell/mvneta.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 16b2bfb2cf51..1e0835655c93 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -3015,7 +3015,7 @@ static void mvneta_cleanup_rxqs(struct mvneta_port *pp)
{
int queue;
- for (queue = 0; queue < txq_number; queue++)
+ for (queue = 0; queue < rxq_number; queue++)
mvneta_rxq_deinit(pp, &pp->rxqs[queue]);
}
--
2.15.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH net 3/3] net: mvneta: eliminate wrong call to handle rx descriptor error
2017-12-19 16:59 [PATCH net 0/3] Few mvneta fixes Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 1/3] net: mvneta: clear interface link status on port disable Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 2/3] net: mvneta: use proper rxq_number in loop on rx queues Gregory CLEMENT
@ 2017-12-19 16:59 ` Gregory CLEMENT
2017-12-19 20:18 ` [PATCH net 0/3] Few mvneta fixes Arnd Bergmann
2017-12-20 17:26 ` David Miller
4 siblings, 0 replies; 8+ messages in thread
From: Gregory CLEMENT @ 2017-12-19 16:59 UTC (permalink / raw)
To: linux-arm-kernel
From: Yelena Krivosheev <yelena@marvell.com>
There are few reasons in mvneta_rx_swbm() function when received packet
is dropped. mvneta_rx_error() should be called only if error bit [16]
is set in rx descriptor.
[gregory.clement at free-electrons.com: add fixes tag]
Cc: stable at vger.kernel.org
Fixes: dc35a10f68d3 ("net: mvneta: bm: add support for hardware buffer management")
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Tested-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
drivers/net/ethernet/marvell/mvneta.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 1e0835655c93..a539263cd79c 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -1962,9 +1962,9 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo,
if (!mvneta_rxq_desc_is_first_last(rx_status) ||
(rx_status & MVNETA_RXD_ERR_SUMMARY)) {
+ mvneta_rx_error(pp, rx_desc);
err_drop_frame:
dev->stats.rx_errors++;
- mvneta_rx_error(pp, rx_desc);
/* leave the descriptor untouched */
continue;
}
--
2.15.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH net 0/3] Few mvneta fixes
2017-12-19 16:59 [PATCH net 0/3] Few mvneta fixes Gregory CLEMENT
` (2 preceding siblings ...)
2017-12-19 16:59 ` [PATCH net 3/3] net: mvneta: eliminate wrong call to handle rx descriptor error Gregory CLEMENT
@ 2017-12-19 20:18 ` Arnd Bergmann
2017-12-20 5:19 ` Willy Tarreau
2017-12-20 17:26 ` David Miller
4 siblings, 1 reply; 8+ messages in thread
From: Arnd Bergmann @ 2017-12-19 20:18 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Dec 19, 2017 at 5:59 PM, Gregory CLEMENT
<gregory.clement@free-electrons.com> wrote:
> Hello,
>
> here it is a small series of fixes found on the mvneta driver. They
> had been already used in the vendor kernel and are now ported to
> mainline.
Does one of the patches look like it addresses the rare Oops we discussed on
#kernelci this morning?
https://storage.kernelci.org/stable/linux-4.9.y/v4.9.70/arm/mvebu_v7_defconfig/lab-free-electrons/boot-armada-375-db.html
Arnd
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH net 0/3] Few mvneta fixes
2017-12-19 20:18 ` [PATCH net 0/3] Few mvneta fixes Arnd Bergmann
@ 2017-12-20 5:19 ` Willy Tarreau
0 siblings, 0 replies; 8+ messages in thread
From: Willy Tarreau @ 2017-12-20 5:19 UTC (permalink / raw)
To: linux-arm-kernel
Hi Arnd,
On Tue, Dec 19, 2017 at 09:18:35PM +0100, Arnd Bergmann wrote:
> On Tue, Dec 19, 2017 at 5:59 PM, Gregory CLEMENT
> <gregory.clement@free-electrons.com> wrote:
> > Hello,
> >
> > here it is a small series of fixes found on the mvneta driver. They
> > had been already used in the vendor kernel and are now ported to
> > mainline.
>
> Does one of the patches look like it addresses the rare Oops we discussed on
> #kernelci this morning?
>
> https://storage.kernelci.org/stable/linux-4.9.y/v4.9.70/arm/mvebu_v7_defconfig/lab-free-electrons/boot-armada-375-db.html
I could be wrong but for me the 375 uses mvpp2, not mvneta, so this
should have no effect there.
Willy
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH net 0/3] Few mvneta fixes
2017-12-19 16:59 [PATCH net 0/3] Few mvneta fixes Gregory CLEMENT
` (3 preceding siblings ...)
2017-12-19 20:18 ` [PATCH net 0/3] Few mvneta fixes Arnd Bergmann
@ 2017-12-20 17:26 ` David Miller
4 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2017-12-20 17:26 UTC (permalink / raw)
To: linux-arm-kernel
From: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date: Tue, 19 Dec 2017 17:59:44 +0100
> here it is a small series of fixes found on the mvneta driver. They
> had been already used in the vendor kernel and are now ported to
> mainline.
Series applied, thanks Gregory.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-12-20 17:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 16:59 [PATCH net 0/3] Few mvneta fixes Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 1/3] net: mvneta: clear interface link status on port disable Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 2/3] net: mvneta: use proper rxq_number in loop on rx queues Gregory CLEMENT
2017-12-19 16:59 ` [PATCH net 3/3] net: mvneta: eliminate wrong call to handle rx descriptor error Gregory CLEMENT
2017-12-19 20:18 ` [PATCH net 0/3] Few mvneta fixes Arnd Bergmann
2017-12-20 5:19 ` Willy Tarreau
2017-12-20 17:26 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2016-03-08 12:57 Gregory CLEMENT
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).