History

drm/i915/perf: add a parameter to control the size of OA buffer

The way our hardware is designed doesn't seem to let us use the MI_RECORD_PERF_COUNT command without setting up a circular buffer. In the case where the user didn't request OA reports to be available through the i915 perf stream, we can set the OA buffer to the minimum size to avoid consuming memory which won't be used by the driver. v2: Simplify oa buffer size exponent selection (Chris) Reuse vma size field (Lionel) v3: Restrict size opening parameter to values supported by HW (Chris) v4: Drop out of date comment (Matt) Add debug message when buffer size is rejected (Matt)

Lionel Landwerlin committed 8 years ago

Commit cd956bf1 parent 5728de24 files · +76 −33Browse files

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

Unified · Split

include/uapi/drm/i915_drm.h+7−0
@@ -1540,6 +1540,13 @@ enum drm_i915_perf_property_id { · 1539 unmodified lines
15401540 */
15411541 DRM_I915_PERF_PROP_OA_EXPONENT,
15421542
1543+ /**
1544+ * Specify a global OA buffer size to be allocated in bytes. The size
1545+ * specified must be supported by HW (currently supported sizes are
1546+ * powers of 2 ranging from 128Kb to 16Mb).
1547+ */
1548+ DRM_I915_PERF_PROP_OA_BUFFER_SIZE,
1549+
15431550 DRM_I915_PERF_PROP_MAX /* non-ABI */
15441551 };
15451552

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