linux/drivers/gpu/drm/i915/gt/intel_ggtt_gmch.c

// SPDX-License-Identifier: MIT
/*
 * Copyright © 2022 Intel Corporation
 */

#include "intel_ggtt_gmch.h"

#include <drm/intel/intel-gtt.h>

#include <linux/agp_backend.h>

#include "i915_drv.h"
#include "i915_utils.h"
#include "intel_gtt.h"
#include "intel_gt_regs.h"
#include "intel_gt.h"

static void gmch_ggtt_insert_page(struct i915_address_space *vm,
				  dma_addr_t addr,
				  u64 offset,
				  unsigned int pat_index,
				  u32 unused)
{}

static void gmch_ggtt_insert_entries(struct i915_address_space *vm,
				     struct i915_vma_resource *vma_res,
				     unsigned int pat_index,
				     u32 unused)
{}

static void gmch_ggtt_invalidate(struct i915_ggtt *ggtt)
{}

static void gmch_ggtt_clear_range(struct i915_address_space *vm,
				  u64 start, u64 length)
{}

static void gmch_ggtt_remove(struct i915_address_space *vm)
{}

/*
 * Certain Gen5 chipsets require idling the GPU before unmapping anything from
 * the GTT when VT-d is enabled.
 */
static bool needs_idle_maps(struct drm_i915_private *i915)
{}

int intel_ggtt_gmch_probe(struct i915_ggtt *ggtt)
{}

int intel_ggtt_gmch_enable_hw(struct drm_i915_private *i915)
{}

void intel_ggtt_gmch_flush(void)
{}