[Intel-xe] [PATCH 2/3] drm/xe: Move XE_PTE_FLAG_READ_ONLY to xe_vm_types.h

Thomas Hellström thomas.hellstrom at linux.intel.com
Wed Jun 14 08:02:40 UTC 2023


On 6/8/23 07:03, Matthew Brost wrote:
> XE_PTE_FLAG_READ_ONLY is specific to struct xe_vma, move it from xe_bo.h
> to xe_vm_types.h to reflect that.
>
> Signed-off-vy: Matthew Brost <matthew.brost at intel.com>

Typo: s/vy/by

Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>


> ---
>   drivers/gpu/drm/xe/xe_bo.h       | 2 --
>   drivers/gpu/drm/xe/xe_vm_types.h | 1 +
>   2 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 552fe073e9c5..dd3d448fee0b 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -65,8 +65,6 @@
>   #define XE_PAGE_PRESENT			BIT_ULL(0)
>   #define XE_PAGE_RW			BIT_ULL(1)
>   
> -#define XE_PTE_FLAG_READ_ONLY		BIT(0)
> -
>   #define XE_PL_SYSTEM		TTM_PL_SYSTEM
>   #define XE_PL_TT		TTM_PL_TT
>   #define XE_PL_VRAM0		TTM_PL_VRAM
> diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h
> index 76af6ac0fa84..6daddd29d416 100644
> --- a/drivers/gpu/drm/xe/xe_vm_types.h
> +++ b/drivers/gpu/drm/xe/xe_vm_types.h
> @@ -30,6 +30,7 @@ struct xe_vma {
>   	/** @end: end address of this VMA within its address domain */
>   	u64 end;
>   	/** @pte_flags: pte flags for this VMA */
> +#define XE_PTE_FLAG_READ_ONLY		BIT(0)
>   	u32 pte_flags;
>   
>   	/** @bo: BO if not a userptr, must be NULL is userptr */


More information about the Intel-xe mailing list