drm_dev_exit(idx);
 }
 
+/**
+ * xe_ggtt_node_allocated - Check if node is allocated
+ * @node: the &xe_ggtt_node to be inspected
+ *
+ * Return: True if allocated, False otherwise.
+ */
+bool xe_ggtt_node_allocated(const struct xe_ggtt_node *node)
+{
+       return drm_mm_node_allocated(&node->base);
+}
+
 /**
  * xe_ggtt_map_bo - Map the BO into GGTT
  * @ggtt: the &xe_ggtt where node will be mapped
 
                               u32 size, u32 align, u32 mm_flags);
 void xe_ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
                         bool invalidate);
+bool xe_ggtt_node_allocated(const struct xe_ggtt_node *node);
 void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
 
 {
        u32 n = 0;
 
-       if (drm_mm_node_allocated(&config->ggtt_region.base)) {
+       if (xe_ggtt_node_allocated(&config->ggtt_region)) {
                cfg[n++] = PREP_GUC_KLV_TAG(VF_CFG_GGTT_START);
                cfg[n++] = lower_32_bits(config->ggtt_region.base.start);
                cfg[n++] = upper_32_bits(config->ggtt_region.base.start);
 {
        struct xe_ggtt *ggtt = tile->mem.ggtt;
 
-       if (drm_mm_node_allocated(&node->base)) {
+       if (xe_ggtt_node_allocated(node)) {
                /*
                 * explicit GGTT PTE assignment to the PF using xe_ggtt_assign()
                 * is redundant, as PTE will be implicitly re-assigned to PF by
 
        size = round_up(size, alignment);
 
-       if (drm_mm_node_allocated(&node->base)) {
+       if (xe_ggtt_node_allocated(node)) {
                err = pf_distribute_config_ggtt(tile, vfid, 0, 0);
                if (unlikely(err))
                        return err;
 
                pf_release_ggtt(tile, node);
        }
-       xe_gt_assert(gt, !drm_mm_node_allocated(&node->base));
+       xe_gt_assert(gt, !xe_ggtt_node_allocated(node));
 
        if (!size)
                return 0;
        struct xe_ggtt_node *node = &config->ggtt_region;
 
        xe_gt_assert(gt, !xe_gt_is_media_type(gt));
-       return drm_mm_node_allocated(&node->base) ? node->base.size : 0;
+       return xe_ggtt_node_allocated(node) ? node->base.size : 0;
 }
 
 /**
 
        for (n = 1; n <= total_vfs; n++) {
                config = >->sriov.pf.vfs[n].config;
-               if (!drm_mm_node_allocated(&config->ggtt_region.base))
+               if (!xe_ggtt_node_allocated(&config->ggtt_region))
                        continue;
 
                string_get_size(config->ggtt_region.base.size, 1, STRING_UNITS_2, buf, sizeof(buf));