Skip to contentSkip to conversation

drm/amdgpu: Make sure IB tests flushed after IP resume

PATCH In review Leo Liu 2 participants 2 messages Jul 13, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Leo Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Make sure IB tests flushed after IP resume

Fixes 2c773de2 (drm/amdgpu: defer test IBs on the rings at boot (V3))
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
index aeb1b279a4cc..ae2776428add 100644
@@ -2771,6 +2771,9 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
 	if (r)
 		return r;
 
+	/* Make sure IB tests flushed */
+	flush_delayed_work(&adev->late_init_work);
+
 	/* blat the mode back in */
 	if (fbcon) {
 		if (!amdgpu_device_has_dc_support(adev)) {
Signature · 6 lines
2.17.1

_______________________________________________
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): [email protected]

Reviewed-by
#2 lore raw

Am 13.07.2018 um 17:41 schrieb Leo Liu:

Quoted 3 lines
Fixes 2c773de2 (drm/amdgpu: defer test IBs on the rings at boot (V3))

Christian.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index aeb1b279a4cc..ae2776428add 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) · line 2779

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
@@ -2771,6 +2771,9 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
  	if (r)
  		return r;
 
+	/* Make sure IB tests flushed */
+	flush_delayed_work(&adev->late_init_work);
+
  	/* blat the mode back in */
  	if (fbcon) {
  		if (!amdgpu_device_has_dc_support(adev)) {

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx