Skip to content

Commit

Permalink
drm/xe/vf: Custom GuC reset
Browse files Browse the repository at this point in the history
The VF drivers can't trigger real GuC firmware reset using GDRST
register, but for the VF drivers it is sufficient to send VF_RESET
message to reset any VF specific state maintained by the GuC.
Use our existing VF bootstrap function as VF_RESET is part of it.

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/20240604212231.1416-4-michal.wajdeczko@intel.com
  • Loading branch information
Michal Wajdeczko committed Jun 6, 2024
1 parent d9cf98e commit 5bfae67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/xe/xe_guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ int xe_guc_reset(struct xe_guc *guc)

xe_force_wake_assert_held(gt_to_fw(gt), XE_FW_GT);

if (IS_SRIOV_VF(gt_to_xe(gt)))
return xe_gt_sriov_vf_bootstrap(gt);

xe_mmio_write32(gt, GDRST, GRDOM_GUC);

ret = xe_mmio_wait32(gt, GDRST, GRDOM_GUC, 0, 5000, &gdrst, false);
Expand Down

0 comments on commit 5bfae67

Please sign in to comment.