drm/amdkfd/sriov:Put the pre and post reset in exclusive mode v2
Subsystems (2)
PATCH 1/1 drm/amdkfd/sriov:Put the pre and post reset in exclusive mode v2
add amdgpu_amdkfd_pre_reset and amdgpu_amdkfd_post_reset inside amdgpu_device_reset_sriov.
Change-Id Icf2839f0b620ce9d47d6414b6c32b9d06672f2ac
Signed-off-by Wentao Lou <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
@@ -3234,6 +3234,8 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,if (r)return r; +amdgpu_amdkfd_pre_reset (adev); +/* Resume IP prior to SMC */ r =amdgpu_device_ip_reinit_early_sriov (adev);if (r)
@@ -3253,6 +3255,7 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,amdgpu_irq_gpu_reset_resume_helper (adev); r =amdgpu_ib_ring_tests (adev); +amdgpu_amdkfd_post_reset (adev); error:amdgpu_virt_init_data_exchange (adev);
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): 1552471456-15089-1-git-send-email-Wentao.Lou-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Acked-byQuoted 5 lines · wentalou
add
amdgpu_amdkfd_pre_resetandamdgpu_amdkfd_post_resetinsideamdgpu_device_reset_sriov.Change-Id Icf2839f0b620ce9d47d6414b6c32b9d06672f2acSigned-off-by Wentao Lou <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 28 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-1@@ -3234,6 +3234,8 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,if (r)return r; +amdgpu_amdkfd_pre_reset (adev); +/* Resume IP prior to SMC */ r =amdgpu_device_ip_reinit_early_sriov (adev);if (r)@@ -3253,6 +3255,7 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,amdgpu_irq_gpu_reset_resume_helper (adev); r =amdgpu_ib_ring_tests (adev); +amdgpu_amdkfd_post_reset (adev); error:amdgpu_virt_init_data_exchange (adev); --2.7.4
Quoted 4 lines
_______________________________________________
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