Commit 2474414c authored by Victor Skvortsov's avatar Victor Skvortsov Committed by Alex Deucher

drm/amdgpu: Add RAS_POISON_READY host response message

In a non-FLR page avoidance scenario, the host driver will
provide the bad pages in the pf2vf exchange region.

Adding a new host response message to indicate when the
pf2vf exchange region has been updated.
Signed-off-by: default avatarVictor Skvortsov <victor.skvortsov@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ed1e1e42
...@@ -170,6 +170,10 @@ static int xgpu_nv_send_access_requests_with_param(struct amdgpu_device *adev, ...@@ -170,6 +170,10 @@ static int xgpu_nv_send_access_requests_with_param(struct amdgpu_device *adev,
case IDH_REQ_GPU_INIT_DATA: case IDH_REQ_GPU_INIT_DATA:
event = IDH_REQ_GPU_INIT_DATA_READY; event = IDH_REQ_GPU_INIT_DATA_READY;
break; break;
case IDH_RAS_POISON:
if (data1 != 0)
event = IDH_RAS_POISON_READY;
break;
default: default:
break; break;
} }
...@@ -437,8 +441,10 @@ static void xgpu_nv_ras_poison_handler(struct amdgpu_device *adev, ...@@ -437,8 +441,10 @@ static void xgpu_nv_ras_poison_handler(struct amdgpu_device *adev,
if (amdgpu_ip_version(adev, UMC_HWIP, 0) < IP_VERSION(12, 0, 0)) { if (amdgpu_ip_version(adev, UMC_HWIP, 0) < IP_VERSION(12, 0, 0)) {
xgpu_nv_send_access_requests(adev, IDH_RAS_POISON); xgpu_nv_send_access_requests(adev, IDH_RAS_POISON);
} else { } else {
amdgpu_virt_fini_data_exchange(adev);
xgpu_nv_send_access_requests_with_param(adev, xgpu_nv_send_access_requests_with_param(adev,
IDH_RAS_POISON, block, 0, 0); IDH_RAS_POISON, block, 0, 0);
amdgpu_virt_init_data_exchange(adev);
} }
} }
......
...@@ -51,6 +51,7 @@ enum idh_event { ...@@ -51,6 +51,7 @@ enum idh_event {
IDH_FAIL, IDH_FAIL,
IDH_QUERY_ALIVE, IDH_QUERY_ALIVE,
IDH_REQ_GPU_INIT_DATA_READY, IDH_REQ_GPU_INIT_DATA_READY,
IDH_RAS_POISON_READY,
IDH_TEXT_MESSAGE = 255, IDH_TEXT_MESSAGE = 255,
}; };
......
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