[PATCH v2] net/nfp: fix 48-bit DMA address support for NFDk
Ferruh Yigit
ferruh.yigit at amd.com
Mon Feb 20 15:02:38 CET 2023
On 2/20/2023 9:02 AM, Chaoyong He wrote:
> From: Peng Zhang <peng.zhang at corigine.com>
>
> Initializing of the NFP PMD fails when a NFDk device is used in a PCIe
> slot that supports 48-bit DMA address. The failure is due to an
> incorrect check by the PMD that limits the support to 40-bit DMA
> address. While this check is correct for NFD3 devices, it is incorrect
> for NFDk that can support 48-bit DMA address.
>
> Fix this by correcting the DMA mask check at initialization to allow for
> different DMA address masks for NFD3 and NFDk.
>
> The RX free list descriptor code is also updated to allow for 48-bit DMA
> address. While this code is shared by the NFD3 and NFDk code paths,
> this is not an issue as for 40-bit address the top bits are always 0.
>
> Fixes: c73dced48c8c ("net/nfp: add NFDk Tx")
> Cc: jin.liu at corigine.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Peng Zhang <peng.zhang at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list