History

drm/xe/pmu: Drop interrupt pmu event

Drop interrupt event from PMU as that is not useful and not being used by any UMD.

Aravind Iddamsetty committed 3 years ago

Commit be133361 parent 60f3c7f4 files · +11 −47Browse files

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

Unified · Split

include/uapi/drm/xe_drm.h+6−7
@@ -977,7 +977,7 @@ struct drm_xe_wait_user_fence { · 976 unmodified lines
977977 * in 'struct perf_event_attr' as part of perf_event_open syscall to read a
978978 * particular event.
979979 *
980− * For example to open the XE_PMU_INTERRUPTS(0):
980+ * For example to open the XE_PMU_RENDER_GROUP_BUSY(0):
981981 *
982982 * .. code-block:: C
983983 *
@@ -991,7 +991,7 @@ struct drm_xe_wait_user_fence { · 7 unmodified lines
991991 * attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED;
992992 * attr.use_clockid = 1;
993993 * attr.clockid = CLOCK_MONOTONIC;
994− * attr.config = XE_PMU_INTERRUPTS(0);
994+ * attr.config = XE_PMU_RENDER_GROUP_BUSY(0);
995995 *
996996 * fd = syscall(__NR_perf_event_open, &attr, -1, cpu, -1, 0);
997997 */
@@ -1004,11 +1004,10 @@ struct drm_xe_wait_user_fence { · 6 unmodified lines
10041004 #define ___XE_PMU_OTHER(gt, x) \
10051005 (((__u64)(x)) | ((__u64)(gt) << __XE_PMU_GT_SHIFT))
10061006
1007−#define XE_PMU_INTERRUPTS(gt) ___XE_PMU_OTHER(gt, 0)
1008−#define XE_PMU_RENDER_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 1)
1009−#define XE_PMU_COPY_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 2)
1010−#define XE_PMU_MEDIA_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 3)
1011−#define XE_PMU_ANY_ENGINE_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 4)
1007+#define XE_PMU_RENDER_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 0)
1008+#define XE_PMU_COPY_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 1)
1009+#define XE_PMU_MEDIA_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 2)
1010+#define XE_PMU_ANY_ENGINE_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 3)
10121011
10131012 #if defined(__cplusplus)
10141013 }

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