drm/radeon: move IB pool to 1MB offset
[deliverable/linux.git] / drivers / gpu / drm / radeon / radeon_ring.c
index 993cf712074f10d6bec17a4df43c9f1789c1d883..d90b0bc6f0729a8ab6f3518cff52c2d99d087e12 100644 (file)
@@ -79,10 +79,10 @@ int radeon_ib_get(struct radeon_device *rdev, int ring,
        ib->ptr = radeon_sa_bo_cpu_addr(ib->sa_bo);
        ib->vm = vm;
        if (vm) {
-               /* ib pool is bind at 0 in virtual address space,
-                * so gpu_addr is the offset inside the pool bo
+               /* ib pool is bound at RADEON_VA_IB_OFFSET in virtual address
+                * space and soffset is the offset inside the pool bo
                 */
-               ib->gpu_addr = ib->sa_bo->soffset;
+               ib->gpu_addr = ib->sa_bo->soffset + RADEON_VA_IB_OFFSET;
        } else {
                ib->gpu_addr = radeon_sa_bo_gpu_addr(ib->sa_bo);
        }
This page took 0.029847 seconds and 5 git commands to generate.