drm/xe/vf: Add proper detection of the SR-IOV VF mode
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 27 Mar 2024 18:27:40 +0000 (19:27 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 28 Mar 2024 12:45:37 +0000 (13:45 +0100)
commit0613834f3dddb4bf3ff82861dad661b1ede97f7b
tree434913fa1e1d909ee40d03ea12d4f0a1bd8be5b7
parentd79c88c45dae1f1c5f80bd473811c6d053f55828
drm/xe/vf: Add proper detection of the SR-IOV VF mode

SR-IOV VF mode detection is based on testing VF capability bit on
the register that is accessible from both the PF and enabled VFs.

Bspec: 49904, 53227
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240327182740.407-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/regs/xe_sriov_regs.h
drivers/gpu/drm/xe/xe_sriov.c