diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2023-09-20 14:27:38 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2023-09-20 14:27:38 -0400 |
| commit | b70849d1ce67a58f9f69b37dc62122f789f4cdf7 (patch) | |
| tree | bc6cbbd220aa42d07b959a28d6a7d9968d79e5bd /device_info_procfs.c | |
| parent | 51f808e092846a60ea6c88ea3a1d2e349c92977b (diff) | |
Rearrange, fix an off-by-one error, and remove an unused define
The code in nvdebug.h has been rearranged to enable an easier merge
against the jbakita-wip branch.
Diffstat (limited to 'device_info_procfs.c')
| -rw-r--r-- | device_info_procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device_info_procfs.c b/device_info_procfs.c index 195b3ff..e94bef5 100644 --- a/device_info_procfs.c +++ b/device_info_procfs.c | |||
| @@ -47,7 +47,7 @@ static void* device_info_file_seq_start(struct seq_file *s, loff_t *pos) { | |||
| 47 | iter.type_of_next_entry = 0; | 47 | iter.type_of_next_entry = 0; |
| 48 | iter.has_next_entry = 0; | 48 | iter.has_next_entry = 0; |
| 49 | // On Ampere+, the device_info table length can vary | 49 | // On Ampere+, the device_info table length can vary |
| 50 | if (g->chip_id > NV_CHIP_ID_AMPERE) | 50 | if (g->chip_id >= NV_CHIP_ID_AMPERE) |
| 51 | iter.length = NV_PTOP_DEVICE_INFO__SIZE_1_GA100(g); | 51 | iter.length = NV_PTOP_DEVICE_INFO__SIZE_1_GA100(g); |
| 52 | else | 52 | else |
| 53 | iter.length = NV_PTOP_DEVICE_INFO__SIZE_1_GK104; | 53 | iter.length = NV_PTOP_DEVICE_INFO__SIZE_1_GK104; |
