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
977 * in 'struct perf_event_attr' as part of perf_event_open syscall to read a977 * in 'struct perf_event_attr' as part of perf_event_open syscall to read a
978 * particular event.978 * particular event.
979 *979 *
980 * For example to open the XE_PMU_INTERRUPTS(0):980 * For example to open the XE_PMU_RENDER_GROUP_BUSY(0):
981 *981 *
982 * .. code-block:: C982 * .. code-block:: C
983 *983 *
@@ -991,7 +991,7 @@ struct drm_xe_wait_user_fence { · 7 unmodified lines
991 * attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED;991 * attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED;
992 * attr.use_clockid = 1;992 * attr.use_clockid = 1;
993 * attr.clockid = CLOCK_MONOTONIC;993 * attr.clockid = CLOCK_MONOTONIC;
994 * attr.config = XE_PMU_INTERRUPTS(0);994 * attr.config = XE_PMU_RENDER_GROUP_BUSY(0);
995 *995 *
996 * fd = syscall(__NR_perf_event_open, &attr, -1, cpu, -1, 0);996 * fd = syscall(__NR_perf_event_open, &attr, -1, cpu, -1, 0);
997 */997 */
@@ -1004,11 +1004,10 @@ struct drm_xe_wait_user_fence { · 6 unmodified lines
1004#define ___XE_PMU_OTHER(gt, x) \1004#define ___XE_PMU_OTHER(gt, x) \
1005 (((__u64)(x)) | ((__u64)(gt) << __XE_PMU_GT_SHIFT))1005 (((__u64)(x)) | ((__u64)(gt) << __XE_PMU_GT_SHIFT))
1006 1006
1007#define XE_PMU_INTERRUPTS(gt) ___XE_PMU_OTHER(gt, 0)1007#define XE_PMU_RENDER_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 0)
1008#define XE_PMU_RENDER_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 1)1008#define XE_PMU_COPY_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 1)
1009#define XE_PMU_COPY_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 2)1009#define XE_PMU_MEDIA_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 2)
1010#define XE_PMU_MEDIA_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 3)1010#define XE_PMU_ANY_ENGINE_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 3)
1011#define XE_PMU_ANY_ENGINE_GROUP_BUSY(gt) ___XE_PMU_OTHER(gt, 4)
1012 1011
1013#if defined(__cplusplus)1012#if defined(__cplusplus)
1014}1013}

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