Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6012430ybc; Wed, 27 Nov 2019 13:22:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyJbclKSgW/d3A53y50ZJRQnWjNgWhMhxTRMgzcJIzytY8JLxJuYHs1MWhhTvRSihms+Rhj X-Received: by 2002:a17:906:2518:: with SMTP id i24mr51584026ejb.4.1574889758354; Wed, 27 Nov 2019 13:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889758; cv=none; d=google.com; s=arc-20160816; b=NzVIbeREJPH3RjQNRh3i1EAztER3NbbCReKbI0YP7H+2liIpsEUUjCo6TrLnRHDxeD C5JQKYu+r8gF0Fy5mKTFis+YhA78PeOKK3Sjc+bGB60gnzeoNpAHdYakX8PSBkxEI9+p JofCfp4n68U7XKlAVYLS2D4I3kLRZDR+Soh1f7IqX48499CGpNeP9XtAxUlQkV7DlwAg BYw1EXqZ7zKMhEt7psUUn/u35wzWpSViMHsBAsFR8jMNfQko31bTNHvBJoiXWXlL0mJJ OSWDr+bAp1lrKKhk400+904mFMG+q5KLdgAJqB8doTBtTcQ4WUaenXs/0aM7p1vpWqlh CNHg== 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=mJXyBeAcCz7UDPRhCiCnlRFWGqHVjb19ex1lblkZGDk=; b=t+vHDZ4Zmq5zWKOcxifZER1zSaSn4qOiRuDcNKr8/nV6Y8zkGNjbHg8DMoHCNYvjT4 VO5iVXQt7+26uPDghwvSr08OmSfvBdgtW+aanWErCukRHUSDQLzg1/cxfzfj06NY9fPc p8uu0KF5sevS9x8ajXPc+/8knkhSCE4QcoItQHYf15v9inm2Qo3pAeBKSmlz7R1cyd70 eGnij+2bR7zKqXkOegTQ7SR/FBkRk1Z2lVx1dUIYgE4KhHE0PwI+h6YQ3l9sDhTzpAwx +gb9/0+OpdPVYYSGxeiQXB4QMKASSoYdNMw+aG/dpYXfJTKSn/dGTDBmeLOoPfJh06Bb 7ygw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xY7cGE1B; 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 rs1si10768378ejb.73.2019.11.27.13.22.14; Wed, 27 Nov 2019 13:22:38 -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=xY7cGE1B; 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 S1732924AbfK0VJm (ORCPT + 99 others); Wed, 27 Nov 2019 16:09:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:36386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbfK0VJg (ORCPT ); Wed, 27 Nov 2019 16:09:36 -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 AF439216F4; Wed, 27 Nov 2019 21:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888976; bh=vqMW5dtzYH8+pdzDl5X+kiSDaTGXOnHbne2Iug37/gc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xY7cGE1BXxpzbIh36o7LVJRdGW8xwKSQeqqe6QAlwD+Z0kuY0gZ5eWD16Y8BZXAOv eVHD+ftEwJHGb/qTHYN0MhMiwKxlOcSd6g8ALX4T8/EVcfANyUbH/POiUR2a98n87H 0opPIHOeqG+Fxp5++nqsf80G/4aLzpvt09yByMxI= 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 5.3 34/95] drm/i915/pmu: "Frequency" is reported as accumulated cycles Date: Wed, 27 Nov 2019 21:31:51 +0100 Message-Id: <20191127202858.796926776@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127202845.651587549@linuxfoundation.org> References: <20191127202845.651587549@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 @@ -833,8 +833,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"), };