[PATCH 2/2] drm/xe/pf: Initialize and update PF services on driver init
Piotr Piórkowski
piotr.piorkowski at intel.com
Fri Apr 26 09:17:15 UTC 2024
Michal Wajdeczko <michal.wajdeczko at intel.com> wrote on czw [2024-kwi-25 16:39:27 +0200]:
> 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: Michal Wajdeczko <michal.wajdeczko at intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_sriov_pf.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
> index 687ea81931d1..7decf71c2b7d 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
> @@ -9,6 +9,7 @@
>
> #include "xe_gt_sriov_pf.h"
> #include "xe_gt_sriov_pf_helpers.h"
> +#include "xe_gt_sriov_pf_service.h"
> #include "xe_mmio.h"
>
> /*
> @@ -51,6 +52,10 @@ int xe_gt_sriov_pf_init_early(struct xe_gt *gt)
> if (err)
> return err;
>
> + err = xe_gt_sriov_pf_service_init(gt);
> + if (err)
> + return err;
> +
> return 0;
> }
>
> @@ -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)))
> pf_enable_ggtt_guest_update(gt);
> +
> + xe_gt_sriov_pf_service_update(gt);
> }
LGTM:
Reviewed-by: Piotr Piórkowski <piotr.piorkowski at intel.com>
> --
> 2.43.0
>
--
More information about the Intel-xe
mailing list