diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2024-04-08 18:28:07 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2024-04-08 18:28:07 -0400 |
commit | eeeba53923ea236007e1e807efa69cb03d195044 (patch) | |
tree | eaee183d743693e98ab363c6c6d979aaaf47d1e1 | |
parent | 47506870790989b5e2d9a6128711d96c487f0d7b (diff) |
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).
-rw-r--r-- | nvdebug.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1036,10 +1036,10 @@ struct nvdebug_state { | |||
1036 | #define VERSIONED_RL_ACCESSOR(_ENTRY_TYPE, type, prop) \ | 1036 | #define VERSIONED_RL_ACCESSOR(_ENTRY_TYPE, type, prop) \ |
1037 | __attribute__((unused)) \ | 1037 | __attribute__((unused)) \ |
1038 | static type (prop)(const struct nvdebug_state *g, const void *raw) { \ | 1038 | static type (prop)(const struct nvdebug_state *g, const void *raw) { \ |
1039 | if (g->chip_id > NV_CHIP_ID_VOLTA) { \ | 1039 | if (g->chip_id >= NV_CHIP_ID_VOLTA) { \ |
1040 | const struct gv100_runlist_ ## _ENTRY_TYPE *entry = (struct gv100_runlist_ ## _ENTRY_TYPE*)raw; \ | 1040 | const struct gv100_runlist_ ## _ENTRY_TYPE *entry = (struct gv100_runlist_ ## _ENTRY_TYPE*)raw; \ |
1041 | return entry->prop; \ | 1041 | return entry->prop; \ |
1042 | } else if (g->chip_id > NV_CHIP_ID_KEPLER) { \ | 1042 | } else if (g->chip_id >= NV_CHIP_ID_KEPLER) { \ |
1043 | const struct gk110_runlist_ ## _ENTRY_TYPE *entry = (struct gk110_runlist_ ## _ENTRY_TYPE*)raw; \ | 1043 | const struct gk110_runlist_ ## _ENTRY_TYPE *entry = (struct gk110_runlist_ ## _ENTRY_TYPE*)raw; \ |
1044 | return entry->prop; \ | 1044 | return entry->prop; \ |
1045 | } else { \ | 1045 | } else { \ |