aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'nvdebug_entry.c')
-rw-r--r--nvdebug_entry.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nvdebug_entry.c b/nvdebug_entry.c
index f3dcdbb..24fcd32 100644
--- a/nvdebug_entry.c
+++ b/nvdebug_entry.c
@@ -22,16 +22,19 @@ MODULE_LICENSE("Dual MIT/GPL");
22MODULE_AUTHOR("Joshua Bakita"); 22MODULE_AUTHOR("Joshua Bakita");
23MODULE_DESCRIPTION("A scheduling debugging module for NVIDIA GPUs"); 23MODULE_DESCRIPTION("A scheduling debugging module for NVIDIA GPUs");
24 24
25// runlist_procfs.c
25extern struct file_operations runlist_file_ops; 26extern struct file_operations runlist_file_ops;
26extern struct file_operations preempt_tsg_file_ops; 27extern struct file_operations preempt_tsg_file_ops;
27extern struct file_operations disable_channel_file_ops; 28extern struct file_operations disable_channel_file_ops;
28extern struct file_operations enable_channel_file_ops; 29extern struct file_operations enable_channel_file_ops;
29extern struct file_operations switch_to_tsg_file_ops; 30extern struct file_operations switch_to_tsg_file_ops;
31// device_info_procfs.c
30extern struct file_operations device_info_file_ops; 32extern struct file_operations device_info_file_ops;
31extern struct file_operations copy_topology_file_ops;
32extern struct file_operations nvdebug_read_reg32_file_ops; 33extern struct file_operations nvdebug_read_reg32_file_ops;
33extern struct file_operations nvdebug_read_reg_range_file_ops; 34extern struct file_operations nvdebug_read_reg_range_file_ops;
34extern struct file_operations local_memory_file_ops; 35extern struct file_operations local_memory_file_ops;
36// copy_topology_procfs.c
37extern struct file_operations copy_topology_file_ops;
35 38
36struct nvdebug_state g_nvdebug_state[NVDEBUG_MAX_DEVICES]; 39struct nvdebug_state g_nvdebug_state[NVDEBUG_MAX_DEVICES];
37unsigned int g_nvdebug_devices = 0; 40unsigned int g_nvdebug_devices = 0;
@@ -194,7 +197,7 @@ int create_tpc_mask_files(int device_id, struct proc_dir_entry *dir) {
194 int i; 197 int i;
195 struct proc_dir_entry *gpc_tpc_mask_entry; 198 struct proc_dir_entry *gpc_tpc_mask_entry;
196 // Get maximum number of enabled GPCs for this chip 199 // Get maximum number of enabled GPCs for this chip
197 uint32_t max_gpcs = nvdebug_readl(&g_nvdebug_state[device_id], NV_PTOP_SCAL_NUM_GPCS); 200 uint32_t max_gpcs = nvdebug_readl(g, NV_PTOP_SCAL_NUM_GPCS);
198 // Get a bitmask of which GPCs are disabled 201 // Get a bitmask of which GPCs are disabled
199 uint32_t gpcs_mask; 202 uint32_t gpcs_mask;
200 if (g->chip_id < NV_CHIP_ID_AMPERE) 203 if (g->chip_id < NV_CHIP_ID_AMPERE)