Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6021802ybc; Wed, 27 Nov 2019 13:33:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxX7ZCAsib3E1NLBMewXWnQbZWBjVvjAKlZTdX5qzVm4v1GHdtSZuo4fZCaF+odq5p1HffT X-Received: by 2002:a05:6402:544:: with SMTP id i4mr30903976edx.175.1574890393927; Wed, 27 Nov 2019 13:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890393; cv=none; d=google.com; s=arc-20160816; b=SoAWF1DD4novs06TgZ+YwZD5LPE3nB4ixPWJkn4sYzfggBg28TlElYcEZH1expwg13 HDSVJMBNHqq+mMqqOY+UKS9mUW9we6RfmG9XFh7L9D4pRo4M2ntECqLbq4Vjl/HC2kEv 2eq2Vis5p3yxkgtIocp3MU4DpO6AyU0zhmamTqnoRgLBHgQIgc9/d2qHl9y0kbYtZ+3q wM3TVJyygTuBf68QReb2amn5HFicXUh9kSTVBpSSi3tbZfdVKSDDgF0OiTwVxKLlWrH3 ofUnEjoNNhetx2gppk3Iujk8NeUkjqJGJYCCTwO/lqRAzMRj6OCVnttvnQJXhdkUuMQ4 w2Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+1qXnDOeOk7dh/Genng93VWiFtReL6kEfruLRatY8Ag=; b=r6345tNrpndZzJ2H/ds0poR2OtCEVsLda3BTkMHQUjcOnDHJTR0nRnhGcTWXA5CKQW TD/sFutGbKy8ps7x8hftF2vpGrdkygUCZ+bpowITBen+8f+pWXHhhRIwOrMIm2hCIctQ QSUg0nPbLNKEv8/LopkqHkQHkhCvqnCUjWLlE5D1UoLPdXNSAcjK0p87kVtDauYHSi4R +KTUXheXu6BXSqp7fj9gL8iri8ZnOcRzdXoaZI8M1iOfPt0Qts/MoEeuV1o2eS+6qpry /kq1htXzj6y6x+0iI7eSIAXyYLFk8SedbzGSAmjyW9hNm4R8jE40va20W+7S21VwLNuo 36Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oOlWx8t4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si201375ejr.195.2019.11.27.13.32.49; Wed, 27 Nov 2019 13:33:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oOlWx8t4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730974AbfK0Vah (ORCPT + 99 others); Wed, 27 Nov 2019 16:30:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:46140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730356AbfK0Uzh (ORCPT ); Wed, 27 Nov 2019 15:55:37 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43A5520862; Wed, 27 Nov 2019 20:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888136; bh=WdjUGu7X/CWFXaVOckev9LeqnWq4q9ChzD+8yMwavRo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oOlWx8t4NQ8BsjF/6BbaNZbzGR8ihnn90wGkAL8a9sQmb74RSzaLpXr2o8eoXVeQf HuSqcrXz/YQIzLqLeAPBTtzyt9NlXVZefmGxNAXzPeq0TXaLLoPjPq0XWaxyqpjrFK JxJODFywskCyuIRwX6YJo0zkBNZAAwqsQdQSRh4Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Wilson , Tvrtko Ursulin , Joonas Lahtinen , Rodrigo Vivi Subject: [PATCH 4.19 019/306] drm/i915/pmu: "Frequency" is reported as accumulated cycles Date: Wed, 27 Nov 2019 21:27:49 +0100 Message-Id: <20191127203116.103201032@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Wilson 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 Cc: Tvrtko Ursulin Cc: stable@vger.kernel.org Reviewed-by: Tvrtko Ursulin 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 (cherry picked from commit a7d87b70d6da96c6772e50728c8b4e78e4cbfd55) Signed-off-by: Rodrigo Vivi Signed-off-by: Greg Kroah-Hartman --- 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"), };