Skip to contentSkip to conversation

drm/amdkfd: print unmap queue status for RAS poison consumption (v3)

PATCH In review Tao Zhou 2 participants 4 messages Mar 22, 2022

Subsystems (3)
lore
Share & tools
lore

Tao Zhou

author
#0 lore raw

PATCH 1/1 drm/amdkfd: print unmap queue status for RAS poison consumption (v3)

Print the status out when it passes, and also tell user gpu reset is triggered when we fallback to legacy way.

v2: make the message more explicitly.
v3: change succeeds to succeeded.
replace pr_warn with dev_info.

---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +9 -4
index 56902b5bb7b6..cc9ddc4b4cb8 100644
@@ -105,8 +105,6 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
 	if (old_poison)
 		return;
 
-	pr_warn("RAS poison consumption handling: client id %d\n", client_id);
-
 	switch (client_id) {
 	case SOC15_IH_CLIENTID_SE0SH:
 	case SOC15_IH_CLIENTID_SE1SH:
@@ -130,10 +128,17 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
 	/* resetting queue passes, do page retirement without gpu reset
 	 * resetting queue fails, fallback to gpu reset solution
 	 */
-	if (!ret)
+	if (!ret) {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, unmap queue flow succeeded: client id %d\n",
+			client_id);
 		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, false);
-	else
+	} else {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, fallback to gpu reset flow: client id %d\n",
+			client_id);
 		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, true);
+	}
 }
 
 static bool event_interrupt_isr_v9(struct kfd_dev *dev,
Signature · 1 line
2.35.1
#1 lore raw

Dear Tao,

Thank you for rerolling the pacth.

Am 22.03.22 um 04:29 schrieb Tao Zhou:

Quoted 2 lines

Print the status out when it passes, and also tell user gpu reset is triggered when we fallback to legacy way.

The verb *fall back* is written with a space.

Quoted 1 line

v2: make the message more explicitly.

explicit

Quoted 2 lines

v3: change succeeds to succeeded.
replace pr_warn with dev_info.

Please give the reason, why to decrease the debug level. (I would also do it in a separate commit.)

Quoted 22 lines
---
  drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 13 +++++++++----
  1 file changed, 9 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +0 -2
index 56902b5bb7b6..cc9ddc4b4cb8 100644
@@ -105,8 +105,6 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
  	if (old_poison)
  		return;
 
-	pr_warn("RAS poison consumption handling: client id %d\n", client_id);
-
  	switch (client_id) {
  	case SOC15_IH_CLIENTID_SE0SH:
  	case SOC15_IH_CLIENTID_SE1SH:
@@ -130,10 +128,17 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
  	/* resetting queue passes, do page retirement without gpu reset
  	 * resetting queue fails, fallback to gpu reset solution
  	 */

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void event_interrupt_poison_consumption(struct kfd_dev *dev, · line 138

Quoted 10 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +7 -2
-	if (!ret)
+	if (!ret) {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, unmap queue flow succeeded: client id %d\n",
+			client_id);
  		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, false);
-	else
+	} else {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, fallback to gpu reset flow: client id %d\n",

The verb *fall back* is written with a space.

Quoted 6 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +2 -0
+			client_id);
  		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, true);
