Skip to contentSkip to conversation

drm/amdgpu: Fix GPU reset crash regression.

PATCH In review Andrey Grodzovsky 2 participants 2 messages Aug 2, 2019 – Aug 3, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix GPU reset crash regression.

amdgpu_ip_block.status.hw for GMC wasn't set to
false on suspend during GPU reset and so on resume gmc_v9_0_resume wasn't called.
Caused by 'drm/amdgpu: fix double ucode load by PSP(v3)'

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
index 31abd88..67a1f54 100644
@@ -2270,9 +2270,10 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
 						  adev->mp1_state, r);
 					return r;
 				}
-				adev->ip_blocks[i].status.hw = false;
 			}
 		}
+
+		adev->ip_blocks[i].status.hw = false;
 	}
 
 	return 0;
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): 1564779184-22641-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 7 lines · Andrey Grodzovsky

amdgpu_ip_block.status.hw for GMC wasn't set to
false on suspend during GPU reset and so on resume gmc_v9_0_resume wasn't called.
Caused by 'drm/amdgpu: fix double ucode load by PSP(v3)'

Quoted 23 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -2
index 31abd88..67a1f54 100644
@@ -2270,9 +2270,10 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
                                                  adev->mp1_state, r);
                                        return r;
                                }
-                               adev->ip_blocks[i].status.hw = false;
                        }
                }
+
+               adev->ip_blocks[i].status.hw = false;
        }
 
        return 0;
--

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