[v2,040/148] net/ice/base: add FW load status mask

Message ID ade440fb60f497162d766aef68540578775cf8f3.1718204528.git.anatoly.burakov@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Bruce Richardson
Headers
Series Update net/ice base driver to latest upstream snapshot |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Burakov, Anatoly June 12, 2024, 3 p.m. UTC
From: Ian Stokes <ian.stokes@intel.com>

Add a mask used to extract FW load status from GL_MNG_FWSM.

Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
---
 drivers/net/ice/base/ice_hw_autogen.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Bruce Richardson June 20, 2024, 10:29 a.m. UTC | #1
On Wed, Jun 12, 2024 at 04:00:34PM +0100, Anatoly Burakov wrote:
> From: Ian Stokes <ian.stokes@intel.com>
> 
> Add a mask used to extract FW load status from GL_MNG_FWSM.
> 
> Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
> ---
>  drivers/net/ice/base/ice_hw_autogen.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ice/base/ice_hw_autogen.h b/drivers/net/ice/base/ice_hw_autogen.h
> index 3d5d8950bf..fde5f9d86f 100644
> --- a/drivers/net/ice/base/ice_hw_autogen.h
> +++ b/drivers/net/ice/base/ice_hw_autogen.h
> @@ -5474,6 +5474,7 @@
>  #define GL_MNG_FW_RAM_STAT_MNG_MEM_ECC_ERR_S	1
>  #define GL_MNG_FW_RAM_STAT_MNG_MEM_ECC_ERR_M	BIT(1)
>  #define GL_MNG_FWSM				0x000B6134 /* Reset Source: POR */
> +#define GL_MNG_FWSM_FW_LOADING_M		BIT(30)
>  #define GL_MNG_FWSM_FW_MODES_S			0
>  #define GL_MNG_FWSM_FW_MODES_M			MAKEMASK(0x7, 0)
>  #define GL_MNG_FWSM_RSV0_S			3
> -- 
This can be merged into another patch. Either patch 37 as I suggested in
comment on it, or perhaps better in patch 3.

/Bruce
  

Patch

diff --git a/drivers/net/ice/base/ice_hw_autogen.h b/drivers/net/ice/base/ice_hw_autogen.h
index 3d5d8950bf..fde5f9d86f 100644
--- a/drivers/net/ice/base/ice_hw_autogen.h
+++ b/drivers/net/ice/base/ice_hw_autogen.h
@@ -5474,6 +5474,7 @@ 
 #define GL_MNG_FW_RAM_STAT_MNG_MEM_ECC_ERR_S	1
 #define GL_MNG_FW_RAM_STAT_MNG_MEM_ECC_ERR_M	BIT(1)
 #define GL_MNG_FWSM				0x000B6134 /* Reset Source: POR */
+#define GL_MNG_FWSM_FW_LOADING_M		BIT(30)
 #define GL_MNG_FWSM_FW_MODES_S			0
 #define GL_MNG_FWSM_FW_MODES_M			MAKEMASK(0x7, 0)
 #define GL_MNG_FWSM_RSV0_S			3