From patchwork Sat Jul 22 09:53:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9858067 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 8954D600F5 for ; Sat, 22 Jul 2017 09:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 735AD285ED for ; Sat, 22 Jul 2017 09:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68401285F5; Sat, 22 Jul 2017 09:56:21 +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 2742B285ED for ; Sat, 22 Jul 2017 09:56:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D2F56E930; Sat, 22 Jul 2017 09:55:31 +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 9D8D96E92A; Sat, 22 Jul 2017 09:55:28 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id 143so9377677wmu.5; Sat, 22 Jul 2017 02:55:28 -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=U2WSBP7Z9KDHKqKh2NHmY5eQfEbSiAV20A78Wk0fJ2Y=; b=gjL7WSJsNuBPA4LKq3ttduKUHe6M2srZNUA272JBLySLiS7X7CxvQw1sk0VINqPFuB ngpmj1AOoYnhIltEfCTMMX1VDWs6+1EWijfVolgh84nNbnbA1xYebuL+KY84AN7eqadQ fMlqbeuEmvynXK4aXF3hKdmVpf+ZYjlD/5pamAljIcl0JVpgWEtGJ00zzHNWLaBrXb07 g9phkdsnJiRExRH+7otsQ5Ga7dMC8Sf1VyHlpapq7oDV5ONiTB7kJmKdXh0wVk8scLbe unBc03Q2co/xvIq3aiiJzUhr1PNIhs8pFjK/me1a7apiTAk1cAVs0fgPjks/VWcmKUbm njJw== 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=U2WSBP7Z9KDHKqKh2NHmY5eQfEbSiAV20A78Wk0fJ2Y=; b=ZINXRN+aIGGBwKTKV/oCRh/MIDLwPJQFZVaJnfJ/6kSwClm4KuB9IDS6nGbw/t8+0X C8Ftwb/LhqwTkPehyeX3gw8EKvpedSn+fxlTFDmhKOy++0lqHupEIl/iG52/WdUzG9lW Q2dzl8Y7DBLv946SyfdXva4dIQul3BJiEZS16fnSTJ8Rdt1cvE756dtZGIQzP3capMdU E3FZp5jgXCXm9rSQ8Em13J8J67MAs1IQO9yovJXRHqBKZicvBJ2tVpZA/gLGh6d4nKfJ b5JyzUIWCctKSBE32qJtbOfkIbtpI4TeToiFgPF/4eZYvBGqbQSbM36hPbz7lKRweK/m FVhg== X-Gm-Message-State: AIVw112uGWdHT7Q6stLi1ng/1JF+dYJkCOC5EEFJWI6iWy+Gx5qw7tLG uK0gvKZ5P3WyNrSv X-Received: by 10.28.1.66 with SMTP id 63mr1120965wmb.64.1500717327063; Sat, 22 Jul 2017 02:55:27 -0700 (PDT) Received: from cp720.fritz.box (91-114-193-248.adsl.highway.telekom.at. [91.114.193.248]) by smtp.gmail.com with ESMTPSA id z192sm2544673wmz.44.2017.07.22.02.55.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jul 2017 02:55:26 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V2 16/23] drm/etnaviv: add PA perf domain Date: Sat, 22 Jul 2017 11:53:16 +0200 Message-Id: <20170722095323.9964-17-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170722095323.9964-1-christian.gmeiner@gmail.com> References: <20170722095323.9964-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 | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 2b2470761920..e712fa7aa758 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -200,6 +200,44 @@ static const struct etnaviv_pm_domain doms[] = { &perf_reg_read } } + }, + { + .name = "PA", + .profile_read = VIVS_MC_PROFILE_PA_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG1, + .nr_signals = 6, + .signal = (const struct etnaviv_pm_signal[]) { + { + "INPUT_VTX_COUNTER", + VIVS_MC_PROFILE_CONFIG1_PA_INPUT_VTX_COUNTER, + &perf_reg_read + }, + { + "INPUT_PRIM_COUNTER", + VIVS_MC_PROFILE_CONFIG1_PA_INPUT_PRIM_COUNTER, + &perf_reg_read + }, + { + "OUTPUT_PRIM_COUNTER", + VIVS_MC_PROFILE_CONFIG1_PA_OUTPUT_PRIM_COUNTER, + &perf_reg_read + }, + { + "DEPTH_CLIPPED_COUNTER", + VIVS_MC_PROFILE_CONFIG1_PA_DEPTH_CLIPPED_COUNTER, + &pipe_reg_read + }, + { + "TRIVIAL_REJECTED_COUNTER", + VIVS_MC_PROFILE_CONFIG1_PA_TRIVIAL_REJECTED_COUNTER, + &pipe_reg_read + }, + { + "CULLED_COUNTER", + VIVS_MC_PROFILE_CONFIG1_PA_CULLED_COUNTER, + &pipe_reg_read + } + } } };