From patchwork Fri Jun 9 10:26:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9777945 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A97E360350 for ; Fri, 9 Jun 2017 10:26:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99CA1285E8 for ; Fri, 9 Jun 2017 10:26:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EB4D28604; Fri, 9 Jun 2017 10:26:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5600D285E8 for ; Fri, 9 Jun 2017 10:26:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C40B56E5BC; Fri, 9 Jun 2017 10:26:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 790246E5B6; Fri, 9 Jun 2017 10:26:34 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id x3so11071968wme.0; Fri, 09 Jun 2017 03:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rLhnsWXzA7qYDOesulF1gLpbd8o+C94DfC3LFmZ2ufM=; b=Bvw84tsBy0o5Hc3XTz+T37HImjhRoxvUtCScy7wezfNRDqN52gIXRJuyVSXmdbXKUk hmYpR4GVM6qCB0MSQ37UNxD40TEoXPVYdUWpaoP8dNd02vZX6IGbrDc6kr082CB3TcVW kT/LQ3vpcNtW/i3KFjPAPbjut+GQUGhgx0bJ8iyAUBUQhh1vfdq2qzKUxmhGlKY1XTjg Dx4+kER3+kv7AedNMqItlp3JGy5XjJhOmlJ7KHMvV8fsFACOtcnmBBzaQWh15PAcY7b1 AxhTb9TgLu131/lp59fGMLGEc6pIpem5EFFLHC8C0diz9V1+SY2PsstKq+HjYn8oIqhd vMaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rLhnsWXzA7qYDOesulF1gLpbd8o+C94DfC3LFmZ2ufM=; b=XvLfcAmmRGndL6I2aBYwQsRaacCyaObRL1TKPwwvJ8OsL5iIOPz2BVcac1zkCLb9eK zCwfsBb67sxqh4RtWzAhSFlOdzA5WB8klcu6ZKngMsfxzT6JMOHNxx/vSi10Q9VADS3y 1cdtKKDWZzbyZpLjnGXicZOVJ0LzNVhmOUVgSq9KFis3JvbCRz6Topm0r64QQQ4l4gg+ WwcUGng5uMsKwr23mFaq7q5mFjORrn8GbvOm09/+BsWXqGoXfMehCmgm3MhQ5VOvzbT+ +GZcGA0U4tEeeMfU3xsrBKVIhPsvAYKjxarXkdYjPqJhSWZyERljYq5QcXdV+cH3iyCM fFaA== X-Gm-Message-State: AODbwcA3KvmthfHZiCEutz2lC7tCZDISuiHiR/WockCoxOu6JJ9YX1Q0 /RACZICO+fIobg9VBnQ= X-Received: by 10.28.87.72 with SMTP id l69mr1471956wmb.111.1497003992746; Fri, 09 Jun 2017 03:26:32 -0700 (PDT) Received: from localhost.localdomain (213-147-162-44.nat.highway.bob.at. [213.147.162.44]) by smtp.gmail.com with ESMTPSA id s95sm879945wrc.13.2017.06.09.03.26.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:26:32 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH 15/21] drm/etnaviv: add SE perf domain Date: Fri, 9 Jun 2017 12:26:12 +0200 Message-Id: <20170609102618.3195-6-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170609102618.3195-1-christian.gmeiner@gmail.com> References: <20170609102618.3195-1-christian.gmeiner@gmail.com> Cc: linux+etnaviv@armlinux.org.uk, etnaviv@lists.freedesktop.org, cphealy@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index e0b7cae..4e42c90 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -233,6 +233,24 @@ static const struct etnaviv_pm_domain doms[] = { &pipe_reg_read } } + }, + { + .name = "SE", + .profile_read = VIVS_MC_PROFILE_SE_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG1, + .nr_signals = 2, + .signal = (const struct etnaviv_pm_signal[]) { + { + "CULLED_TRIANGLE_COUNT", + VIVS_MC_PROFILE_CONFIG1_SE_CULLED_TRIANGLE_COUNT, + &perf_reg_read + }, + { + "CULLED_LINES_COUNT", + VIVS_MC_PROFILE_CONFIG1_SE_CULLED_LINES_COUNT, + &perf_reg_read + } + } } };