+	}
  }
 
  static bool event_interrupt_isr_v9(struct kfd_dev *dev,
author
#2 lore raw

[AMD Official Use Only]

Quoted 14 lines

-----Original Message-----
From: Paul Menzel <[email protected]>
Sent: Tuesday, March 22, 2022 11:42 AM
To: Zhou1, Tao <[email protected]>
Cc: [email protected]; Zhang, Hawking <[email protected]>; Kuehling, Felix <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>; Lazar, Lijo <[email protected]>
Subject: Re: [PATCH] drm/amdkfd: print unmap queue status for RAS poison consumption (v3)

Dear Tao,

Quoted 7 lines

Thank you for rerolling the pacth.

Am 22.03.22 um 04:29 schrieb Tao Zhou:

Quoted 2 lines

Print the status out when it passes, and also tell user gpu reset is triggered when we fallback to legacy way.

The verb *fall back* is written with a space.

[Tao] will update it before push

Quoted 4 lines
Quoted 2 lines

v2: make the message more explicitly.

explicit

[Tao] will update it before push.

Quoted 6 lines
Quoted 3 lines

v3: change succeeds to succeeded.
replace pr_warn with dev_info.

Please give the reason, why to decrease the debug level. (I would also do it in a separate commit.)

[Tao] please check my reply to Lijo. It's informational message, but ras poison consumption is special event, both debug levels are OK for me.

Quoted 34 lines

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void

Quoted 12 lines
---
  drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 13 +++++++++----
  1 file changed, 9 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +0 -0
index 56902b5bb7b6..cc9ddc4b4cb8 100644
@@ -105,8 +105,6 @@ static void

event_interrupt_poison_consumption(struct kfd_dev *dev,

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void

Quoted 9 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +0 -2
  	if (old_poison)
  		return;
 
-	pr_warn("RAS poison consumption handling: client id %d\n", client_id);
-
  	switch (client_id) {
  	case SOC15_IH_CLIENTID_SE0SH:
  	case SOC15_IH_CLIENTID_SE1SH:
@@ -130,10 +128,17 @@ static void

event_interrupt_poison_consumption(struct kfd_dev *dev,

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void event_interrupt_poison_consumption(struct kfd_dev *dev,

Quoted 7 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +3 -1
  	/* resetting queue passes, do page retirement without gpu reset
  	 * resetting queue fails, fallback to gpu reset solution
  	 */
-	if (!ret)
+	if (!ret) {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, unmap queue flow

succeeded: client id %d\n",

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void · line 135

Quoted 2 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +1 -0
+			client_id);
  		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev,

false);

Quoted 8 lines

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void event_interrupt_poison_consumption(struct kfd_dev *dev,

Quoted 4 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +3 -1
-	else
+	} else {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, fallback to gpu reset flow:

client id

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void · line 139

Quoted 1 line
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +1 -0
+%d\n",

The verb *fall back* is written with a space.

[Tao] will update it before push.

Quoted 8 lines

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void · line 141

Quoted 3 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +1 -0
+			client_id);
  		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev,

true);

Quoted 4 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +1 -0
+	}
  }
 
  static bool event_interrupt_isr_v9(struct kfd_dev *dev,
#3 lore raw

Dear Tao,

Am 22.03.22 um 04:51 schrieb Zhou1, Tao:

Quoted 3 lines
Quoted 3 lines

-----Original Message-----
From: Paul Menzel <[email protected]>
Sent: Tuesday, March 22, 2022 11:42 AM

[…]

Quoted 19 lines
Quoted 5 lines

Am 22.03.22 um 04:29 schrieb Tao Zhou:

Quoted 2 lines

Print the status out when it passes, and also tell user gpu reset is triggered when we fallback to legacy way.

The verb *fall back* is written with a space.

[Tao] will update it before push

Quoted 4 lines
Quoted 2 lines

v2: make the message more explicitly.

explicit

[Tao] will update it before push.

Quoted 4 lines
Quoted 3 lines

v3: change succeeds to succeeded.
replace pr_warn with dev_info.

Quoted 6 lines
Quoted 2 lines

Please give the reason, why to decrease the debug level. (I would also do it in a separate commit.)

[Tao] please check my reply to Lijo. It's informational message, but ras poison consumption is special event, both debug levels are OK for me.

I saw that, but it has to be documented in the commit message. You cannot expect reviewers and readers of the commit to hunt down these discussions. Commit messages need to be self-contained.

Quoted 42 lines
Quoted 22 lines

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void

Quoted 11 lines
---
   drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 13 +++++++++----
   1 file changed, 9 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +0 -0
index 56902b5bb7b6..cc9ddc4b4cb8 100644
@@ -105,8 +105,6 @@ static void

event_interrupt_poison_consumption(struct kfd_dev *dev,

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void

Quoted 9 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +0 -2
   	if (old_poison)
   		return;
 
-	pr_warn("RAS poison consumption handling: client id %d\n", client_id);
-
   	switch (client_id) {
   	case SOC15_IH_CLIENTID_SE0SH:
   	case SOC15_IH_CLIENTID_SE1SH:
@@ -130,10 +128,17 @@ static void

event_interrupt_poison_consumption(struct kfd_dev *dev,

Quoted 16 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +0 -1
   	/* resetting queue passes, do page retirement without gpu reset
   	 * resetting queue fails, fallback to gpu reset solution
   	 */
-	if (!ret)

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void event_interrupt_poison_consumption(struct kfd_dev *dev,

Quoted 10 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +8 -1
+	if (!ret) {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, unmap queue flow succeeded: client id %d\n",
+			client_id);
   		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, false);
-	else
+	} else {
+		dev_info(dev->adev->dev,
+			"RAS poison consumption, fallback to gpu reset flow: client id
+%d\n",

The verb *fall back* is written with a space.

[Tao] will update it before push.

Quoted 1 line
Quoted 6 lines
Quoted 6 lines

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c static void event_interrupt_poison_consumption(struct kfd_dev *dev, · line 144

Quoted 6 lines
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +2 -0
+			client_id);
   		amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, true);
+	}
   }
 
   static bool event_interrupt_isr_v9(struct kfd_dev *dev,

Kind regards,

Paul