Patch "net: mvpp2: allocate zeroed tx descriptors" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
net: mvpp2: allocate zeroed tx descriptors
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mvpp2-allocate-zeroed-tx-descriptors.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Feb 23 11:45:09 CET 2018
From: Yan Markman <[email protected]>
Date: Thu, 30 Nov 2017 10:49:46 +0100
Subject: net: mvpp2: allocate zeroed tx descriptors
From: Yan Markman <[email protected]>
[ Upstream commit a154f8e399a063137fc42b961f437248d55ece29 ]
Reserved and unused fields in the Tx descriptors should be 0. The PPv2 driver doesn't clear them at run-time (for performance reasons) but these descriptors aren't zeroed when allocated, which can lead to unpredictable behaviors. This patch fixes this by using dma_zalloc_coherent instead of dma_alloc_coherent.
--- drivers/net/ethernet/marvell/mvpp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/mvpp2.c +1 -1
@@ -5399,7 +5399,7 @@ static int mvpp2_aggr_txq_init(struct plu32 txq_dma;/* Allocate memory for TX descriptors */ - aggr_txq->descs =dma_alloc_coherent (&pdev->dev, + aggr_txq->descs =dma_zalloc_coherent (&pdev->dev,MVPP2_AGGR_TXQ_SIZE *MVPP2_DESC_ALIGNED_SIZE , &aggr_txq->descs_dma,GFP_KERNEL );if (!aggr_txq->descs)
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/net-mvpp2-allocate-zeroed-tx-descriptors.patch