From eeeba53923ea236007e1e807efa69cb03d195044 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 8 Apr 2024 18:28:07 -0400 Subject: Correctly use Volta-based runlist layout on the GV100 GPU Fixes a bug that caused the runlist output to be garbled on the GV100 GPU (the Titan V). --- nvdebug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvdebug.h b/nvdebug.h index f65b403..926419d 100644 --- a/nvdebug.h +++ b/nvdebug.h @@ -1036,10 +1036,10 @@ struct nvdebug_state { #define VERSIONED_RL_ACCESSOR(_ENTRY_TYPE, type, prop) \ __attribute__((unused)) \ static type (prop)(const struct nvdebug_state *g, const void *raw) { \ - if (g->chip_id > NV_CHIP_ID_VOLTA) { \ + if (g->chip_id >= NV_CHIP_ID_VOLTA) { \ const struct gv100_runlist_ ## _ENTRY_TYPE *entry = (struct gv100_runlist_ ## _ENTRY_TYPE*)raw; \ return entry->prop; \ - } else if (g->chip_id > NV_CHIP_ID_KEPLER) { \ + } else if (g->chip_id >= NV_CHIP_ID_KEPLER) { \ const struct gk110_runlist_ ## _ENTRY_TYPE *entry = (struct gk110_runlist_ ## _ENTRY_TYPE*)raw; \ return entry->prop; \ } else { \ -- cgit v1.2.2