]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/amdgpu: check if vram is lost v2
authorChunming Zhou <David1.Zhou@amd.com>
Mon, 15 May 2017 06:20:00 +0000 (14:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 22:10:06 +0000 (18:10 -0400)
commit0c49e0b8a43c8addb0498cd32390f4ef08b5dd27
tree154439f0b20cba71463f67ccaf5913a29ebf30d8
parente0ec45063609b4a583e7f4d843275888f2480321
drm/amdgpu: check if vram is lost v2

backup first 64 byte of gart table as reset magic, check if magic is same
after gpu hw reset.
v2: use memcmp instead of manual innovation.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c