From b70849d1ce67a58f9f69b37dc62122f789f4cdf7 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 20 Sep 2023 14:27:38 -0400 Subject: 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. --- device_info_procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device_info_procfs.c') 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) { iter.type_of_next_entry = 0; iter.has_next_entry = 0; // On Ampere+, the device_info table length can vary - if (g->chip_id > NV_CHIP_ID_AMPERE) + if (g->chip_id >= NV_CHIP_ID_AMPERE) iter.length = NV_PTOP_DEVICE_INFO__SIZE_1_GA100(g); else iter.length = NV_PTOP_DEVICE_INFO__SIZE_1_GK104; -- cgit v1.2.2