Re: [PATCH] common/mlx5: fix overlapping memory ranges
Raslan Darawsheh <[email protected]> Mon, 3 Aug 2026 12:18:50 +0300
| Newsgroups | org.dpdk.dev |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On 21/07/2026 3:13 PM, Viacheslav Ovsiienko wrote:
> The mlx5 driver requires special objects named Memory Regions
> (MR) to perform DMA operations with network data. The memory
> pool(s) is used to provide memory and to cover pool addresses
> the mlx5 PMD -pre-creates the appropriate MRs on Rx queue creation.
>
> The pool memory can be non-contigous and split into segments.
> The PMD created MRs on the page alignment segment boundaries
> and it could cause the overlapping MRs (in case if the end
> address of one segmend is aligned to ceiling and the next
> segment start address is aligned to the floor).
>
> The MRs overlapping could cause the wrong MR fetching from the
> cache for the mbufs in the overlapping area if the starting
> mbuf address falls into overlapped area and raise the
> hardware memory protection exception.
>
> Fixes: 690b2a88c2f7 ("common/mlx5: add mempool registration facilities")
> Cc: [email protected]
>
> Signed-off-by: Viacheslav Ovsiienko <[email protected]>
> Acked-by: Dariusz Sosnowski <[email protected]>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh