Skip to content

Commit 1902193

Browse files
committed
Align the size with PAGE before create buffer
The xe kernel check whether the size align with PAGE. Tracked-On: OAM-133524 Signed-off-by: HeYue <yue.he@intel.com>
1 parent 2e1d633 commit 1902193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static int xe_bo_create_from_metadata(struct bo *bo)
707707

708708
struct drm_xe_gem_create gem_create = {
709709
.vm_id = vm,
710-
.size = bo->meta.total_size,
710+
.size = ALIGN(bo->meta.total_size, PAGE_SIZE),
711711
.flags = DRM_XE_GEM_CREATE_FLAG_SCANOUT,
712712
};
713713

0 commit comments

Comments
 (0)