]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix VRAM partially encroached issue in GDDR6 memory training(V2)
authorTianci.Yin <tianci.yin@amd.com>
Mon, 20 Jan 2020 07:08:35 +0000 (15:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:55:27 +0000 (16:55 -0500)
commit3ec693113eef37034aaaf82e44b1dad5f703883c
treef2a7f85ddec9743d9ad206877186822c2a419791
parent5e8b7da2116d8b56761820e47d001e48a66ae936
drm/amdgpu: fix VRAM partially encroached issue in GDDR6 memory training(V2)

[why]
In GDDR6 BIST training, a certain mount of bottom VRAM will be encroached by
UMC, that causes problems(like GTT corrupted and page fault observed).

[how]
Saving the content of this bottom VRAM to system memory before training, and
restoring it after training to avoid VRAM corruption.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c