[PATCH v2 31/32] drm/xe/bo: Add attributes field to xe_bo
Matthew Brost
matthew.brost at intel.com
Wed May 14 21:10:36 UTC 2025
On Mon, Apr 07, 2025 at 03:47:18PM +0530, Himal Prasad Ghimiray wrote:
> A single BO can be linked to multiple VMAs, making VMA attributes
> insufficient for determining the placement and PTE update attributes
> of the BO. To address this, an attributes field has been added to the
> BO.
>
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
Replied to wrong version eariler...
Anyways:
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_bo_types.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
> index 81396181aaea..5340127e67ae 100644
> --- a/drivers/gpu/drm/xe/xe_bo_types.h
> +++ b/drivers/gpu/drm/xe/xe_bo_types.h
> @@ -60,6 +60,11 @@ struct xe_bo {
> */
> struct list_head client_link;
> #endif
> + /** @attr: User controlled attributes for bo */
> + struct {
> + /** @atomic_access: type of atomic access bo needs */
> + u32 atomic_access;
> + } attr;
> /**
> * @pxp_key_instance: PXP key instance this BO was created against. A
> * 0 in this variable indicates that the BO does not use PXP encryption.
> --
> 2.34.1
>
More information about the Intel-xe
mailing list