History

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.

Francois Dugast committed 2 years ago

Commit 9f7ceec1 parent 0bf90a81 file · +8 −14Browse files

Unified · Split

include/uapi/drm/xe_drm.h+8−14
@@ -1020,20 +1020,6 @@ struct drm_xe_vm_bind { · 1019 unmodified lines
1020 __u64 reserved[2];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 * struct drm_xe_exec_queue_create - Input of &DRM_IOCTL_XE_EXEC_QUEUE_CREATE1024 * 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#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER 51052#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER 5
1067#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY 61053#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY 6
1068#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY 71054#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 /** @extensions: Pointer to the first extension struct, if any */1064 /** @extensions: Pointer to the first extension struct, if any */
1071 __u64 extensions;1065 __u64 extensions;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t