Skip to contentSkip to conversation

Skip sq_cmd halt waves on SI ASICs

PATCH In review Tom St Denis 2 participants 2 messages Aug 28, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Skip sq_cmd halt waves on SI ASICs

---
 src/lib/sq_cmd_halt_waves.c | 4 ++++
 1 file changed, 4 insertions(+)
src/lib/sq_cmd_halt_waves.c +4 -0
index 93e98d5a6035..8973138af90c 100644
@@ -30,6 +30,10 @@ int umr_sq_cmd_halt_waves(struct umr_asic *asic, enum umr_sq_cmd_halt_resume mod
 	uint32_t value;
 	uint64_t addr;
 
+	// SQ_CMD is not present on SI
+	if (asic->family == FAMILY_SI)
+		return 0;
+
 	reg = umr_find_reg_data(asic, "mmSQ_CMD");
 	if (!reg) {
 		fprintf(stderr, "[BUG]: Cannot find SQ_CMD register in umr_sq_cmd_halt_waves()\n");
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]

Acked-by Alex Deucher
#2 lore raw
Quoted 9 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom St Denis
Sent: Monday, August 28, 2017 8:37 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH umr] Skip sq_cmd halt waves on SI ASICs

Quoted 24 lines
---
 src/lib/sq_cmd_halt_waves.c | 4 ++++
 1 file changed, 4 insertions(+)
src/lib/sq_cmd_halt_waves.c +0 -0
index 93e98d5a6035..8973138af90c 100644
@@ -30,6 +30,10 @@ int umr_sq_cmd_halt_waves(struct umr_asic *asic,

enum umr_sq_cmd_halt_resume mod

src/lib/sq_cmd_halt_waves.c +4 -0
 	uint32_t value;
 	uint64_t addr;
 
+	// SQ_CMD is not present on SI
+	if (asic->family == FAMILY_SI)
+		return 0;
+
 	reg = umr_find_reg_data(asic, "mmSQ_CMD");
 	if (!reg) {
 		fprintf(stderr, "[BUG]: Cannot find SQ_CMD register in

umr_sq_cmd_halt_waves()\n");
--
2.12.0

Quoted 4 lines

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

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