1 // SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
7 #include <linux/debugfs.h>
9 #include "debugfs_engines.h"
10 #include "debugfs_gt.h"
11 #include "debugfs_gt_pm.h"
14 void debugfs_gt_register(struct intel_gt
*gt
)
18 if (!gt
->i915
->drm
.primary
->debugfs_root
)
21 root
= debugfs_create_dir("gt", gt
->i915
->drm
.primary
->debugfs_root
);
25 debugfs_engines_register(gt
, root
);
26 debugfs_gt_pm_register(gt
, root
);
29 void debugfs_gt_register_files(struct intel_gt
*gt
,
31 const struct debugfs_gt_file
*files
,
35 if (!files
->eval
|| files
->eval(gt
))
36 debugfs_create_file(files
->name
,