Commit ed94aca6 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher

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 fall back to legacy way.

v2: make the message more explicit.
v3: change succeeds to succeeded.
    replace pr_warn with dev_warn.
Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4268d081
...@@ -105,8 +105,6 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev, ...@@ -105,8 +105,6 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
if (old_poison) if (old_poison)
return; return;
pr_warn("RAS poison consumption handling: client id %d\n", client_id);
switch (client_id) { switch (client_id) {
case SOC15_IH_CLIENTID_SE0SH: case SOC15_IH_CLIENTID_SE0SH:
case SOC15_IH_CLIENTID_SE1SH: case SOC15_IH_CLIENTID_SE1SH:
...@@ -130,10 +128,17 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev, ...@@ -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 passes, do page retirement without gpu reset
* resetting queue fails, fallback to gpu reset solution * resetting queue fails, fallback to gpu reset solution
*/ */
if (!ret) if (!ret) {
dev_warn(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); amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, false);
else } else {
dev_warn(dev->adev->dev,
"RAS poison consumption, fall back to gpu reset flow: client id %d\n",
client_id);
amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, true); amdgpu_amdkfd_ras_poison_consumption_handler(dev->adev, true);
}
} }
static bool event_interrupt_isr_v9(struct kfd_dev *dev, static bool event_interrupt_isr_v9(struct kfd_dev *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment