mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/ttm: cleanup BO size handling v3
Based on an idea from Dave, but cleaned up a bit. We had multiple fields for essentially the same thing. Now bo->base.size is the original size of the BO in arbitrary units, usually bytes. bo->mem.num_pages is the size in number of pages in the resource domain of bo->mem.mem_type. v2: use the GEM object size instead of the BO size v3: fix printks in some places Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> (v1) Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/406831/
This commit is contained in:
@@ -482,8 +482,8 @@ int vmw_bo_cpu_blit(struct ttm_buffer_object *dst,
|
||||
d.src_addr = NULL;
|
||||
d.dst_pages = dst->ttm->pages;
|
||||
d.src_pages = src->ttm->pages;
|
||||
d.dst_num_pages = dst->num_pages;
|
||||
d.src_num_pages = src->num_pages;
|
||||
d.dst_num_pages = dst->mem.num_pages;
|
||||
d.src_num_pages = src->mem.num_pages;
|
||||
d.dst_prot = ttm_io_prot(dst, &dst->mem, PAGE_KERNEL);
|
||||
d.src_prot = ttm_io_prot(src, &src->mem, PAGE_KERNEL);
|
||||
d.diff = diff;
|
||||
|
||||
Reference in New Issue
Block a user