radeonsi/gfx9: don't read back non-existent SRBM registers
authorMarek Olšák <marek.olsak@amd.com>
Sat, 15 Oct 2016 12:22:40 +0000 (14:22 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000 (14:44 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_debug.c

index db310b7cfaf09c8f0f6cda8c58b0be16395970c7..1a4cadfb8c28f40a1aa4bbf2b16ea60fb3f0679e 100644 (file)
@@ -183,9 +183,11 @@ static void si_dump_debug_registers(struct si_context *sctx, FILE *f)
        si_dump_mmapped_reg(sctx, f, R_00803C_GRBM_STATUS_SE3);
        si_dump_mmapped_reg(sctx, f, R_00D034_SDMA0_STATUS_REG);
        si_dump_mmapped_reg(sctx, f, R_00D834_SDMA1_STATUS_REG);
-       si_dump_mmapped_reg(sctx, f, R_000E50_SRBM_STATUS);
-       si_dump_mmapped_reg(sctx, f, R_000E4C_SRBM_STATUS2);
-       si_dump_mmapped_reg(sctx, f, R_000E54_SRBM_STATUS3);
+       if (sctx->b.chip_class <= VI) {
+               si_dump_mmapped_reg(sctx, f, R_000E50_SRBM_STATUS);
+               si_dump_mmapped_reg(sctx, f, R_000E4C_SRBM_STATUS2);
+               si_dump_mmapped_reg(sctx, f, R_000E54_SRBM_STATUS3);
+       }
        si_dump_mmapped_reg(sctx, f, R_008680_CP_STAT);
        si_dump_mmapped_reg(sctx, f, R_008674_CP_STALLED_STAT1);
        si_dump_mmapped_reg(sctx, f, R_008678_CP_STALLED_STAT2);