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

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

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

#include "gem/i915_gem_internal.h"
#include "gem/i915_gem_lmem.h"

#include "i915_drv.h"
#include "i915_perf_oa_regs.h"
#include "i915_reg.h"
#include "intel_context.h"
#include "intel_engine_pm.h"
#include "intel_engine_regs.h"
#include "intel_ggtt_gmch.h"
#include "intel_gt.h"
#include "intel_gt_buffer_pool.h"
#include "intel_gt_clock_utils.h"
#include "intel_gt_debugfs.h"
#include "intel_gt_mcr.h"
#include "intel_gt_pm.h"
#include "intel_gt_print.h"
#include "intel_gt_regs.h"
#include "intel_gt_requests.h"
#include "intel_migrate.h"
#include "intel_mocs.h"
#include "intel_pci_config.h"
#include "intel_rc6.h"
#include "intel_renderstate.h"
#include "intel_rps.h"
#include "intel_sa_media.h"
#include "intel_gt_sysfs.h"
#include "intel_tlb.h"
#include "intel_uncore.h"
#include "shmem_utils.h"

void intel_gt_common_init_early(struct intel_gt *gt)
{}

/* Preliminary initialization of Tile 0 */
int intel_root_gt_init_early(struct drm_i915_private *i915)
{}

static int intel_gt_probe_lmem(struct intel_gt *gt)
{}

int intel_gt_assign_ggtt(struct intel_gt *gt)
{}

int intel_gt_init_mmio(struct intel_gt *gt)
{}

static void init_unused_ring(struct intel_gt *gt, u32 base)
{}

static void init_unused_rings(struct intel_gt *gt)
{}

int intel_gt_init_hw(struct intel_gt *gt)
{}

static void gen6_clear_engine_error_register(struct intel_engine_cs *engine)
{}

i915_reg_t intel_gt_perf_limit_reasons_reg(struct intel_gt *gt)
{}

void
intel_gt_clear_error_registers(struct intel_gt *gt,
			       intel_engine_mask_t engine_mask)
{}

static void gen6_check_faults(struct intel_gt *gt)
{}

static void xehp_check_faults(struct intel_gt *gt)
{}

static void gen8_check_faults(struct intel_gt *gt)
{}

void intel_gt_check_and_clear_faults(struct intel_gt *gt)
{}

void intel_gt_flush_ggtt_writes(struct intel_gt *gt)
{}

void intel_gt_chipset_flush(struct intel_gt *gt)
{}

void intel_gt_driver_register(struct intel_gt *gt)
{}

static int intel_gt_init_scratch(struct intel_gt *gt, unsigned int size)
{}

static void intel_gt_fini_scratch(struct intel_gt *gt)
{}

static struct i915_address_space *kernel_vm(struct intel_gt *gt)
{}

static int __engines_record_defaults(struct intel_gt *gt)
{}

static int __engines_verify_workarounds(struct intel_gt *gt)
{}

static void __intel_gt_disable(struct intel_gt *gt)
{}

int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout)
{}

int intel_gt_init(struct intel_gt *gt)
{}

void intel_gt_driver_remove(struct intel_gt *gt)
{}

void intel_gt_driver_unregister(struct intel_gt *gt)
{}

void intel_gt_driver_release(struct intel_gt *gt)
{}

void intel_gt_driver_late_release_all(struct drm_i915_private *i915)
{}

static int intel_gt_tile_setup(struct intel_gt *gt, phys_addr_t phys_addr)
{}

int intel_gt_probe_all(struct drm_i915_private *i915)
{}

int intel_gt_tiles_init(struct drm_i915_private *i915)
{}

void intel_gt_info_print(const struct intel_gt_info *info,
			 struct drm_printer *p)
{}

enum i915_map_type intel_gt_coherent_map_type(struct intel_gt *gt,
					      struct drm_i915_gem_object *obj,
					      bool always_coherent)
{}

bool intel_gt_needs_wa_16018031267(struct intel_gt *gt)
{}

bool intel_gt_needs_wa_22016122933(struct intel_gt *gt)
{}

static void __intel_gt_bind_context_set_ready(struct intel_gt *gt, bool ready)
{}

/**
 * intel_gt_bind_context_set_ready - Set the context binding as ready
 *
 * @gt: GT structure
 *
 * This function marks the binder context as ready.
 */
void intel_gt_bind_context_set_ready(struct intel_gt *gt)
{}

/**
 * intel_gt_bind_context_set_unready - Set the context binding as ready
 * @gt: GT structure
 *
 * This function marks the binder context as not ready.
 */

void intel_gt_bind_context_set_unready(struct intel_gt *gt)
{}

/**
 * intel_gt_is_bind_context_ready - Check if context binding is ready
 *
 * @gt: GT structure
 *
 * This function returns binder context's ready status.
 */
bool intel_gt_is_bind_context_ready(struct intel_gt *gt)
{}