Skip to content

Commit 9f7ceec

Browse files
ifdurodrigovivi
authored andcommitted
drm/xe/uapi: Move DRM_XE_ACC_GRANULARITY_* where they are used
Bring those defines close to the context where they can be used. Also apply indentation as it is done for other subsets of defines. Reviewed-by: Rodrigo Vivi <[email protected]> Acked-by: José Roberto de Souza <[email protected]> Acked-by: Mateusz Naklicki <[email protected]> Signed-off-by: Francois Dugast <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 0bf90a8 commit 9f7ceec

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

include/uapi/drm/xe_drm.h

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,20 +1020,6 @@ struct drm_xe_vm_bind {
10201020
__u64 reserved[2];
10211021
};
10221022

1023-
/* For use with DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY */
1024-
1025-
/* Monitor 128KB contiguous region with 4K sub-granularity */
1026-
#define DRM_XE_ACC_GRANULARITY_128K 0
1027-
1028-
/* Monitor 2MB contiguous region with 64KB sub-granularity */
1029-
#define DRM_XE_ACC_GRANULARITY_2M 1
1030-
1031-
/* Monitor 16MB contiguous region with 512KB sub-granularity */
1032-
#define DRM_XE_ACC_GRANULARITY_16M 2
1033-
1034-
/* Monitor 64MB contiguous region with 2M sub-granularity */
1035-
#define DRM_XE_ACC_GRANULARITY_64M 3
1036-
10371023
/**
10381024
* struct drm_xe_exec_queue_create - Input of &DRM_IOCTL_XE_EXEC_QUEUE_CREATE
10391025
*
@@ -1066,6 +1052,14 @@ struct drm_xe_exec_queue_create {
10661052
#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER 5
10671053
#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY 6
10681054
#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY 7
1055+
/* Monitor 128KB contiguous region with 4K sub-granularity */
1056+
#define DRM_XE_ACC_GRANULARITY_128K 0
1057+
/* Monitor 2MB contiguous region with 64KB sub-granularity */
1058+
#define DRM_XE_ACC_GRANULARITY_2M 1
1059+
/* Monitor 16MB contiguous region with 512KB sub-granularity */
1060+
#define DRM_XE_ACC_GRANULARITY_16M 2
1061+
/* Monitor 64MB contiguous region with 2M sub-granularity */
1062+
#define DRM_XE_ACC_GRANULARITY_64M 3
10691063

10701064
/** @extensions: Pointer to the first extension struct, if any */
10711065
__u64 extensions;

0 commit comments

Comments
 (0)