[igt-dev] [PATCH i-g-t 1/5] xe: sync small-bar uapi

Gwan-gyeong Mun gwan-gyeong.mun at intel.com
Sun Apr 2 23:46:36 UTC 2023


btw, The kernel patch hasn't been merged into drm-xe yet, are there any 
blockers to merge it?

Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>

On 3/29/23 2:56 PM, Matthew Auld wrote:
> We need a couple new fields for the region query and the new flag to
> ensure the buffer is CPU accessible.
> 
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> ---
>   include/drm-uapi/xe_drm.h | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
> index 593b01ba..441b377b 100644
> --- a/include/drm-uapi/xe_drm.h
> +++ b/include/drm-uapi/xe_drm.h
> @@ -169,7 +169,9 @@ struct drm_xe_query_mem_usage {
>   		__u32 max_page_size;
>   		__u64 total_size;
>   		__u64 used;
> -		__u64 reserved[8];
> +		__u64 cpu_visible_size;
> +		__u64 cpu_visible_used;
> +		__u64 reserved[6];
>   	} regions[];
>   };
>   
> @@ -270,6 +272,7 @@ struct drm_xe_gem_create {
>   	 */
>   #define XE_GEM_CREATE_FLAG_DEFER_BACKING	(0x1 << 24)
>   #define XE_GEM_CREATE_FLAG_SCANOUT		(0x1 << 25)
> +#define XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM	(0x1 << 26)
>   	__u32 flags;
>   
>   	/**


More information about the igt-dev mailing list