diff options
| author | Ashutosh Dixit <[email protected]> | 2022-04-06 12:18:48 -0700 |
|---|---|---|
| committer | Anshuman Gupta <[email protected]> | 2022-04-07 18:55:08 +0530 |
| commit | 56758cc4595509b6f6d0be56d08003bd87b75635 (patch) | |
| tree | 755cf043d7f564296d746afd7a5462ad1bfb84f5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ae686e220b5f3962f9188e6661bc370941845a3f (diff) | |
drm/i915/rps: Centralize computation of freq caps
Freq caps (i.e. RP0, RP1 and RPn frequencies) are read from HW. However the
formats (bit positions, widths, registers and units) of these vary for
different generations with even more variations arriving in the future. In
order not to have to do identical computation for these caps in multiple
places, here we centralize the computation of these caps. This makes the
code cleaner and also more extensible for the future.
v2: Clarify that caps are in "hw units" in comments (Lucas De Marchi)
v3: Minor checkpatch fix
v4: s/intel_rps_get_freq_caps/gen6_rps_get_freq_caps/ (Badal Nilawar)
v5: Changes comments to kernel doc (Anshuman Gupta)
Cc: Anshuman Gupta <[email protected]>
Signed-off-by: Ashutosh Dixit <[email protected]>
Reviewed-by: Badal Nilawar <[email protected]>
Acked-by: Anshuman Gupta <[email protected]>
Signed-off-by: Anshuman Gupta <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions