aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorhorchen <horace.chen@amd.com>2017-06-09 07:56:48 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-06-15 11:50:26 -0400
commit948edf095158db8d51db25527d8ff21cdff7eb35 (patch)
treed36bf3ec2522662db43b34d9a82c4e6503ab68da /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentab4fe3e1f910a71aabf0b1c919c482d7ce9fc5c7 (diff)
drm/amdgpu: add contiguous flag in ucode bo create
Under VF environment, the ucode would be settled to the visible VRAM, As it would be pinned to the visible VRAM, it's better to add contiguous flag,otherwise it need to move gpu address during the pin process. This movement is not necessary. Signed-off-by: horchen <horace.chen@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index cd6d3d091152..4f50eeb65855 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@ -379,7 +379,8 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev)
379 379
380 err = amdgpu_bo_create(adev, adev->firmware.fw_size, PAGE_SIZE, true, 380 err = amdgpu_bo_create(adev, adev->firmware.fw_size, PAGE_SIZE, true,
381 amdgpu_sriov_vf(adev) ? AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT, 381 amdgpu_sriov_vf(adev) ? AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT,
382 0, NULL, NULL, bo); 382 AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,
383 NULL, NULL, bo);
383 if (err) { 384 if (err) {
384 dev_err(adev->dev, "(%d) Firmware buffer allocate failed\n", err); 385 dev_err(adev->dev, "(%d) Firmware buffer allocate failed\n", err);
385 goto failed; 386 goto failed;