linux/drivers/gpu/drm/xe/xe_gt_idle.c

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

#include <drm/drm_managed.h>

#include "xe_force_wake.h"
#include "xe_device.h"
#include "xe_gt.h"
#include "xe_gt_idle.h"
#include "xe_gt_sysfs.h"
#include "xe_guc_pc.h"
#include "regs/xe_gt_regs.h"
#include "xe_macros.h"
#include "xe_mmio.h"
#include "xe_pm.h"
#include "xe_sriov.h"

/**
 * DOC: Xe GT Idle
 *
 * Contains functions that init GT idle features like C6
 *
 * device/gt#/gtidle/name - name of the state
 * device/gt#/gtidle/idle_residency_ms - Provides residency of the idle state in ms
 * device/gt#/gtidle/idle_status - Provides current idle state
 */

static struct xe_gt_idle *dev_to_gtidle(struct device *dev)
{}

static struct xe_gt *gtidle_to_gt(struct xe_gt_idle *gtidle)
{}

static struct xe_guc_pc *gtidle_to_pc(struct xe_gt_idle *gtidle)
{}

static struct xe_device *
pc_to_xe(struct xe_guc_pc *pc)
{}

static const char *gt_idle_state_to_string(enum xe_gt_idle_state state)
{}

static u64 get_residency_ms(struct xe_gt_idle *gtidle, u64 cur_residency)
{}

void xe_gt_idle_enable_pg(struct xe_gt *gt)
{}

void xe_gt_idle_disable_pg(struct xe_gt *gt)
{}

static ssize_t name_show(struct device *dev,
			 struct device_attribute *attr, char *buff)
{}
static DEVICE_ATTR_RO(name);

static ssize_t idle_status_show(struct device *dev,
				struct device_attribute *attr, char *buff)
{}
static DEVICE_ATTR_RO(idle_status);

static ssize_t idle_residency_ms_show(struct device *dev,
				      struct device_attribute *attr, char *buff)
{}
static DEVICE_ATTR_RO(idle_residency_ms);

static const struct attribute *gt_idle_attrs[] =;

static void gt_idle_fini(void *arg)
{}

int xe_gt_idle_init(struct xe_gt_idle *gtidle)
{}

void xe_gt_idle_enable_c6(struct xe_gt *gt)
{}

void xe_gt_idle_disable_c6(struct xe_gt *gt)
{}