]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe/pf: Fix VF config validation on multi-GT platforms
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 6 Aug 2024 18:05:16 +0000 (20:05 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 9 Aug 2024 08:37:52 +0000 (10:37 +0200)
commit5bdacb0907c1f531995b6ba47b832ac3a0182ae9
tree9e0c9575bc71893202ba90261da28c5df0af4ce6
parente422c0bfd9e47e399e86bcc483f49d8b54064fc2
drm/xe/pf: Fix VF config validation on multi-GT platforms

When validating VF config on the media GT, we may wrongly report
that VF is already partially configured on it, as we consider GGTT
and LMEM provisioning done on the primary GT (since both GGTT and
LMEM are tile-level resources, not a GT-level).

This will cause skipping a VF auto-provisioning on the media-GT and
in result will block a VF from successfully initialize that GT.

Fix that by considering GGTT and LMEM configurations only when
checking if a VF provisioning is complete, and omit GGTT and LMEM
when reporting empty/partial provisioning.

Fixes: 234670cea9a2 ("drm/xe/pf: Skip fair VFs provisioning if already provisioned")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240806180516.618-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c