summaryrefslogtreecommitdiff
path: root/overlay/gpu-freq.c
AgeCommit message (Collapse)Author
2020-01-14i915/perf: Find the associated perf-type for a particular deviceChris Wilson
Since with multiple devices, we may have multiple different perf_pmu each with their own type, we want to find the right one for the job. The tests are run with a specific fd, from which we can extract the appropriate bus-id and find the associated perf-type. The performance monitoring tools are a little more general and not yet ready to probe all device or bind to one in particular, so we just assume the default igfx for the time being. v2: Extract the bus address from out of sysfs v3: A new name for a new decade! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: "Robert M. Fosha" <robert.m.fosha@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: "Robert M. Fosha" <robert.m.fosha@intel.com> #v2 Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2017-11-22intel-gpu-overlay: Catch-up to new i915 PMUTvrtko Ursulin
v2: Update for i915 changes. v3: Use 1eN for large numbers. (Chris Wilson) v4: Update for upstream engine class enum. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-11-22intel-gpu-overlay: Consolidate perf PMU access to libraryTvrtko Ursulin
Various tool modules implement their owm PMU open wrapper which can be replaced by calling the library one. v2: * Remove extra newline. (Chris Wilson) * Commit msg. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-11-22intel-gpu-overlay: Move local perf implementation to a libraryTvrtko Ursulin
Idea is to avoid duplication across multiple users in upcoming patches. v2: Commit message and use a separate library instead of piggy- backing to libintel_tools. (Chris Wilson) v3: Add Petri's meson build recipe. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-08-16overlay: Fix min frequency detection on BYT/BSWChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-11overlay: Baytrail needs a custom GPU frequency parserChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-30overlay: Use new i915_frequency_info in fallback codeChris Wilson
Actually use the new location to get frequency information when perf is not available. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-07intel-gpu-overlay: Update debugfs path for min/max frequencyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Read frequency from perfChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23overlay: Distinguish the root debugfs path and our dri nodeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23overlay: Search for right debugfs pathChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Add copyright statementsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Add graph for GPU power consumptionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-18overlay: Print min/max GPU frequencies.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-18overlay: Add GPU frequencyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>