From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: intel-xe@lists.freedesktop.org
Subject: [Intel-xe] [PATCH] drm/xe/bo: Return object bo size on create
Date: Tue, 28 Mar 2023 15:08:26 +0200 [thread overview]
Message-ID: <20230328130826.61029-1-zbigniew.kempczynski@intel.com> (raw)
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
next reply other threads:[~2023-03-28 13:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 13:08 Zbigniew Kempczyński [this message]
2023-03-28 13:10 ` [Intel-xe] ✓ CI.Patch_applied: success for drm/xe/bo: Return object bo size on create 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230328130826.61029-1-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).