Mesa (master): radeonsi/gfx9: don' t read back non-existent register SRBM_STATUS2

Marek Olšák mareko at kemper.freedesktop.org
Mon Jul 17 15:13:25 UTC 2017


Module: Mesa
Branch: master
Commit: d0963ef0843456f3c5ef0ae0926e11f10fa606fe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0963ef0843456f3c5ef0ae0926e11f10fa606fe

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Jul 10 01:33:38 2017 +0200

radeonsi/gfx9: don't read back non-existent register SRBM_STATUS2

It looks like there is no way to monitor SDMA busyness on GFX9.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/drivers/radeon/r600_gpu_load.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_gpu_load.c b/src/gallium/drivers/radeon/r600_gpu_load.c
index 3b45545b7b..d8f7c3d90b 100644
--- a/src/gallium/drivers/radeon/r600_gpu_load.c
+++ b/src/gallium/drivers/radeon/r600_gpu_load.c
@@ -105,7 +105,7 @@ static void r600_update_mmio_counters(struct r600_common_screen *rscreen,
 	UPDATE_COUNTER(gui, GUI_ACTIVE);
 	gui_busy = GUI_ACTIVE(value);
 
-	if (rscreen->chip_class >= CIK) {
+	if (rscreen->chip_class == CIK || rscreen->chip_class == VI) {
 		/* SRBM_STATUS2 */
 		rscreen->ws->read_registers(rscreen->ws, SRBM_STATUS2, 1, &value);
 




More information about the mesa-commit mailing list