From 8b9c6400d0c88e127be2d31ab3fb507da49f9d6f Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Tue, 23 Apr 2024 17:44:59 -0400 Subject: 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 --- runlist_procfs.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'runlist_procfs.c') 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 @@ #include "nvdebug_linux.h" -#define RUNLIST_PROCFS_NAME "runlist" +// Uncomment to expand channel status information when printing the runlist #define DETAILED_CHANNEL_INFO #ifdef DETAILED_CHANNEL_INFO @@ -197,12 +197,7 @@ ssize_t resubmit_runlist_file_write(struct file *f, const char __user *buffer, if (err) return err; - // Verify valid runlist (in terms of absolute maximums) - if (g->chip_id < NV_CHIP_ID_TURING && target_runlist > MAX_RUNLISTS_GF100) - return -ERANGE; - else if (g->chip_id < NV_CHIP_ID_AMPERE && target_runlist > MAX_RUNLISTS_TU102) - return -ERANGE; - + // resubmit_runlist() checks that target_runlist is valid if ((err = resubmit_runlist(g, target_runlist))) return err; -- cgit v1.2.2