RE: [PATCH] drm/amdgpu: fix for suspend/resume sequence under sriov

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - General]

 

@Deucher, Alexander

 

Following up on this to see if the patch reviewed and approved for up streaming?

 

Thanks,

 

SIRISH

 

-----Original Message-----
From: Zhao, Victor <Victor.Zhao@xxxxxxx>
Sent: Thursday, November 3, 2022 12:08 AM
To: Zhao, Victor <Victor.Zhao@xxxxxxx>; amd-gfx@xxxxxxxxxxxxxxxxxxxxx; Deucher, Alexander <Alexander.Deucher@xxxxxxx>
Cc: Zhang, Bokun <Bokun.Zhang@xxxxxxx>; Chickanayakanahalli, Sirish <sirish.c@xxxxxxx>
Subject: RE: [PATCH] drm/amdgpu: fix for suspend/resume sequence under sriov

 

[AMD Official Use Only - General]

 

Hi Alex,

 

This is a patch fixing the sriov suspend/resume sequence. Please help review.

 

 

Thanks,

Victor

 

 

 

-----Original Message-----

From: Victor Zhao <Victor.Zhao@xxxxxxx>

Sent: Thursday, November 3, 2022 12:06 PM

To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; Deucher, Alexander <Alexander.Deucher@xxxxxxx>

Cc: Zhao, Victor <Victor.Zhao@xxxxxxx>

Subject: [PATCH] drm/amdgpu: fix for suspend/resume sequence under sriov

 

- clear kiq ring after suspend/resume under sriov to aviod kiq ring test failure

- update irq after resume to fix kiq interrput loss

 

Signed-off-by: Victor Zhao <Victor.Zhao@xxxxxxx>

---

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c     | 2 ++

2 files changed, 4 insertions(+)

 

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 522820eeaa59..5b9f992e4607 100644

--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

@@ -4197,6 +4197,8 @@ int amdgpu_device_resume(struct drm_device *dev, bool fbcon)

               }

 

                /* Make sure IB tests flushed */

+             if (amdgpu_sriov_vf(adev))

+                             amdgpu_irq_gpu_reset_resume_helper(adev);

               flush_delayed_work(&adev->delayed_init_work);

 

                if (adev->in_s0ix) {

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 7853d3ca58cf..49d34c7bbf20 100644

--- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

@@ -6909,6 +6909,8 @@ static int gfx_v10_0_kiq_init_queue(struct amdgpu_ring *ring)

                               mutex_unlock(&adev->srbm_mutex);

               } else {

                               memset((void *)mqd, 0, sizeof(*mqd));

+                             if (amdgpu_sriov_vf(adev) && adev->in_suspend)

+                                             amdgpu_ring_clear_ring(ring);

                               mutex_lock(&adev->srbm_mutex);

                               nv_grbm_select(adev, ring->me, ring->pipe, ring->queue, 0);

                               amdgpu_ring_init_mqd(ring);

--

2.25.1


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux