mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
This is useful for debug, in case something goes wrong with the GSC. The info includes the version information and the current value of the HECI1 status registers. Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Cc: John Harrison <[email protected]> Cc: Alan Previn <[email protected]> Reviewed-by: Julia Filipchuk <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
31 lines
634 B
C
31 lines
634 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#include <linux/debugfs.h>
|
|
|
|
#include <drm/drm_debugfs.h>
|
|
|
|
#include "xe_gt.h"
|
|
#include "xe_gsc_debugfs.h"
|
|
#include "xe_guc_debugfs.h"
|
|
#include "xe_huc_debugfs.h"
|
|
#include "xe_macros.h"
|
|
#include "xe_uc_debugfs.h"
|
|
|
|
void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent)
|
|
{
|
|
struct dentry *root;
|
|
|
|
root = debugfs_create_dir("uc", parent);
|
|
if (IS_ERR(root)) {
|
|
XE_WARN_ON("Create UC directory failed");
|
|
return;
|
|
}
|
|
|
|
xe_gsc_debugfs_register(&uc->gsc, root);
|
|
xe_guc_debugfs_register(&uc->guc, root);
|
|
xe_huc_debugfs_register(&uc->huc, root);
|
|
}
|