AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu/irq: Move irq resume to the beginning
@ 2023-08-07  5:10 Emily Deng
  2023-08-08  6:43 ` Deng, Emily
  0 siblings, 1 reply; 3+ messages in thread
From: Emily Deng @ 2023-08-07  5:10 UTC (permalink / raw)
  To: amd-gfx; +Cc: Emily Deng

Need to move irq resume to the beginning of reset sriov, or if
one interrupt occurs before irq resume, then the irq won't work anymore.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 1338489b0b2f..8b304fdfe6db 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -4617,6 +4617,7 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
 		r = amdgpu_virt_reset_gpu(adev);
 	if (r)
 		return r;
+	amdgpu_irq_gpu_reset_resume_helper(adev);
 
 	/* some sw clean up VF needs to do before recover */
 	amdgpu_virt_post_reset(adev);
@@ -4646,7 +4647,6 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
 		amdgpu_put_xgmi_hive(hive);
 
 	if (!r) {
-		amdgpu_irq_gpu_reset_resume_helper(adev);
 		r = amdgpu_ib_ring_tests(adev);
 
 		amdgpu_amdkfd_post_reset(adev);
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] drm/amdgpu/irq: Move irq resume to the beginning
  2023-08-07  5:10 [PATCH] drm/amdgpu/irq: Move irq resume to the beginning Emily Deng
@ 2023-08-08  6:43 ` Deng, Emily
  2023-08-08 13:02   ` Alex Deucher
  0 siblings, 1 reply; 3+ messages in thread
From: Deng, Emily @ 2023-08-08  6:43 UTC (permalink / raw)
  To: Deng, Emily, amd-gfx@lists.freedesktop.org

[AMD Official Use Only - General]

Ping.....

>-----Original Message-----
>From: Emily Deng <Emily.Deng@amd.com>
>Sent: Monday, August 7, 2023 1:11 PM
>To: amd-gfx@lists.freedesktop.org
>Cc: Deng, Emily <Emily.Deng@amd.com>
>Subject: [PATCH] drm/amdgpu/irq: Move irq resume to the beginning
>
>Need to move irq resume to the beginning of reset sriov, or if one interrupt
>occurs before irq resume, then the irq won't work anymore.
>
>Signed-off-by: Emily Deng <Emily.Deng@amd.com>
>---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>index 1338489b0b2f..8b304fdfe6db 100644
>--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>@@ -4617,6 +4617,7 @@ static int amdgpu_device_reset_sriov(struct
>amdgpu_device *adev,
>               r = amdgpu_virt_reset_gpu(adev);
>       if (r)
>               return r;
>+      amdgpu_irq_gpu_reset_resume_helper(adev);
>
>       /* some sw clean up VF needs to do before recover */
>       amdgpu_virt_post_reset(adev);
>@@ -4646,7 +4647,6 @@ static int amdgpu_device_reset_sriov(struct
>amdgpu_device *adev,
>               amdgpu_put_xgmi_hive(hive);
>
>       if (!r) {
>-              amdgpu_irq_gpu_reset_resume_helper(adev);
>               r = amdgpu_ib_ring_tests(adev);
>
>               amdgpu_amdkfd_post_reset(adev);
>--
>2.36.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdgpu/irq: Move irq resume to the beginning
  2023-08-08  6:43 ` Deng, Emily
@ 2023-08-08 13:02   ` Alex Deucher
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2023-08-08 13:02 UTC (permalink / raw)
  To: Deng, Emily; +Cc: amd-gfx@lists.freedesktop.org

Acked-by: Alex Deucher <alexander.deucher@amd.com>

On Tue, Aug 8, 2023 at 2:43 AM Deng, Emily <Emily.Deng@amd.com> wrote:
>
> [AMD Official Use Only - General]
>
> Ping.....
>
> >-----Original Message-----
> >From: Emily Deng <Emily.Deng@amd.com>
> >Sent: Monday, August 7, 2023 1:11 PM
> >To: amd-gfx@lists.freedesktop.org
> >Cc: Deng, Emily <Emily.Deng@amd.com>
> >Subject: [PATCH] drm/amdgpu/irq: Move irq resume to the beginning
> >
> >Need to move irq resume to the beginning of reset sriov, or if one interrupt
> >occurs before irq resume, then the irq won't work anymore.
> >
> >Signed-off-by: Emily Deng <Emily.Deng@amd.com>
> >---
> > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >index 1338489b0b2f..8b304fdfe6db 100644
> >--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >@@ -4617,6 +4617,7 @@ static int amdgpu_device_reset_sriov(struct
> >amdgpu_device *adev,
> >               r = amdgpu_virt_reset_gpu(adev);
> >       if (r)
> >               return r;
> >+      amdgpu_irq_gpu_reset_resume_helper(adev);
> >
> >       /* some sw clean up VF needs to do before recover */
> >       amdgpu_virt_post_reset(adev);
> >@@ -4646,7 +4647,6 @@ static int amdgpu_device_reset_sriov(struct
> >amdgpu_device *adev,
> >               amdgpu_put_xgmi_hive(hive);
> >
> >       if (!r) {
> >-              amdgpu_irq_gpu_reset_resume_helper(adev);
> >               r = amdgpu_ib_ring_tests(adev);
> >
> >               amdgpu_amdkfd_post_reset(adev);
> >--
> >2.36.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-08 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07  5:10 [PATCH] drm/amdgpu/irq: Move irq resume to the beginning Emily Deng
2023-08-08  6:43 ` Deng, Emily
2023-08-08 13:02   ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox