diff options
Diffstat (limited to 'nvdebug_entry.c')
-rw-r--r-- | nvdebug_entry.c | 7 |
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"); | |||
22 | MODULE_AUTHOR("Joshua Bakita"); | 22 | MODULE_AUTHOR("Joshua Bakita"); |
23 | MODULE_DESCRIPTION("A scheduling debugging module for NVIDIA GPUs"); | 23 | MODULE_DESCRIPTION("A scheduling debugging module for NVIDIA GPUs"); |
24 | 24 | ||
25 | // runlist_procfs.c | ||
25 | extern struct file_operations runlist_file_ops; | 26 | extern struct file_operations runlist_file_ops; |
26 | extern struct file_operations preempt_tsg_file_ops; | 27 | extern struct file_operations preempt_tsg_file_ops; |
27 | extern struct file_operations disable_channel_file_ops; | 28 | extern struct file_operations disable_channel_file_ops; |
28 | extern struct file_operations enable_channel_file_ops; | 29 | extern struct file_operations enable_channel_file_ops; |
29 | extern struct file_operations switch_to_tsg_file_ops; | 30 | extern struct file_operations switch_to_tsg_file_ops; |
31 | // device_info_procfs.c | ||
30 | extern struct file_operations device_info_file_ops; | 32 | extern struct file_operations device_info_file_ops; |
31 | extern struct file_operations copy_topology_file_ops; | ||
32 | extern struct file_operations nvdebug_read_reg32_file_ops; | 33 | extern struct file_operations nvdebug_read_reg32_file_ops; |
33 | extern struct file_operations nvdebug_read_reg_range_file_ops; | 34 | extern struct file_operations nvdebug_read_reg_range_file_ops; |
34 | extern struct file_operations local_memory_file_ops; | 35 | extern struct file_operations local_memory_file_ops; |
36 | // copy_topology_procfs.c | ||
37 | extern struct file_operations copy_topology_file_ops; | ||
35 | 38 | ||
36 | struct nvdebug_state g_nvdebug_state[NVDEBUG_MAX_DEVICES]; | 39 | struct nvdebug_state g_nvdebug_state[NVDEBUG_MAX_DEVICES]; |
37 | unsigned int g_nvdebug_devices = 0; | 40 | unsigned 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) |