[PATCH v7 04/10] net/mlx5: Add ONCE and MMIO accessor variants to mlx5_ifc_macros.h
Leon Romanovsky
leon at kernel.org
Mon Sep 28 12:24:56 PDT 2026
On Mon, Sep 21, 2026 at 07:35:44PM -0300, Jason Gunthorpe wrote:
> Add MLX5_GET_ONCE / MLX5_SET_ONCE which include READ_ONCE/WRITE_ONCE
> semantics for touching ownership bits that hardware may read or write
> at any time. The kernel driver doesn't use the IFC struct for these
> ownership bits, but the VFIO driver will and needs these helpers.
>
> Add MLX5_GET_MMIO / MLX5_SET_MMIO for accessing the init seg using
> the IFC offsets. They embed a readl/writel using the IFC struct to
> generate the addressing.
>
> Add MLX5_ARRAY_GET64(), the missing counterpart to
> MLX5_ARRAY_SET64().
>
> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
> ---
> include/linux/mlx5/mlx5_ifc_macros.h | 52 ++++++++++++++++++++++++++++
> 1 file changed, 52 insertions(+)
You should have updated the copyright in this commit or the preceding one.
However, this is not important, so there is no need to respin the series
just for this.
Thanks,
Acked-by: Leon Romanovsky <leonro at nvidia.com>
More information about the linux-arm-kernel
mailing list