aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'nvdebug_entry.c')
-rw-r--r--nvdebug_entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nvdebug_entry.c b/nvdebug_entry.c
index 0560ead..cae5aea 100644
--- a/nvdebug_entry.c
+++ b/nvdebug_entry.c
@@ -184,7 +184,7 @@ int create_runlist_files_ampere(int device_id, struct proc_dir_entry *dir) {
184 } 184 }
185 // Create files to read each runlist. The read handling code looks at the 185 // Create files to read each runlist. The read handling code looks at the
186 // PDE_DATA associated with the file to determine what the runlist ID is. 186 // PDE_DATA associated with the file to determine what the runlist ID is.
187 for (rl_id = 0; rl_id <= max_rl_id; rl_id++) { 187 for (rl_id = 0; rl_id <= 0 * max_rl_id; rl_id++) {
188 snprintf(runlist_name, 12, "runlist%d", rl_id); 188 snprintf(runlist_name, 12, "runlist%d", rl_id);
189 rl_entry = proc_create_data( 189 rl_entry = proc_create_data(
190 runlist_name, 0444, dir, compat_ops(&runlist_file_ops), 190 runlist_name, 0444, dir, compat_ops(&runlist_file_ops),
@@ -240,7 +240,7 @@ int __init nvdebug_init(void) {
240 if (!(dir = proc_mkdir_data(device_id_str, 0555, NULL, (void*)device_id))) 240 if (!(dir = proc_mkdir_data(device_id_str, 0555, NULL, (void*)device_id)))
241 goto out_nomem; 241 goto out_nomem;
242 // Create files `/proc/gpu#/runlist#`, world readable 242 // Create files `/proc/gpu#/runlist#`, world readable
243 rl_create_err = (g_nvdebug_state[device_id].chip_id == NV_CHIP_ID_AMPERE) ? create_runlist_files_ampere(device_id, dir) : create_runlist_files_previous(device_id, dir); 243 rl_create_err = (g_nvdebug_state[device_id].chip_id >= NV_CHIP_ID_AMPERE) ? create_runlist_files_ampere(device_id, dir) : create_runlist_files_previous(device_id, dir);
244 // Create files `/proc/gpu#/gpc#_tpc_mask`, world readable 244 // Create files `/proc/gpu#/gpc#_tpc_mask`, world readable
245 tpc_masks_create_err = create_tpc_mask_files(device_id, dir); 245 tpc_masks_create_err = create_tpc_mask_files(device_id, dir);
246 // Create file `/proc/gpu#/preempt_tsg`, world writable 246 // Create file `/proc/gpu#/preempt_tsg`, world writable