Query guest's information by VF2PF message
Subsystems (2)
PATCH 1/1 Query guest's information by VF2PF message
From: Tiecheng Zhou <[email protected]>
drm/amd Add VF2PF message support and follow up fix
- Update VF2PF header
- Implement VF2PF work thread
Change-Id I15b3899719ea06b19a9ff683666f9bc4b8b6229c
Signed-off-by Tiecheng Zhou <[email protected]>
Signed-off-by Bokun Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 244 +++++++++++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 85 +----- drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h | 276 ++++++++++++++++++++ 4 files changed, 480 insertions(+), 134 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +8 -1
@@ -3396,8 +3396,10 @@ void amdgpu_device_fini(struct amdgpu_device *adev)/* make sure IB test finished before entering exclusive mode * to avoid preemption on IB test * */ -if (amdgpu_sriov_vf (adev)) +if (amdgpu_sriov_vf (adev)) {amdgpu_virt_request_full_gpu (adev, false); +amdgpu_virt_fini_data_exchange (adev); + }/* disable all interrupts */ amdgpu_irq_disable_all (adev);
@@ -4034,6 +4036,11 @@ static int amdgpu_device_pre_asic_reset(struct amdgpu_device *adev,amdgpu_debugfs_wait_dump (adev); +if (amdgpu_sriov_vf (adev)) { +/* stop the data exchange thread */ +amdgpu_virt_fini_data_exchange (adev); + } +/* block all schedulers and reset given job's ring */ for (i =0 ; i <AMDGPU_MAX_RINGS ; ++i) {struct amdgpu_ring *ring = adev->rings[i];
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +189 -55
284 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h +7 -78
117 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h new file +276 -0
276 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx