From patchwork Sat Jul 22 09:53:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9858069 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 AED6C600F5 for ; Sat, 22 Jul 2017 09:56:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98ED8285ED for ; Sat, 22 Jul 2017 09:56:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DCD8285F5; Sat, 22 Jul 2017 09:56:25 +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 4002B285ED for ; Sat, 22 Jul 2017 09:56:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 00EC06E936; Sat, 22 Jul 2017 09:55:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1348A6E92E; Sat, 22 Jul 2017 09:55:30 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id 65so9423733wmf.0; Sat, 22 Jul 2017 02:55:30 -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=uljUcV0T9LKPEc8W1Tevd/rZWWTZhA82ViW/j2v1Uig=; b=I4os65XOV2odKXBvVn1r6d/XpUD/7zh8b6O6yneDION2HyDdMNoTlH3K0vXPKseDCX 95HDikttfFahuWbtd/G9h98qx86gEvSM8VQZPF62EGs6rArsc8Okutwuq1RyPyXIr5GP INO24aUyGUOq4iz7/l3XXFVCCItCgEgdQ4lKuoNVTGc2J5TyHZHTTgALjhvc4dPd+5FF jDs/APXmxJFfZHmc7nDAyDZpIhWEfS/qWkfaDC0idkXAoDyOf9dDN5fEdWpnWnUqf5r6 ijIRY2myxX+Ue1d8y2h3geu9qg4vAUmtdiQ/QPVt3LAG6RZFiXQyaCcbq5wXGF9funhR OnOQ== 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=uljUcV0T9LKPEc8W1Tevd/rZWWTZhA82ViW/j2v1Uig=; b=gxqlabR0IHRMCYtQpZnDaVaFUeSFJnBy7NjKn6aUeVm3BHn1rvIV6k73kjNnGE86Ao dcOtL4eDnVfqqsYxIVO9y9Idvlz22FsoF2j/iS7pfsqcVqjlFRvj1sW3ZeXhtkHp/wwC g0vxFvTrGxM5hEVGuzZBk7IhMGD4+y9KzpOtnEThXJSN+vY8Vc2/yofUDFC2+Ps+VMCb qOkVeX1E8aQpiNGGUtuOp1L7zqO3h96PSu+NJTuME2MkbHEeGzWzE258SvIeaW+/nFHv 7Vunr6dgr6Bq9zb+mPzQCKjNyq4ZM+5TE2LvMV4T3i11ijXe5OFxk2p1uzM0UGTD1Cnp UjcA== X-Gm-Message-State: AIVw112x5Ij55pS5ddRvrqXeoTAdLVw2Z+2/9XD/esbou4+D1kVGos61 JvUjdubMhSfi/6yT X-Received: by 10.28.99.11 with SMTP id x11mr1000636wmb.164.1500717328426; Sat, 22 Jul 2017 02:55:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jul 2017 02:55:27 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V2 17/23] drm/etnaviv: add SE perf domain Date: Sat, 22 Jul 2017 11:53:17 +0200 Message-Id: <20170722095323.9964-18-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 | 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 e712fa7aa758..881762cad07e 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -238,6 +238,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 + } + } } };