drm/amdgpu: Add IDH_QUERY_ALIVE event for SR-IOV
Subsystems (2)
PATCH 1/1 drm/amdgpu: Add IDH_QUERY_ALIVE event for SR-IOV
SR-IOV host side will send IDH_QUERY_ALIVE to guest VM to check if this guest VM is still alive (not destroyed). The only thing guest KMD need to do is to send ACK back to host.
--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 3 +++ drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h | 1 + 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +3 -0
@@ -372,6 +372,9 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev,if (amdgpu_sriov_runtime (adev))schedule_work (&adev->virt.flr_work);break ; +case IDH_QUERY_ALIVE : +xgpu_ai_mailbox_send_ack (adev); +break ;/* READY_TO_ACCESS_GPU is fetched by kernel polling, IRQ can ignore * it byfar since that polling thread will handle it, * other msg like flr complete is not handled here.
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h +1 -0
@@ -49,6 +49,7 @@ enum idh_event {IDH_FLR_NOTIFICATION_CMPL ,IDH_SUCCESS ,IDH_FAIL , +IDH_QUERY_ALIVE , IDH_EVENT_MAX };
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1556613013-8586-1-git-send-email-Trigger.Huang-5C7GfCeVMHo@public.gmane.org
Hi Guys,
Would you help on this patch?
Thanks & Best Wishes,
Trigger Huang
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Trigger Huang
Sent: Tuesday, April 30, 2019 4:30 PM
To: [email protected]
Cc: Huang, Trigger <[email protected]>
Subject: [PATCH] drm/amdgpu: Add IDH_QUERY_ALIVE event for SR-IOV
[CAUTION: External Email]
SR-IOV host side will send IDH_QUERY_ALIVE to guest VM to check if this guest VM is still alive (not destroyed). The only thing guest KMD need to do is to send ACK back to host.
--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 3 +++ drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h | 1 + 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +3 -0
@@ -372,6 +372,9 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev,if (amdgpu_sriov_runtime (adev))schedule_work (&adev->virt.flr_work);break ; +case IDH_QUERY_ALIVE : +xgpu_ai_mailbox_send_ack (adev); +break ;/* READY_TO_ACCESS_GPU is fetched by kernel polling, IRQ can ignore * it byfar since that polling thread will handle it, * other msg like flr complete is not handled here.
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h +1 -0
@@ -49,6 +49,7 @@ enum idh_event {IDH_FLR_NOTIFICATION_CMPL ,IDH_SUCCESS ,IDH_FAIL , +IDH_QUERY_ALIVE , IDH_EVENT_MAX };
--
2.7.4
_______________________________________________
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
Deucher, Alexander
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Trigger Huang <[email protected]>
Sent: Tuesday, April 30, 2019 4:30 AM
To: [email protected]
Cc: Huang, Trigger
Subject: [PATCH] drm/amdgpu: Add IDH_QUERY_ALIVE event for SR-IOV
[CAUTION: External Email]
SR-IOV host side will send IDH_QUERY_ALIVE to guest VM to check if this guest VM is still alive (not destroyed). The only thing guest KMD need to do is to send ACK back to host.
--- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 3 +++ drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h | 1 + 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +3 -0
@@ -372,6 +372,9 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev,if (amdgpu_sriov_runtime (adev))schedule_work (&adev->virt.flr_work);break ; +case IDH_QUERY_ALIVE : +xgpu_ai_mailbox_send_ack (adev); +break ;/* READY_TO_ACCESS_GPU is fetched by kernel polling, IRQ can ignore * it byfar since that polling thread will handle it, * other msg like flr complete is not handled here.
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h +1 -0
@@ -49,6 +49,7 @@ enum idh_event {IDH_FLR_NOTIFICATION_CMPL ,IDH_SUCCESS ,IDH_FAIL , +IDH_QUERY_ALIVE , IDH_EVENT_MAX };
--
2.7.4
_______________________________________________
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