Skip to contentSkip to conversation

Switch GRBM index when reading wave data directly.

PATCH In review Tom St Denis 2 participants 2 messages Nov 8, 2017 – Nov 9, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Switch GRBM index when reading wave data directly.

---
 src/lib/wave_status.c | 4 ++++
 1 file changed, 4 insertions(+)
src/lib/wave_status.c +4 -0
index fe2add779fdd..7f0130bb9347 100644
@@ -116,7 +116,9 @@ static int umr_get_wave_status_vi(struct umr_asic *asic, unsigned se, unsigned s
 		read(asic->fd.wave, &buf, 32*4);
 	} else {
 		int n = 0;
+		umr_grbm_select_index(asic, se, sh, cu);
 		read_wave_status_via_mmio(asic, simd, wave, &buf[0], &n);
+		umr_grbm_select_index(asic, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
 	}
 
 	if (buf[0] != 0) {
@@ -218,7 +220,9 @@ static int umr_get_wave_status_ai(struct umr_asic *asic, unsigned se, unsigned s
 		read(asic->fd.wave, &buf, 32*4);
 	} else {
 		int n = 0;
+		umr_grbm_select_index(asic, se, sh, cu);
 		read_wave_status_via_mmio(asic, simd, wave, &buf[0], &n);
+		umr_grbm_select_index(asic, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
 	}
 
 	if (buf[0] != 1) {
Signature · 6 lines
2.12.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by
#2 lore raw
Quoted 30 lines · Tom St Denis
---
  src/lib/wave_status.c | 4 ++++
  1 file changed, 4 insertions(+)
src/lib/wave_status.c +4 -0
index fe2add779fdd..7f0130bb9347 100644
@@ -116,7 +116,9 @@ static int umr_get_wave_status_vi(struct umr_asic *asic, unsigned se, unsigned s
  		read(asic->fd.wave, &buf, 32*4);
  	} else {
  		int n = 0;
+		umr_grbm_select_index(asic, se, sh, cu);
  		read_wave_status_via_mmio(asic, simd, wave, &buf[0], &n);
+		umr_grbm_select_index(asic, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
  	}
 
  	if (buf[0] != 0) {
@@ -218,7 +220,9 @@ static int umr_get_wave_status_ai(struct umr_asic *asic, unsigned se, unsigned s
  		read(asic->fd.wave, &buf, 32*4);
  	} else {
  		int n = 0;
+		umr_grbm_select_index(asic, se, sh, cu);
  		read_wave_status_via_mmio(asic, simd, wave, &buf[0], &n);
+		umr_grbm_select_index(asic, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
  	}
 
  	if (buf[0] != 1) {
Signature · 6 lines
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx