drm/amdgpu: skip fw pri bo alloc for SRIOV
authorYintian Tao <yttao@amd.com>
Thu, 16 May 2019 05:07:26 +0000 (13:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2019 17:59:45 +0000 (12:59 -0500)
commit057f91645cef412fe460b17fa50726c8a1c5921c
tree9af0b7342047f119494ef773570e16c1f2286d28
parent029f41535ac5e07e1fa17ca963a9f9fd05fb665f
drm/amdgpu: skip fw pri bo alloc for SRIOV

PSP fw primary buffer is not used under SRIOV.
Under SRIOV, VBIOS or hypervisor driver will load psp
sos and psp sysdrv. Therefore, we don't need to
allocate memory for it.

v2: remove superfluous check for amdgpu_bo_free_kernel().

Signed-off-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c