aboutsummaryrefslogtreecommitdiffstats
path: root/runlist_procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'runlist_procfs.c')
-rw-r--r--runlist_procfs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/runlist_procfs.c b/runlist_procfs.c
index 986465d..8152463 100644
--- a/runlist_procfs.c
+++ b/runlist_procfs.c
@@ -3,7 +3,7 @@
3 3
4#include "nvdebug_linux.h" 4#include "nvdebug_linux.h"
5 5
6#define RUNLIST_PROCFS_NAME "runlist" 6// Uncomment to expand channel status information when printing the runlist
7#define DETAILED_CHANNEL_INFO 7#define DETAILED_CHANNEL_INFO
8 8
9#ifdef DETAILED_CHANNEL_INFO 9#ifdef DETAILED_CHANNEL_INFO
@@ -197,12 +197,7 @@ ssize_t resubmit_runlist_file_write(struct file *f, const char __user *buffer,
197 if (err) 197 if (err)
198 return err; 198 return err;
199 199
200 // Verify valid runlist (in terms of absolute maximums) 200 // resubmit_runlist() checks that target_runlist is valid
201 if (g->chip_id < NV_CHIP_ID_TURING && target_runlist > MAX_RUNLISTS_GF100)
202 return -ERANGE;
203 else if (g->chip_id < NV_CHIP_ID_AMPERE && target_runlist > MAX_RUNLISTS_TU102)
204 return -ERANGE;
205
206 if ((err = resubmit_runlist(g, target_runlist))) 201 if ((err = resubmit_runlist(g, target_runlist)))
207 return err; 202 return err;
208 203