[igt-dev] [PATCH i-g-t v3 04/17] lib/xe_ioctl: Export non-assert xe_exec function

Karolina Stolarek karolina.stolarek at intel.com
Wed Jul 12 07:33:25 UTC 2023


On 11.07.2023 13:19, Zbigniew Kempczyński wrote:
> Export __xe_exec() helper to allow caller to handle the error
> individually.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
>   lib/xe/xe_ioctl.c | 2 +-
>   lib/xe/xe_ioctl.h | 1 +
>   2 files changed, 2 insertions(+), 1 deletion(-)

That change is fine by me, but if you're really keen, you can check it 
with others.

But for now:
Reviewed-by: Karolina Stolarek <karolina.stolarek at intel.com>

> 
> diff --git a/lib/xe/xe_ioctl.c b/lib/xe/xe_ioctl.c
> index 9ead7307c4..0b5c7a4fce 100644
> --- a/lib/xe/xe_ioctl.c
> +++ b/lib/xe/xe_ioctl.c
> @@ -357,7 +357,7 @@ void *xe_bo_mmap_ext(int fd, uint32_t bo, size_t size, int prot)
>   	return __xe_bo_map(fd, bo, size, prot);
>   }
>   
> -static int __xe_exec(int fd, struct drm_xe_exec *exec)
> +int __xe_exec(int fd, struct drm_xe_exec *exec)
>   {
>   	int err = 0;
>   
> diff --git a/lib/xe/xe_ioctl.h b/lib/xe/xe_ioctl.h
> index e014ad66c9..320e0f9f68 100644
> --- a/lib/xe/xe_ioctl.h
> +++ b/lib/xe/xe_ioctl.h
> @@ -75,6 +75,7 @@ void xe_engine_destroy(int fd, uint32_t engine);
>   uint64_t xe_bo_mmap_offset(int fd, uint32_t bo);
>   void *xe_bo_map(int fd, uint32_t bo, size_t size);
>   void *xe_bo_mmap_ext(int fd, uint32_t bo, size_t size, int prot);
> +int __xe_exec(int fd, struct drm_xe_exec *exec);
>   void xe_exec(int fd, struct drm_xe_exec *exec);
>   void xe_exec_sync(int fd, uint32_t engine, uint64_t addr,
>   		  struct drm_xe_sync *sync, uint32_t num_syncs);


More information about the igt-dev mailing list