History

drm/i915/pmu: Aggregate all RC6 states into one counter

Chris has discovered that RC6, RC6p and RC6pp counters are mutually exclusive, and even that on some SNB SKUs you get RC6p increasing, and on the others RC6. Furthermore RC6p and RC6pp were only present starting from GEN6 until, GEN7, not including Haswell. All this combined makes it questionable whether we need to reserve new ABI for these counters. One idea was to just combine them all under the RC6 counter to simplify things for userspace. So that is what this patch does.

Tvrtko Ursulin committed 8 years ago

Commit 3452fa31 parent a54b1872 files · +7 −22Browse files

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

Unified · Split

include/uapi/drm/i915_drm.h+1−5
@@ -137,14 +137,10 @@ enum drm_i915_pmu_engine_sample { · 136 unmodified lines
137137
138138 #define I915_PMU_ACTUAL_FREQUENCY __I915_PMU_OTHER(0)
139139 #define I915_PMU_REQUESTED_FREQUENCY __I915_PMU_OTHER(1)
140−
141140 #define I915_PMU_INTERRUPTS __I915_PMU_OTHER(2)
142−
143141 #define I915_PMU_RC6_RESIDENCY __I915_PMU_OTHER(3)
144−#define I915_PMU_RC6p_RESIDENCY __I915_PMU_OTHER(4)
145−#define I915_PMU_RC6pp_RESIDENCY __I915_PMU_OTHER(5)
146142
147−#define I915_PMU_LAST I915_PMU_RC6pp_RESIDENCY
143+#define I915_PMU_LAST I915_PMU_RC6_RESIDENCY
148144
149145 /* Each region is a minimum of 16k, and there are at most 255 of them.
150146 */

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