lkml.org 
[lkml]   [2019]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 019/306] drm/i915/pmu: "Frequency" is reported as accumulated cycles
    Date
    From: Chris Wilson <chris@chris-wilson.co.uk>

    commit add3eeed3683e2636ef524db48e1a678757c8e96 upstream.

    We report "frequencies" (actual-frequency, requested-frequency) as the
    number of accumulated cycles so that the average frequency over that
    period may be determined by the user. This means the units we report to
    the user are Mcycles (or just M), not MHz.

    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Cc: stable@vger.kernel.org
    Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20191109105356.5273-1-chris@chris-wilson.co.uk
    (cherry picked from commit e88866ef02851c88fe95a4bb97820b94b4d46f36)
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    (cherry picked from commit a7d87b70d6da96c6772e50728c8b4e78e4cbfd55)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/gpu/drm/i915/i915_pmu.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/drivers/gpu/drm/i915/i915_pmu.c
    +++ b/drivers/gpu/drm/i915/i915_pmu.c
    @@ -827,8 +827,8 @@ create_event_attributes(struct drm_i915_
    const char *name;
    const char *unit;
    } events[] = {
    - __event(I915_PMU_ACTUAL_FREQUENCY, "actual-frequency", "MHz"),
    - __event(I915_PMU_REQUESTED_FREQUENCY, "requested-frequency", "MHz"),
    + __event(I915_PMU_ACTUAL_FREQUENCY, "actual-frequency", "M"),
    + __event(I915_PMU_REQUESTED_FREQUENCY, "requested-frequency", "M"),
    __event(I915_PMU_INTERRUPTS, "interrupts", NULL),
    __event(I915_PMU_RC6_RESIDENCY, "rc6-residency", "ns"),
    };

    \
     
     \ /
      Last update: 2019-11-27 22:31    [W:4.099 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site