Re: [PATCH v2 6/9] net/mlx5: Use RMW accessors for changing LNKCTL

From: Moshe Shemesh
Date: Wed May 17 2023 - 07:19:43 EST



On 5/17/2023 1:52 PM, Ilpo Järvinen wrote:
Don't assume that only the driver would be accessing LNKCTL of the
upstream bridge. ASPM policy changes can trigger write to LNKCTL
outside of driver's control.

Use RMW capability accessors which do proper locking to avoid losing
concurrent updates to the register value.

Fixes: eabe8e5e88f5 ("net/mlx5: Handle sync reset now event")
Suggested-by: Lukas Wunner<lukas@xxxxxxxxx>
Signed-off-by: Ilpo Järvinen<ilpo.jarvinen@xxxxxxxxxxxxxxx>
Cc:stable@xxxxxxxxxxxxxxx
Reviewed-by: Moshe Shemesh <moshe@xxxxxxxxxx>

Thanks!