Skip to content

Commit aae9489

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]>
1 parent 62eedd1 commit aae9489

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
@@ -3290,6 +3290,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)
32903290
* always assumed to be lost.
32913291
*/
32923292
switch (amdgpu_asic_reset_method(adev)) {
3293+
case AMD_RESET_METHOD_LEGACY:
32933294
case AMD_RESET_METHOD_LINK:
32943295
case AMD_RESET_METHOD_BACO:
32953296
case AMD_RESET_METHOD_MODE1:

0 commit comments

Comments
 (0)