drm/amdgpu/gmc8: SRIOV need to program fb location
authorEmily Deng <Emily.Deng@amd.com>
Thu, 20 Jul 2017 04:14:45 +0000 (12:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:29:43 +0000 (16:29 -0400)
commite72b991281fa5a1987aed70d8a78981d7cd8e703
treeaf0b1847f6963bdc3103afce58c076afdfc4d0ae
parent16a53a02fadec3a557abbfaf699404d14d2dfd7e
drm/amdgpu/gmc8: SRIOV need to program fb location

SRIOV won't do vbios post in guest OS, and the mmMC_VM_FB_LOCATION
is pf and vf copy, so still need to program fb location for SRIOV.

v2: No need to stop mc, and update gmc_v8_0_vram_gtt_location as well.

v3: New line after the stack variables

BUG: SWDEV-126629

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c