idpf: add controlq init and reset checks
authorJoshua Hay <joshua.a.hay@intel.com>
Tue, 8 Aug 2023 00:34:04 +0000 (17:34 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 13 Sep 2023 21:59:23 +0000 (14:59 -0700)
commit8077c727561aace410a67c82d6f058c9bc544b8f
treebcdae90bc7056fe2c1ab1ee110cbd67ec89841a9
parente850efed5e152e6bdd367d5b82019f21298c0653
idpf: add controlq init and reset checks

At the end of the probe, initialize and schedule the event workqueue.
It calls the hard reset function where reset checks are done to find
if the device is out of the reset. Control queue initialization and
the necessary control queue support is added.

Introduce function pointers for the register operations which are
different between PF and VF devices.

Signed-off-by: Joshua Hay <joshua.a.hay@intel.com>
Co-developed-by: Alan Brady <alan.brady@intel.com>
Signed-off-by: Alan Brady <alan.brady@intel.com>
Co-developed-by: Madhu Chittim <madhu.chittim@intel.com>
Signed-off-by: Madhu Chittim <madhu.chittim@intel.com>
Co-developed-by: Phani Burra <phani.r.burra@intel.com>
Signed-off-by: Phani Burra <phani.r.burra@intel.com>
Co-developed-by: Shailendra Bhatnagar <shailendra.bhatnagar@intel.com>
Signed-off-by: Shailendra Bhatnagar <shailendra.bhatnagar@intel.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Co-developed-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>
Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
14 files changed:
drivers/net/ethernet/intel/idpf/Makefile
drivers/net/ethernet/intel/idpf/idpf.h
drivers/net/ethernet/intel/idpf/idpf_controlq.c [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_controlq.h
drivers/net/ethernet/intel/idpf/idpf_controlq_api.h [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_controlq_setup.c [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_dev.c [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_lan_pf_regs.h [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_lan_vf_regs.h [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_lib.c [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_main.c
drivers/net/ethernet/intel/idpf/idpf_mem.h [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_vf_dev.c [new file with mode: 0644]
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c [new file with mode: 0644]