drm/xe/pf: Add minimal support for VF_STATE_NOTIFY events
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 26 Mar 2024 19:15:18 +0000 (20:15 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 28 Mar 2024 13:01:48 +0000 (14:01 +0100)
commitaed2c1d70aa008b83c806d33d55b1f782f4fff41
tree81fef63db60e515a5852826fcf0289834c7e8560
parent476f6c48d1fa6a2253cbb5fdf755727632c03972
drm/xe/pf: Add minimal support for VF_STATE_NOTIFY events

GuC will use VF_STATE_NOTIFY events to notify the PF about changes
of the VF state, in particular when a VF FLR was requested.  Add
very minimal support for such events to avoid reporting errors due
to unexpected G2H. We will improve handling of these messages later.

While around also add few basic functions to control the VF state
(pause, resume, stop) as we will also exercise them soon.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240326191518.363-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ct.c