Commit adb5be81 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: use create_at for the stolen pre-OS buffer



Should be functionally the same since nothing else is
allocated at that point, but let's be exact.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 37912e96
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1979,10 +1979,10 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
	 * This is used for VGA emulation and pre-OS scanout buffers to
	 * avoid display artifacts while transitioning between pre-OS
	 * and driver.  */
	r = amdgpu_bo_create_kernel(adev, adev->gmc.stolen_size, PAGE_SIZE,
	r = amdgpu_bo_create_kernel_at(adev, 0, adev->gmc.stolen_size,
				       AMDGPU_GEM_DOMAIN_VRAM,
				       &adev->stolen_vga_memory,
				    NULL, &stolen_vga_buf);
				       &stolen_vga_buf);
	if (r)
		return r;