Skip to content

Commit 81699fe

Browse files
committed
drm/amdgpu: add missing vram lost check for LEGACY RESET
Legacy resets reset the memory controllers so VRAM contents may be unreliable after reset. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit aae94897b6661a2a4b1de2d328090fc388b3e0af) Cc: [email protected]
1 parent 514678d commit 81699fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,6 +3270,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)
32703270
* always assumed to be lost.
32713271
*/
32723272
switch (amdgpu_asic_reset_method(adev)) {
3273+
case AMD_RESET_METHOD_LEGACY:
32733274
case AMD_RESET_METHOD_LINK:
32743275
case AMD_RESET_METHOD_BACO:
32753276
case AMD_RESET_METHOD_MODE1:

0 commit comments

Comments
 (0)