intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH] drm/xe/bo: Return object bo size on create
@ 2023-03-28 13:08 Zbigniew Kempczyński
  2023-03-28 13:10 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Zbigniew Kempczyński @ 2023-03-28 13:08 UTC (permalink / raw)
  To: intel-xe

Driver may alter bo size requested by the user. Return real object
size to make userspace aware how to arrange vm bindings.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
---
 drivers/gpu/drm/xe/xe_bo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index e4d079b61d52..410e797931ac 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -1564,6 +1564,7 @@ int xe_gem_create_ioctl(struct drm_device *dev, void *data,
 		return err;
 
 	args->handle = handle;
+	args->size = bo->size;
 
 	return 0;
 }
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-04-13  6:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 13:08 [Intel-xe] [PATCH] drm/xe/bo: Return object bo size on create Zbigniew Kempczyński
2023-03-28 13:10 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-03-28 13:11 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-03-28 13:15 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-03-28 13:36 ` [Intel-xe] ○ CI.BAT: info " Patchwork
2023-03-28 16:28 ` [Intel-xe] [PATCH] " Niranjana Vishwanathapura
2023-03-28 18:04 ` Matthew Brost
2023-04-03 16:48 ` Mauro Carvalho Chehab
2023-04-06  5:37   ` Zbigniew Kempczyński
2023-04-12 14:07   ` Maarten Lankhorst
2023-04-13  6:31     ` Zbigniew Kempczyński
2023-04-03 17:16 ` [Intel-xe] ✗ CI.Patch_applied: failure for drm/xe/bo: Return object bo size on create (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).