mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
gpu: host1x: Add actmon registration interface
Provide the actmon registration interface for host1x clients. The registration process will create the debugfs for the actmon associated with the host1x client, and initialize the actmon registers. Bug 3788919 Signed-off-by: Johnny Liu <johnliu@nvidia.com> Change-Id: I313bf52a5eda1663e26c2579788a873ca4081459 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2886696 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d99906cfaa
commit
fa8cf02e87
@@ -3,7 +3,7 @@
|
||||
* Copyright (C) 2010 Google, Inc.
|
||||
* Author: Erik Gilling <konkers@android.com>
|
||||
*
|
||||
* Copyright (C) 2011-2013 NVIDIA Corporation
|
||||
* Copyright (C) 2011-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/debugfs.h>
|
||||
@@ -196,6 +196,8 @@ static void host1x_debugfs_init(struct host1x *host1x)
|
||||
/* Store the created entry */
|
||||
host1x->debugfs = de;
|
||||
|
||||
host1x->actmon_debugfs = debugfs_create_dir("actmon", host1x->debugfs);
|
||||
|
||||
debugfs_create_file("status", S_IRUGO, de, host1x, &host1x_debug_fops);
|
||||
debugfs_create_file("status_all", S_IRUGO, de, host1x,
|
||||
&host1x_debug_all_fops);
|
||||
|
||||
Reference in New Issue
Block a user