Bring those defines close to the context where they can be used. Also apply indentation as it is done for other subsets of defines.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -1020,20 +1020,6 @@ struct drm_xe_vm_bind { · 1019 unmodified lines | ||
| 1020 | 1020 | __u64 reserved[2]; |
| 1021 | 1021 | }; |
| 1022 | 1022 | |
| 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 | − | |
| 1037 | 1023 | /** |
| 1038 | 1024 | * struct drm_xe_exec_queue_create - Input of &DRM_IOCTL_XE_EXEC_QUEUE_CREATE |
| 1039 | 1025 | * |
| @@ -1066,6 +1052,14 @@ struct drm_xe_exec_queue_create { · 26 unmodified lines | ||
| 1066 | 1052 | #define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER 5 |
| 1067 | 1053 | #define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY 6 |
| 1068 | 1054 | #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 | |
| 1069 | 1063 | |
| 1070 | 1064 | /** @extensions: Pointer to the first extension struct, if any */ |
| 1071 | 1065 | __u64 extensions; |