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

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

#include "xe_gt_debugfs.h"

#include <linux/debugfs.h>

#include <drm/drm_debugfs.h>
#include <drm/drm_managed.h>

#include "xe_device.h"
#include "xe_force_wake.h"
#include "xe_ggtt.h"
#include "xe_gt.h"
#include "xe_gt_mcr.h"
#include "xe_gt_sriov_pf_debugfs.h"
#include "xe_gt_sriov_vf_debugfs.h"
#include "xe_gt_topology.h"
#include "xe_hw_engine.h"
#include "xe_lrc.h"
#include "xe_macros.h"
#include "xe_mocs.h"
#include "xe_pat.h"
#include "xe_pm.h"
#include "xe_reg_sr.h"
#include "xe_reg_whitelist.h"
#include "xe_sriov.h"
#include "xe_uc_debugfs.h"
#include "xe_wa.h"

/**
 * xe_gt_debugfs_simple_show - A show callback for struct drm_info_list
 * @m: the &seq_file
 * @data: data used by the drm debugfs helpers
 *
 * This callback can be used in struct drm_info_list to describe debugfs
 * files that are &xe_gt specific.
 *
 * It is assumed that those debugfs files will be created on directory entry
 * which struct dentry d_inode->i_private points to &xe_gt.
 *
 * This function assumes that &m->private will be set to the &struct
 * drm_info_node corresponding to the instance of the info on a given &struct
 * drm_minor (see struct drm_info_list.show for details).
 *
 * This function also assumes that struct drm_info_list.data will point to the
 * function code that will actually print a file content::
 *
 *   int (*print)(struct xe_gt *, struct drm_printer *)
 *
 * Example::
 *
 *    int foo(struct xe_gt *gt, struct drm_printer *p)
 *    {
 *        drm_printf(p, "GT%u\n", gt->info.id);
 *        return 0;
 *    }
 *
 *    static const struct drm_info_list bar[] = {
 *        { name = "foo", .show = xe_gt_debugfs_simple_show, .data = foo },
 *    };
 *
 *    dir = debugfs_create_dir("gt", parent);
 *    dir->d_inode->i_private = gt;
 *    drm_debugfs_create_files(bar, ARRAY_SIZE(bar), dir, minor);
 *
 * Return: 0 on success or a negative error code on failure.
 */
int xe_gt_debugfs_simple_show(struct seq_file *m, void *data)
{}

static int hw_engines(struct xe_gt *gt, struct drm_printer *p)
{}

static int force_reset(struct xe_gt *gt, struct drm_printer *p)
{}

static int force_reset_sync(struct xe_gt *gt, struct drm_printer *p)
{}

static int sa_info(struct xe_gt *gt, struct drm_printer *p)
{}

static int topology(struct xe_gt *gt, struct drm_printer *p)
{}

static int steering(struct xe_gt *gt, struct drm_printer *p)
{}

static int ggtt(struct xe_gt *gt, struct drm_printer *p)
{}

static int register_save_restore(struct xe_gt *gt, struct drm_printer *p)
{}

static int workarounds(struct xe_gt *gt, struct drm_printer *p)
{}

static int pat(struct xe_gt *gt, struct drm_printer *p)
{}

static int mocs(struct xe_gt *gt, struct drm_printer *p)
{}

static int rcs_default_lrc(struct xe_gt *gt, struct drm_printer *p)
{}

static int ccs_default_lrc(struct xe_gt *gt, struct drm_printer *p)
{}

static int bcs_default_lrc(struct xe_gt *gt, struct drm_printer *p)
{}

static int vcs_default_lrc(struct xe_gt *gt, struct drm_printer *p)
{}

static int vecs_default_lrc(struct xe_gt *gt, struct drm_printer *p)
{}

static const struct drm_info_list debugfs_list[] =;

void xe_gt_debugfs_register(struct xe_gt *gt)
{}