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

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/xe_drm.h+8−14
@@ -1020,20 +1020,6 @@ struct drm_xe_vm_bind { · 1019 unmodified lines
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 { · 26 unmodified lines
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;

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