drm/amdgpu: check if we need to reset at init time (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Nov 2018 05:02:01 +0000 (00:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:57 +0000 (15:04 -0500)
commit95e8e59ec49f7ca5c8d3f531c1d396961b5b961b
tree916a39b00b91303e2fe7beddbff2dd867fa75ae1
parent9281f12cabb09059ae60603e14cc9cd98b02febb
drm/amdgpu: check if we need to reset at init time (v2)

To deal with situations like kexec or GPU VM passthrough
where the device may have been used previously without a
proper GPU reset between.

v2: rebase

bug: https://bugs.freedesktop.org/show_bug.cgi?id=108585
bug: https://bugs.freedesktop.org/show_bug.cgi?id=108754
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c