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)
commit240c811ccde49ad336b23c582018c6001690f19d
treef2a7f85ddec9743d9ad206877186822c2a419791
parenta9d4fe2fd6529c3129ec6883b8649ea5c7eee4d3
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