ionic: new ionic device identity level and VF start control
A new ionic dev_cmd is added to the interface in ionic_if.h, with a new capabilities field in the ionic device identity to signal its availability in the FW. The identity level code is incremented to '2' to show support for this new capabilities bitfield. If the driver has indicated with the new identity level that it has the VF_CTRL command, newer FW will wait for the start command before starting the VFs after a FW update or crash recovery. This patch updates the driver to make use of the new VF start control in fw_up path to be sure that the PF has set the user attributes on the VF before the FW allows the VFs to restart. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
23e884a253
commit
f43a96d91d
@@ -124,6 +124,8 @@ static_assert(sizeof(struct ionic_vf_setattr_cmd) == 64);
|
||||
static_assert(sizeof(struct ionic_vf_setattr_comp) == 16);
|
||||
static_assert(sizeof(struct ionic_vf_getattr_cmd) == 64);
|
||||
static_assert(sizeof(struct ionic_vf_getattr_comp) == 16);
|
||||
static_assert(sizeof(struct ionic_vf_ctrl_cmd) == 64);
|
||||
static_assert(sizeof(struct ionic_vf_ctrl_comp) == 16);
|
||||
#endif /* __CHECKER__ */
|
||||
|
||||
struct ionic_devinfo {
|
||||
@@ -324,6 +326,7 @@ int ionic_dev_cmd_vf_getattr(struct ionic *ionic, int vf, u8 attr,
|
||||
struct ionic_vf_getattr_comp *comp);
|
||||
void ionic_dev_cmd_queue_identify(struct ionic_dev *idev,
|
||||
u16 lif_type, u8 qtype, u8 qver);
|
||||
void ionic_vf_start(struct ionic *ionic);
|
||||
void ionic_dev_cmd_lif_identify(struct ionic_dev *idev, u8 type, u8 ver);
|
||||
void ionic_dev_cmd_lif_init(struct ionic_dev *idev, u16 lif_index,
|
||||
dma_addr_t addr);
|
||||
|
||||
Reference in New Issue
Block a user