[Intel-xe] [PATCH] drm/xe/bo: Return object bo size on create
Niranjana Vishwanathapura
niranjana.vishwanathapura at intel.com
Tue Mar 28 16:28:24 UTC 2023
On Tue, Mar 28, 2023 at 03:08:26PM +0200, Zbigniew Kempczyński wrote:
>Driver may alter bo size requested by the user. Return real object
>size to make userspace aware how to arrange vm bindings.
>
LGTM. I am seeing uapi kernel-doc already mentions it.
The xe IGT needs update to get and use this size (though the size
it uses is already aligned).
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
>Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at 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
>
More information about the Intel-xe
mailing list