Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81597303 authored by Flora Cui's avatar Flora Cui Committed by Alex Deucher
Browse files

drm/amdgpu: fix gtt_mgr bo's offset

parent 2befa60e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man,

	if (!r) {
		mem->start = node->start;
		if (&tbo->mem == mem)
			tbo->offset = (tbo->mem.start << PAGE_SHIFT) +
			    tbo->bdev->man[tbo->mem.mem_type].gpu_offset;
	}