From 2c5abf95122e78269bbef923f561ab319dc6ee2b Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Mon, 21 Jul 2025 17:34:34 +0200 Subject: [PATCH] nouveau/headers: Handle Ampere A GPFIFO in dumper GPFIFO class changed a bit with the years and some things doesn't parse well on those traces so let's allow to decode with Ampere A GPFIFO if we are decoding Ampere or later. Signed-off-by: Mary Guillemard Reviewed-by: Faith Ekstrand Part-of: --- src/nouveau/headers/nv_push.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nouveau/headers/nv_push.c b/src/nouveau/headers/nv_push.c index fcc97800fa9..1e1207a7e65 100644 --- a/src/nouveau/headers/nv_push.c +++ b/src/nouveau/headers/nv_push.c @@ -20,6 +20,7 @@ #include "nv_push_clc1b5.h" #include "nv_push_clc397.h" #include "nv_push_clc3c0.h" +#include "nv_push_clc56f.h" #include "nv_push_clc597.h" #include "nv_push_clc5b5.h" #include "nv_push_clc5c0.h" @@ -166,7 +167,10 @@ vk_push_print(FILE *fp, const struct nv_push *push, while (count--) { if (!is_tert) { if (mthd < 0x100) { - mthd_name = P_PARSE_NV906F_MTHD(mthd); + if (devinfo->cls_eng3d >= 0xc597) + mthd_name = P_PARSE_NVC56F_MTHD(mthd); + else + mthd_name = P_PARSE_NV906F_MTHD(mthd); } else { int class_id = curr_subchans[subchan]; int cls_lo = class_id & 0xff;