drm/amdgpu: Fix firmware UCODE_ID_STORAGE issue (v2)
authorTrigger Huang <trigger.huang@amd.com>
Tue, 11 Apr 2017 05:56:36 +0000 (01:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:14 +0000 (17:32 -0400)
commitbc108ec78e2af5c7a5f6ef27e264b8093bd60e3b
treef3ece0da5d244572495b0331e84d8bdc731faee6
parentcbcbea982af59d0a4c40dacfb6ff164a533fd1d9
drm/amdgpu: Fix firmware UCODE_ID_STORAGE issue (v2)

In Tonga's virtualization environment, for firmware UCODE_ID_STORAGE,
there is no actual firmware data, but we still need alloc a BO and
tell the BO's mc address to HW, or world switch will hang on VFs.

v2: fix coding style (Alex)

Signed-off-by: Trigger Huang <trigger.huang@amd.com>
Reviewed-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c