Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: add RAS poison consumption handler for NV SRIOV

Send handling request to host.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tao Zhou and committed by
Alex Deucher
ae844dd7 8ede944d

+7
+6
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
··· 426 426 amdgpu_irq_put(adev, &adev->virt.rcv_irq, 0); 427 427 } 428 428 429 + static void xgpu_nv_ras_poison_handler(struct amdgpu_device *adev) 430 + { 431 + xgpu_nv_send_access_requests(adev, IDH_RAS_POISON); 432 + } 433 + 429 434 const struct amdgpu_virt_ops xgpu_nv_virt_ops = { 430 435 .req_full_gpu = xgpu_nv_request_full_gpu_access, 431 436 .rel_full_gpu = xgpu_nv_release_full_gpu_access, ··· 438 433 .reset_gpu = xgpu_nv_request_reset, 439 434 .wait_reset = NULL, 440 435 .trans_msg = xgpu_nv_mailbox_trans_msg, 436 + .ras_poison_handler = xgpu_nv_ras_poison_handler, 441 437 };
+1
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h
··· 39 39 40 40 IDH_LOG_VF_ERROR = 200, 41 41 IDH_READY_TO_RESET = 201, 42 + IDH_RAS_POISON = 202, 42 43 }; 43 44 44 45 enum idh_event {