Commit e77dff51 authored by Michal Wajdeczko's avatar Michal Wajdeczko

drm/xe/pf: Initialize and update PF services on driver init

The xe_gt_sriov_pf_init_early() and xe_gt_sriov_pf_init_hw() are
ideal places to call per-GT PF service init and update functions.
Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: default avatarPiotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425143927.2265-2-michal.wajdeczko@intel.com
parent d6c5bac8
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "xe_gt_sriov_pf.h" #include "xe_gt_sriov_pf.h"
#include "xe_gt_sriov_pf_helpers.h" #include "xe_gt_sriov_pf_helpers.h"
#include "xe_gt_sriov_pf_service.h"
#include "xe_mmio.h" #include "xe_mmio.h"
/* /*
...@@ -51,6 +52,10 @@ int xe_gt_sriov_pf_init_early(struct xe_gt *gt) ...@@ -51,6 +52,10 @@ int xe_gt_sriov_pf_init_early(struct xe_gt *gt)
if (err) if (err)
return err; return err;
err = xe_gt_sriov_pf_service_init(gt);
if (err)
return err;
return 0; return 0;
} }
...@@ -74,4 +79,6 @@ void xe_gt_sriov_pf_init_hw(struct xe_gt *gt) ...@@ -74,4 +79,6 @@ void xe_gt_sriov_pf_init_hw(struct xe_gt *gt)
{ {
if (pf_needs_enable_ggtt_guest_update(gt_to_xe(gt))) if (pf_needs_enable_ggtt_guest_update(gt_to_xe(gt)))
pf_enable_ggtt_guest_update(gt); pf_enable_ggtt_guest_update(gt);
xe_gt_sriov_pf_service_update(gt);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment