diff options
| author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-04-23 17:44:59 -0400 |
|---|---|---|
| committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-04-23 17:44:59 -0400 |
| commit | 8b9c6400d0c88e127be2d31ab3fb507da49f9d6f (patch) | |
| tree | 98cc8cf93a0ba75c7864a783cb2c7c66b83fdf25 /runlist_procfs.c | |
| parent | 71c6ab5ac5270d3e1c2fb809667225add109ec6b (diff) | |
Style and documentation cleanup
- Document topology registers (PTOP) on Ampere+
- Document graphics copy engine configuration registers
- Move resubmit_runlist range checks into runlist.c
- Miscellaneous spacing, typo, and minor documentation fixes
Diffstat (limited to 'runlist_procfs.c')
| -rw-r--r-- | runlist_procfs.c | 9 |
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 | ||
