diff options
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; |
