Skip to content

Commit 30c6997

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu: add missing vram lost check for LEGACY RESET
commit 81699fe upstream. Legacy resets reset the memory controllers so VRAM contents may be unreliable after reset. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit aae9489) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b6700e1 commit 30c6997

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
@@ -3234,6 +3234,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)
32343234
* always assumed to be lost.
32353235
*/
32363236
switch (amdgpu_asic_reset_method(adev)) {
3237+
case AMD_RESET_METHOD_LEGACY:
32373238
case AMD_RESET_METHOD_LINK:
32383239
case AMD_RESET_METHOD_BACO:
32393240
case AMD_RESET_METHOD_MODE1:

0 commit comments

Comments
 (0)