mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
i40e/i40evf: Enable NVMUpdate to retrieve AdminQ and add preservation flags for NVM update
This patch adds new I40E_NVMUPD_GET_AQ_EVENT state to allow retrieval of AdminQ events as a result of AdminQ commands sent to firmware. Add preservation flags support on X722 devices for NVM update AdminQ function wrapper. Add new parameter and handling to nvmupdate admin queue function intended to allow nvmupdate tool to configure the preservation flags in the AdminQ command. This is required to implement FlatNVM on X722 devices. Signed-off-by: Pawel Jablonski <pawel.jablonski@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
c13da21cdb
commit
e3a5d6e6fa
@@ -2231,8 +2231,12 @@ I40E_CHECK_CMD_LENGTH(i40e_aqc_phy_register_access);
|
||||
*/
|
||||
struct i40e_aqc_nvm_update {
|
||||
u8 command_flags;
|
||||
#define I40E_AQ_NVM_LAST_CMD 0x01
|
||||
#define I40E_AQ_NVM_FLASH_ONLY 0x80
|
||||
#define I40E_AQ_NVM_LAST_CMD 0x01
|
||||
#define I40E_AQ_NVM_FLASH_ONLY 0x80
|
||||
#define I40E_AQ_NVM_PRESERVATION_FLAGS_SHIFT 1
|
||||
#define I40E_AQ_NVM_PRESERVATION_FLAGS_MASK 0x03
|
||||
#define I40E_AQ_NVM_PRESERVATION_FLAGS_SELECTED 0x03
|
||||
#define I40E_AQ_NVM_PRESERVATION_FLAGS_ALL 0x01
|
||||
u8 module_pointer;
|
||||
__le16 length;
|
||||
__le32 offset;
|
||||
|
||||
Reference in New Issue
Block a user