浏览代码

drm/nouveau: no need to update bo.offset from vma after validate

On chipsets using nouveau_vm, the virtual address stays constant, so
the value set at bo creation time is fine.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs 14 年之前
父节点
当前提交
d359d51cba
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/gpu/drm/nouveau/nouveau_bo.c

+ 0 - 2
drivers/gpu/drm/nouveau/nouveau_bo.c

@@ -312,8 +312,6 @@ nouveau_bo_validate(struct nouveau_bo *nvbo, bool interruptible,
 	if (ret)
 		return ret;
 
-	if (nvbo->vma.node)
-		nvbo->bo.offset = nvbo->vma.offset;
 	return 0;
 }