Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-16 Thread Jiri Pirko
Tue, Sep 15, 2020 at 10:28:44PM CEST, mo...@nvidia.com wrote: > >On 9/15/2020 4:37 PM, Jiri Pirko wrote: >> Tue, Sep 15, 2020 at 02:44:02PM CEST, mo...@nvidia.com wrote: >> > On 9/14/2020 4:54 PM, Jiri Pirko wrote: >> > > Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: >> > > >> >

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-15 Thread Moshe Shemesh
On 9/14/2020 4:54 PM, Jiri Pirko wrote: Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: [..] +static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev) +{ + struct mlx5_fw_reset *fw_reset = dev->priv.fw_reset; + + /* if this is the driver that

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-15 Thread Moshe Shemesh
On 9/15/2020 4:37 PM, Jiri Pirko wrote: Tue, Sep 15, 2020 at 02:44:02PM CEST, mo...@nvidia.com wrote: On 9/14/2020 4:54 PM, Jiri Pirko wrote: Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: [..] +static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev) +{ +

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-15 Thread Jiri Pirko
Tue, Sep 15, 2020 at 02:44:02PM CEST, mo...@nvidia.com wrote: > >On 9/14/2020 4:54 PM, Jiri Pirko wrote: >> Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: >> >> [..] >> >> > +static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev) >> > +{ >> > + struct

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-15 Thread Moshe Shemesh
On 9/14/2020 4:52 PM, Jiri Pirko wrote: Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: Add support for devlink reload action fw_activate. To activate firmware image the mlx5 driver resets the firmware and reloads it from flash. If a new image was stored on flash it will be

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-14 Thread Jiri Pirko
Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: [..] >+static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev) >+{ >+ struct mlx5_fw_reset *fw_reset = dev->priv.fw_reset; >+ >+ /* if this is the driver that initiated the fw reset, devlink completed >the

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-14 Thread Jiri Pirko
Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: >Add support for devlink reload action fw_activate. To activate firmware >image the mlx5 driver resets the firmware and reloads it from flash. If >a new image was stored on flash it will be loaded. Once this reload >command is

[PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-14 Thread Moshe Shemesh
Add support for devlink reload action fw_activate. To activate firmware image the mlx5 driver resets the firmware and reloads it from flash. If a new image was stored on flash it will be loaded. Once this reload command is executed the driver initiates fw sync reset flow, where the firmware