[PATCH 1/2] drm/xe/vf: Read VF configuration prior to GGTT initialization
Michał Winiarski
michal.winiarski at intel.com
Mon May 27 07:33:17 UTC 2024
On Fri, May 24, 2024 at 01:37:13PM +0200, Michal Wajdeczko wrote:
> Each VF will be assigned with only a limited range of the GGTT
> address space. Make sure that VF driver will read its own GGTT
> configuration before starting any GGTT initialization.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski at intel.com>
-Michał
> ---
> drivers/gpu/drm/xe/xe_device.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index 5acf2c92789f..f04b11e45c2d 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -35,6 +35,8 @@
> #include "xe_gt.h"
> #include "xe_gt_mcr.h"
> #include "xe_gt_printk.h"
> +#include "xe_gt_sriov_vf.h"
> +#include "xe_guc.h"
> #include "xe_hwmon.h"
> #include "xe_irq.h"
> #include "xe_memirq.h"
> @@ -569,6 +571,15 @@ int xe_device_probe(struct xe_device *xe)
> }
>
> for_each_tile(tile, xe, id) {
> + if (IS_SRIOV_VF(xe)) {
> + xe_guc_comm_init_early(&tile->primary_gt->uc.guc);
> + err = xe_gt_sriov_vf_bootstrap(tile->primary_gt);
> + if (err)
> + return err;
> + err = xe_gt_sriov_vf_query_config(tile->primary_gt);
> + if (err)
> + return err;
> + }
> err = xe_ggtt_init_early(tile->mem.ggtt);
> if (err)
> return err;
> --
> 2.43.0
>
More information about the Intel-xe
mailing list