amdgpu: fix asic initialization for virtualized environments (v2)
authorAndres Rodriguez <andres.rodriguez@amd.com>
Sat, 11 Jun 2016 06:51:32 +0000 (02:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Jun 2016 19:25:20 +0000 (15:25 -0400)
commit048765ad5af7c8939603b4c6cb96293ffa05e00d
tree5c5218841c6f789c0ae22e67f64dd2182cf2a58c
parent9ef8537e68941d858924a3eacee5a1945767cbab
amdgpu: fix asic initialization for virtualized environments (v2)

When executing in a PCI passthrough based virtuzliation environemnt, the
hypervisor will usually attempt to send a PCIe bus reset signal to the
ASIC when the VM reboots. In this scenario, the card is not correctly
initialized, but we still consider it to be posted. Therefore, in a
passthrough based environemnt we should always post the card to guarantee
it is in a good state for driver initialization.

However, if we are operating in SR-IOV mode it is up to the GIM driver
to manage the asic state, therefore we should not post the card (and
shouldn't be able to do it either).

v2: add missing semi-colon

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andres Rodriguez <andres.rodriguez@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
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/vi.c
This page took 0.0307539999999999 seconds and 5 git commands to generate.